/* ── Subpages ── */
body.subpage main {
  padding-top: var(--header-h);
}

body.subpage .site-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

body.subpage .site-header .header-beta {
  display: inline-flex;
}

body.subpage .site-header .menu-toggle {
  display: flex;
}

.site-nav a[aria-current="page"] {
  background: var(--neon);
  color: var(--bg);
}

/* ── Page hero ── */
.page-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 2rem clamp(1.25rem, 5vw, 3rem) 3.5rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.35) 0%,
    rgba(8, 8, 8, 0.55) 45%,
    rgba(8, 8, 8, 0.92) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.page-hero-tag {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.08em;
}

.page-hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-hero-title .accent {
  color: var(--neon);
}

.page-hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--muted-light);
  line-height: 1.65;
}

.page-hero-watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.1em;
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(7rem, 32vw, 14rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(204, 255, 0, 0.12);
  pointer-events: none;
  user-select: none;
}

.page-hero--jugador .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1554068865-24cecd4e34b8?w=1920&h=1080&fit=crop&auto=format");
}

.page-hero--entrenador .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1508129214940-7b2223ae0a08?w=1920&h=1080&fit=crop&auto=format");
}

.page-hero--entrenador .page-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.72) 0%,
    rgba(8, 8, 8, 0.55) 40%,
    rgba(8, 8, 8, 0.88) 100%
  );
}

.page-hero--full {
  min-height: calc(100svh - var(--header-h));
  align-items: center;
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-hero-btn-primary {
  background: var(--neon);
  color: var(--bg);
}

.page-hero-btn-primary:hover {
  background: #d4f500;
  box-shadow: 0 10px 32px rgba(204, 255, 0, 0.32);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 8, 0.35);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease-spring),
    border-color 0.25s,
    background 0.25s;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.page-hero--torneos .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1499510318569-1a3d67dc3976?w=1920&h=1080&fit=crop&auto=format");
}

.page-hero--comunidad .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1595555785647-53441687d78a?w=1920&h=1080&fit=crop&auto=format");
}

.page-hero--about .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1508129214940-7b2223ae0a08?w=1920&h=1080&fit=crop&auto=format");
}

.page-hero--contact .page-hero-bg {
  background-image: url("https://images.unsplash.com/photo-1558365849-6ebd8b0454b2?w=1920&h=1080&fit=crop&auto=format");
}

.page-hero--legal .page-hero-bg {
  background: radial-gradient(circle at 70% 20%, rgba(204, 255, 0, 0.08), transparent 45%),
    linear-gradient(135deg, #0d0d0d, #080808);
}

/* ── Page sections ── */
.page-section {
  padding: 4.5rem clamp(1.25rem, 5vw, 3rem);
}

.page-section--alt {
  background: #0c0c0c;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.page-section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.page-section-head .eyebrow {
  margin-bottom: 0.75rem;
}

.page-grid {
  display: grid;
  gap: 1rem;
}

.page-grid--2 {
  grid-template-columns: 1fr;
}

.page-grid--3 {
  grid-template-columns: 1fr;
}

.page-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s;
}

.page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 255, 0, 0.25);
}

.page-card-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon);
}

.page-card h3,
.page-card h4 {
  margin: 0 0 0.5rem;
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 700;
}

.page-card p {
  margin: 0;
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--muted-light);
  line-height: 1.6;
}

.page-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.page-stat-row strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
}

.page-stat-row span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-cta-band {
  padding: 3.5rem clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(204, 255, 0, 0.04));
}

.page-cta-band h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
}

.page-cta-band p {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: var(--muted-light);
  font-family: var(--body);
}

.page-cta-band .btn-beta {
  margin-top: 1.75rem;
}

/* ── Timeline / steps ── */
.page-steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.page-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
}

.page-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
}

.page-step h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.page-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.55;
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-info-item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.contact-info-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
}

.contact-info-item a,
.contact-info-item span {
  font-family: var(--body);
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-light);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #111;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: border-color 0.25s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(204, 255, 0, 0.45);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Legal prose ── */
.prose {
  max-width: 46rem;
  margin: 0 auto;
  font-family: var(--body);
  color: var(--muted-light);
  line-height: 1.7;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Community feed mock ── */
.feed-preview {
  display: grid;
  gap: 1rem;
}

.feed-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.feed-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border: 2px solid rgba(204, 255, 0, 0.2);
}

.feed-meta strong {
  display: block;
  font-size: 0.95rem;
}

.feed-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.feed-card p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-light);
  line-height: 1.55;
}

/* ── Tournament cards ── */
.tournament-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.tournament-card .badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(204, 255, 0, 0.12);
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tournament-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .page-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-stat-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }

  .page-hero {
    min-height: min(68vh, 720px);
    padding-bottom: 4.5rem;
  }
}

/* ── Figma-matched About & Contact ── */
.figma-page {
  background: var(--bg);
}

.figma-wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.figma-hero {
  position: relative;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem) 4rem;
  overflow: hidden;
}

.figma-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0.05;
  filter: blur(120px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.figma-hero-glow--right {
  top: 0;
  right: 0;
  left: auto;
  width: 400px;
  height: 400px;
  transform: translate(30%, -30%);
  filter: blur(100px);
}

.figma-hero .figma-wrap {
  position: relative;
  z-index: 1;
}

.figma-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 255, 0, 0.25);
  background: rgba(204, 255, 0, 0.12);
  color: var(--neon);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.figma-mega-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.figma-mega-title .accent {
  color: var(--neon);
}

.figma-hero-cols {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin-top: 2rem;
}

.figma-hero-cols p {
  margin: 0;
  font-family: Inter, var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.figma-hero-cols p.muted {
  color: rgba(255, 255, 255, 0.4);
}

.figma-hero-lead {
  max-width: 32rem;
  margin: 0;
  font-family: Inter, var(--body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.figma-stats-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem clamp(1.25rem, 5vw, 2.5rem);
}

.figma-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.figma-stat {
  padding: 0.5rem 0;
}

.figma-stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--neon);
}

.figma-stat span {
  display: block;
  margin-top: 0.5rem;
  font-family: Inter, var(--body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

.figma-section {
  padding: 5rem clamp(1.25rem, 5vw, 2.5rem);
}

.figma-section--alt {
  background: #0a0a0a;
}

.figma-section--contact {
  padding-top: 0;
  padding-bottom: 6rem;
}

.figma-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}

.figma-section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 3.75rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.figma-section-title .accent {
  color: var(--neon);
}

.figma-body {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-family: Inter, var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.figma-mission-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.figma-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.figma-value-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s;
}

.figma-value-card:hover {
  border-color: rgba(204, 255, 0, 0.25);
}

.figma-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgba(204, 255, 0, 0.08);
  color: var(--neon);
}

.figma-value-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.figma-value-card p {
  margin: 0;
  font-family: Inter, var(--body);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.35);
}

.figma-team-card {
  max-width: 22rem;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s;
}

.figma-team-card:hover {
  border-color: rgba(204, 255, 0, 0.25);
}

.figma-team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(204, 255, 0, 0.15);
  background: rgba(204, 255, 0, 0.08);
  color: var(--neon);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 900;
}

.figma-team-card h3 {
  margin: 0;
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 700;
}

.figma-team-role {
  margin: 0.35rem 0 0;
  font-family: Inter, var(--body);
  font-size: 0.85rem;
  color: var(--neon);
}

.figma-team-city {
  margin: 0.25rem 0 0;
  font-family: Inter, var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.figma-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}

.figma-closing-logo {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
  object-fit: contain;
  opacity: 0.8;
}

.figma-closing-title {
  margin-bottom: 1rem;
}

.figma-closing-lead {
  margin: 0 auto 2rem;
}

.figma-neon-btn {
  background: var(--neon) !important;
  color: var(--bg) !important;
}

.figma-neon-btn:hover {
  box-shadow: 0 12px 32px rgba(204, 255, 0, 0.25);
}

/* Contact */
.figma-contact-grid {
  display: grid;
  gap: 3rem;
}

.figma-form-card,
.figma-contact-success {
  padding: 2rem;
  border-radius: 1.5rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.figma-contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
  border-color: rgba(204, 255, 0, 0.25);
}

.figma-contact-success[hidden],
.figma-form-card[hidden] {
  display: none !important;
}

.figma-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.1);
  color: var(--neon);
}

.figma-contact-success h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.figma-contact-success p {
  margin: 0;
  font-family: Inter, var(--body);
  color: rgba(255, 255, 255, 0.5);
}

.figma-form-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.figma-form-row {
  display: grid;
  gap: 1.25rem;
}

.figma-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.figma-field input,
.figma-field select,
.figma-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: Inter, var(--body);
  font-size: 0.9rem;
  transition: border-color 0.25s;
}

.figma-field input::placeholder,
.figma-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.figma-field select {
  color: rgba(255, 255, 255, 0.85);
}

.figma-field select:invalid {
  color: rgba(255, 255, 255, 0.2);
}

.figma-field input:focus,
.figma-field select:focus,
.figma-field textarea:focus {
  outline: none;
  border-color: rgba(204, 255, 0, 0.4);
}

.figma-field textarea {
  resize: none;
}

.figma-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.figma-submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(204, 255, 0, 0.2);
}

.figma-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.figma-side-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.figma-side-card--social,
.figma-side-card--highlight {
  display: block;
}

.figma-side-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(204, 255, 0, 0.08);
  color: var(--neon);
}

.figma-side-label {
  margin: 0 0 0.35rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.figma-side-value {
  margin: 0;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.figma-side-value a {
  color: inherit;
}

.figma-side-value a:hover {
  color: var(--neon);
}

.figma-social-mini {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.figma-social-mini a {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.25s, transform 0.25s;
}

.figma-social-mini a:hover {
  color: var(--neon);
  transform: translateY(-2px);
}

.figma-side-card--highlight {
  background: rgba(204, 255, 0, 0.06);
  border-color: rgba(204, 255, 0, 0.2);
}

.figma-side-card--highlight h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.figma-side-card--highlight h3 .accent {
  color: var(--neon);
}

.figma-side-card--highlight p {
  margin: 0.75rem 0 0;
  font-family: Inter, var(--body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .figma-hero-cols {
    grid-template-columns: 1fr 1fr;
  }

  .figma-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .figma-stat {
    padding: 1rem 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .figma-stat:first-child {
    padding-left: 0;
    border-left: none;
  }

  .figma-mission-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .figma-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .figma-form-card,
  .figma-contact-success {
    padding: 2.5rem;
  }

  .figma-contact-grid {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ── Coach page (Figma /entrenador) ── */
.coach-page {
  background: #080808;
}

.coach-page main {
  padding-top: 0;
}

.coach-wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

/* Hero */
.coach-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 2.5rem)
    clamp(4rem, 8vh, 7rem);
}

.coach-hero-media {
  position: absolute;
  inset: 0;
}

.coach-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.coach-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 8, 0.95) 0%,
    rgba(8, 8, 8, 0.7) 100%
  );
}

.coach-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: min(60vh, 640px);
}

.coach-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 255, 0, 0.25);
  background: rgba(204, 255, 0, 0.12);
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-mega-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.coach-mega-title .accent {
  color: var(--neon);
}

.coach-hero-lead {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  font-family: "Inter", var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.coach-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.coach-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: var(--bg);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out);
}

.coach-btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 32px rgba(204, 255, 0, 0.28);
}

.coach-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    color 0.25s,
    border-color 0.25s;
}

.coach-btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Dashboard panel */
.coach-dashboard {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.coach-dashboard-label {
  margin: 0 0 1.5rem;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}

.coach-dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.coach-stat-tile {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.coach-stat-tile strong {
  display: block;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--neon);
}

.coach-stat-tile span {
  display: block;
  margin-top: 0.35rem;
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.coach-session-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(204, 255, 0, 0.06);
  border: 1px solid rgba(204, 255, 0, 0.15);
  font-family: "Inter", var(--body);
  font-size: 0.875rem;
  color: var(--neon);
}

.coach-session-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  animation: coachPulse 2s ease-in-out infinite;
}

@keyframes coachPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Sections */
.coach-section {
  padding: 5rem clamp(1.25rem, 5vw, 2.5rem);
}

.coach-section--alt {
  background: #0a0a0a;
}

.coach-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}

.coach-section-title {
  margin: 0 0 3rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
}

.coach-section-title .accent {
  color: var(--neon);
}

/* Feature cards */
.coach-features-grid {
  display: grid;
  gap: 1rem;
}

.coach-feature-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s;
}

.coach-feature-card:hover {
  border-color: rgba(204, 255, 0, 0.25);
}

.coach-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(204, 255, 0, 0.08);
  color: var(--neon);
  transition: background 0.3s;
}

.coach-feature-card:hover .coach-feature-icon {
  background: rgba(204, 255, 0, 0.15);
}

.coach-feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.coach-feature-card p {
  margin: 0;
  font-family: "Inter", var(--body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.4);
}

/* Profile cards */
.coach-cards-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.coach-profile-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s;
}

.coach-profile-card:hover {
  border-color: rgba(204, 255, 0, 0.25);
}

.coach-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.coach-profile-head img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.coach-profile-head h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.coach-cert {
  margin: 0.2rem 0 0;
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  color: var(--neon);
}

.coach-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--neon);
}

.coach-rating strong {
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 0.875rem;
  color: var(--white);
}

.coach-rating span {
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.coach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.coach-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.coach-profile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.coach-price {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--neon);
}

.coach-reserve-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 255, 0, 0.2);
  background: rgba(204, 255, 0, 0.1);
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
}

.coach-reserve-btn:hover {
  background: rgba(204, 255, 0, 0.2);
}

/* Pro CTA */
.coach-pro-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 1.5rem;
  background: var(--neon);
  overflow: hidden;
}

.coach-pro-watermark {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: var(--display);
  font-size: clamp(8rem, 28vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  user-select: none;
}

.coach-pro-copy {
  position: relative;
  flex: 1;
  min-width: 0;
}

.coach-pro-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--bg);
}

.coach-pro-copy p {
  margin: 0;
  max-width: 24rem;
  font-family: "Inter", var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
}

.coach-pro-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  flex-shrink: 0;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  background: #080808;
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-spring);
}

.coach-pro-btn:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .coach-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .coach-features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coach-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .coach-pro-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── Tournaments page (Figma /torneos) ── */
.tournaments-page {
  background: #080808;
}

.tournaments-page main {
  padding-top: 0;
}

.tournaments-wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

/* Hero */
.tournaments-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 2.5rem)
    clamp(4rem, 8vh, 6rem);
}

.tournaments-hero-media {
  position: absolute;
  inset: 0;
}

.tournaments-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tournaments-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.75) 0%,
    rgba(8, 8, 8, 0.92) 70%,
    rgba(8, 8, 8, 1) 100%
  );
}

.tournaments-hero-copy {
  position: relative;
  z-index: 1;
}

.tournaments-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 255, 0, 0.25);
  background: rgba(204, 255, 0, 0.12);
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tournaments-mega-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.tournaments-mega-title .accent {
  color: var(--neon);
}

.tournaments-hero-lead {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-family: "Inter", var(--body);
  font-size: 1.25rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.tournaments-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.tournaments-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: var(--bg);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    transform 0.3s var(--ease-spring),
    filter 0.25s;
}

.tournaments-btn-primary:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.tournaments-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    color 0.25s,
    border-color 0.25s;
}

.tournaments-btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Sections */
.tournaments-section {
  padding: 4rem clamp(1.25rem, 5vw, 2.5rem);
}

.tournaments-section--alt {
  background: #0a0a0a;
}

.tournaments-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}

.tournaments-section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.125rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
}

.tournaments-section-title--large {
  margin-bottom: 3rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
}

.tournaments-section-title .accent {
  color: var(--neon);
}

/* List header + filters */
.tournaments-list-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tournaments-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tournaments-filter {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.tournaments-filter:hover {
  color: var(--white);
  border-color: rgba(204, 255, 0, 0.4);
}

.tournaments-filter.is-active {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--bg);
}

.tournaments-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    color 0.25s,
    border-color 0.25s;
}

.tournaments-filter-icon:hover {
  color: var(--white);
  border-color: rgba(204, 255, 0, 0.4);
}

/* Tournament rows */
.tournaments-list {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tournament-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  transition: background 0.25s;
}

.tournament-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tournament-row[hidden] {
  display: none;
}

.tournament-row-main h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.25s;
}

.tournament-row:hover .tournament-row-main h3 {
  color: var(--neon);
}

.tournament-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.tournament-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.tournament-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tournament-tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
}

.tournament-tag--surface {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
}

.tournament-tag--level {
  background: rgba(204, 255, 0, 0.08);
  color: var(--neon);
}

.tournament-row-players {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Inter", var(--body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.tournament-row-players svg {
  color: rgba(255, 255, 255, 0.3);
}

.tournament-row-spots {
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
}

.tournament-row-spots.is-open {
  color: var(--neon);
}

.tournament-row-spots.is-full {
  color: #ef4444;
}

.tournament-enroll-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--neon);
  color: var(--bg);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.25s;
}

.tournament-enroll-btn:hover {
  filter: brightness(1.1);
}

.tournament-enroll-btn.is-disabled,
.tournament-enroll-btn:disabled {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.25);
  cursor: not-allowed;
}

.tournament-row-action {
  display: flex;
  justify-content: flex-start;
}

/* Step cards */
.tournaments-steps-grid {
  display: grid;
  gap: 1rem;
}

.tournaments-step-card {
  padding: 2rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tournaments-step-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--neon);
  opacity: 0.4;
}

.tournaments-step-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.tournaments-step-card p {
  margin: 0;
  font-family: "Inter", var(--body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.4);
}

/* Pro CTA */
.tournaments-pro-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 1.5rem;
  background: var(--neon);
  overflow: hidden;
}

.tournaments-pro-watermark {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: var(--display);
  font-size: clamp(8rem, 28vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  user-select: none;
}

.tournaments-pro-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--bg);
}

.tournaments-pro-copy p {
  margin: 0;
  max-width: 24rem;
  font-family: "Inter", var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
}

.tournaments-pro-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  flex-shrink: 0;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  background: #080808;
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-spring);
}

.tournaments-pro-btn:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .tournaments-list-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .tournament-row {
    grid-template-columns: 4fr 2fr 2fr 2fr 2fr;
    gap: 1rem;
  }

  .tournament-row-action {
    justify-content: flex-end;
  }

  .tournaments-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tournaments-pro-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── Community page (Figma /comunidad) ── */
.community-page {
  background: #080808;
}

.community-page main {
  padding-top: 0;
}

.community-wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

/* Hero */
.community-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 2.5rem)
    clamp(4rem, 8vh, 6rem);
}

.community-hero-media {
  position: absolute;
  inset: 0;
}

.community-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.community-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.8) 0%,
    rgba(8, 8, 8, 0.9) 60%,
    rgba(8, 8, 8, 1) 100%
  );
}

.community-hero-copy {
  position: relative;
  z-index: 1;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 255, 0, 0.25);
  background: rgba(204, 255, 0, 0.12);
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-mega-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.community-mega-title .accent {
  color: var(--neon);
}

.community-hero-lead {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-family: "Inter", var(--body);
  font-size: 1.25rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.community-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: var(--bg);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease-spring);
}

.community-btn-primary:hover {
  transform: scale(1.03);
}

.community-avatar-stack {
  display: flex;
  align-items: center;
}

.community-avatar {
  width: 2.25rem;
  height: 2.25rem;
  margin-left: -0.65rem;
  border-radius: 50%;
  border: 2px solid #080808;
}

.community-avatar:first-child {
  margin-left: 0;
}

.community-avatar--sky {
  background: #0ea5e9;
}

.community-avatar--violet {
  background: #8b5cf6;
}

.community-avatar--rose {
  background: #f43f5e;
}

.community-avatar--amber {
  background: #f59e0b;
}

.community-avatar--emerald {
  background: #10b981;
}

.community-avatar--count {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 255, 0, 0.15);
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Layout */
.community-section {
  padding: 4rem clamp(1.25rem, 5vw, 2.5rem);
}

.community-section--cta {
  padding-top: 0;
  padding-bottom: 5rem;
}

.community-eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}

.community-layout {
  display: grid;
  gap: 2rem;
}

/* Feed */
.community-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-post {
  overflow: hidden;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.community-post-image {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.community-post-body {
  padding: 1.5rem;
}

.community-post-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.community-post-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bg);
}

.community-post-avatar--c {
  background: hsl(80, 70%, 50%);
}

.community-post-avatar--l {
  background: hsl(140, 70%, 50%);
}

.community-post-avatar--d {
  background: hsl(200, 70%, 50%);
}

.community-post-head strong {
  display: block;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
}

.community-post-head span {
  display: block;
  margin-top: 0.15rem;
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.community-post-body > p {
  margin: 0 0 1.25rem;
  font-family: "Inter", var(--body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.community-post-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.community-post-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.25s;
}

.community-post-actions button:hover {
  color: var(--neon);
}

.community-post-share {
  margin-left: auto;
}

.community-post-share:hover {
  color: var(--white) !important;
}

/* Sidebar */
.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.community-widget {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.community-widget h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
}

.community-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.community-widget-tag {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--neon);
}

.community-nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-nearby-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.community-nearby-list img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.community-nearby-list strong {
  display: block;
  font-family: "Plus Jakarta Sans", var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

.community-nearby-list span {
  display: block;
  margin-top: 0.1rem;
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.community-nearby-list li > div {
  flex: 1;
  min-width: 0;
}

.community-challenge-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 255, 0, 0.2);
  background: rgba(204, 255, 0, 0.08);
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
}

.community-challenge-btn:hover {
  background: rgba(204, 255, 0, 0.15);
}

.community-ranking-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.community-ranking-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.community-ranking-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.community-rank-num {
  width: 1.5rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
}

.community-rank-name {
  flex: 1;
  font-family: "Inter", var(--body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.community-rank-star {
  color: var(--neon);
}

.community-ranking-list li.is-you .community-rank-num {
  color: var(--neon);
}

.community-ranking-list li.is-you .community-rank-name {
  color: var(--white);
  font-weight: 500;
}

/* Match card */
.community-match-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--neon);
  color: var(--bg);
}

.community-match-card svg {
  margin-bottom: 0.75rem;
}

.community-match-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--bg);
}

.community-match-card p {
  margin: 0 0 1rem;
  font-family: "Inter", var(--body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
}

.community-match-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: #080808;
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease-spring);
}

.community-match-btn:hover {
  transform: scale(1.02);
}

/* Pro CTA */
.community-pro-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 1.5rem;
  background: var(--neon);
  overflow: hidden;
}

.community-pro-watermark {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: var(--display);
  font-size: clamp(8rem, 28vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  user-select: none;
}

.community-pro-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--bg);
}

.community-pro-copy p {
  margin: 0;
  max-width: 24rem;
  font-family: "Inter", var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
}

.community-pro-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  flex-shrink: 0;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  background: #080808;
  color: var(--neon);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-spring);
}

.community-pro-btn:hover {
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .community-layout {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .community-pro-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── Mobile subpages ── */
@media (max-width: 767px) {
  .page-hero {
    min-height: min(62vh, 520px);
    padding-bottom: 2.5rem;
  }

  .page-hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .coach-mega-title,
  .tournaments-mega-title,
  .community-mega-title {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .coach-hero,
  .tournaments-hero,
  .community-hero {
    padding-bottom: 3rem;
  }

  .coach-hero-lead,
  .tournaments-hero-lead,
  .community-hero-lead {
    font-size: 1rem;
  }

  .coach-hero-actions,
  .tournaments-hero-actions,
  .community-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .coach-btn-primary,
  .coach-btn-secondary,
  .tournaments-btn-primary,
  .tournaments-btn-secondary,
  .community-btn-primary {
    justify-content: center;
    width: 100%;
  }

  .community-hero-actions {
    align-items: flex-start;
  }

  .coach-section-title,
  .tournaments-section-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 2rem;
  }

  .tournaments-list-head {
    gap: 1.25rem;
  }

  .tournaments-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin: 0 -0.25rem;
    scrollbar-width: none;
  }

  .tournaments-filters::-webkit-scrollbar {
    display: none;
  }

  .tournaments-filter {
    flex-shrink: 0;
  }

  .tournament-row {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    background: #111;
    margin-bottom: 0.75rem;
    border-bottom: none;
  }

  .tournaments-list {
    border-top: none;
  }

  .tournament-row-main h3 {
    font-size: 1rem;
  }

  .tournament-row-action {
    justify-content: stretch;
  }

  .tournament-enroll-btn {
    width: 100%;
    padding: 0.65rem 1rem;
  }

  .coach-pro-cta,
  .tournaments-pro-cta,
  .community-pro-cta {
    padding: 2rem 1.25rem;
  }

  .coach-pro-copy h2,
  .tournaments-pro-copy h2,
  .community-pro-copy h2 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .coach-pro-btn,
  .tournaments-pro-btn,
  .community-pro-btn {
    width: 100%;
    justify-content: center;
  }

  .coach-pro-watermark,
  .tournaments-pro-watermark,
  .community-pro-watermark {
    font-size: clamp(5rem, 22vw, 7rem);
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .coach-profile-foot {
    flex-wrap: wrap;
  }

  .coach-reserve-btn {
    margin-left: auto;
  }

  .figma-mega-title {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  .figma-section-title {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }
}
