/* ==========================================================================
   COPA MARIACHI — hoja de estilos compartida
   Concepto: "Bajo las luces" — un torneo nocturno de penales bajo reflectores.
   El movimiento (particulas, ticker, secuencia de carga) siempre remite a
   ese ambiente: brasas/luz de estadio, marcador de scoreboard, presentacion
   de equipos.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- color ---- */
  --void: #0a0908;
  --surface: #14110c;
  --surface-2: #1c1810;
  --line: rgba(243,234,217,0.12);
  --line-strong: rgba(243,234,217,0.22);

  --gold-dim: #6b551f;
  --gold: #c79a3c;
  --gold-bright: #f2c661;

  --cream: #f3ead9;
  --muted: #b4a993;
  --muted-2: #7c7263;

  --cash: #3f7d4c;
  --cash-bright: #6fcf82;
  --cash-dim: #234a2b;

  /* ---- type ---- */
  --f-display: 'Anton', sans-serif;
  --f-body: 'Manrope', sans-serif;

  /* ---- misc ---- */
  --container: 1180px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

::selection{ background: var(--gold); color: var(--void); }

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ==========================================================================
   Tipografia
   ========================================================================== */
.eyebrow{
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.eyebrow.cash{ color: var(--cash-bright); }

h1, .h1{
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  color: var(--cream);
}

h2, .h2{
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  font-size: clamp(32px, 4.4vw, 56px);
  color: var(--cream);
}

h3, .h3{
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--cream);
}

p.lead{
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted);
  max-width: 46em;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn-gold{ background: var(--gold); color: var(--void); }
.btn-gold:hover{ background: var(--gold-bright); }

.btn-cash{ background: var(--cash); color: #06130a; }
.btn-cash:hover{ background: var(--cash-bright); }

.btn-ghost{ background: transparent; border-color: var(--line-strong); color: var(--cream); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-bright); }

.btn-ghost.cash:hover{ border-color: var(--cash-bright); color: var(--cash-bright); }

/* ==========================================================================
   Navegacion
   ========================================================================== */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: linear-gradient(to bottom, rgba(10,9,8,0.92), rgba(10,9,8,0));
  backdrop-filter: blur(2px);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  background: rgba(10,9,8,0.92);
  border-bottom-color: var(--line);
  padding: 10px 28px;
}
.nav-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.03em;
}
.nav-brand img{ height: 42px; width: auto; transition: height 0.3s ease; }
.nav.is-scrolled .nav-brand img{ height: 34px; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover{ color: var(--cream); }
.nav-links a:hover::after{ width: 100%; }
.nav-links a.active{ color: var(--gold-bright); }
.nav-links a.active::after{ width: 100%; }

.nav-cta{ display: flex; align-items: center; gap: 18px; }
.nav-toggle{
  display: none;
  width: 34px; height: 26px;
  position: relative;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span{
  position: absolute; left: 0; right: 0; height: 2px; background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span:nth-child(1){ top: 2px; }
.nav-toggle span:nth-child(2){ top: 12px; }
.nav-toggle span:nth-child(3){ top: 22px; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

/* ==========================================================================
   Hero + particulas
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 28px 100px;
  overflow: hidden;
  background: var(--void);
}
.hero-bg{
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  filter: saturate(0.9);
}
.hero-bg-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.72) 55%, var(--void) 100%),
    linear-gradient(90deg, rgba(10,9,8,0.75) 0%, rgba(10,9,8,0.15) 45%, rgba(10,9,8,0.55) 100%);
}
.hero canvas{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}
.hero-rays{
  position: absolute;
  inset: -10%;
  z-index: 2;
  background-image: repeating-conic-gradient(from 0deg at 50% -20%,
    rgba(243,234,217,0.028) 0deg 2deg, transparent 2deg 14deg);
  opacity: 0.6;
  pointer-events: none;
}
.hero-player{
  position: absolute;
  right: -2%;
  bottom: 0;
  height: 92%;
  width: auto;
  z-index: 3;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.65));
  opacity: 0;
  will-change: transform;
  animation: playerIn 1.1s cubic-bezier(.2,.8,.2,1) 0.25s forwards;
  pointer-events: none;
}
@keyframes playerIn{
  from{ opacity: 0; transform: translateY(40px) scale(0.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.hero-inner{
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.hero-content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 26px;
  max-width: 620px;
}
.hero-crest{
  height: 60px;
  width: auto;
  opacity: 0;
  animation: crestIn 0.9s cubic-bezier(.2,.8,.2,1) 0.1s forwards;
}
@keyframes crestIn{
  from{ opacity: 0; transform: scale(0.7) translateY(-14px); }
  to{ opacity: 1; transform: scale(1) translateY(0); }
}

.hero h1{
  font-size: clamp(42px, 6.2vw, 92px);
  overflow: visible;
}
.hero h1 .line{ display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.hero h1 .word{
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes wordUp{ to{ transform: translateY(0); } }

.hero-sub{
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero-sub p.lead{ text-align: left; }
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

.hero-ctas{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.scroll-cue{
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp 0.8s ease 1.3s forwards;
}
.scroll-cue span{ font-size: 11px; letter-spacing: 0.16em; color: var(--muted-2); }
.scroll-cue i{
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after{
  content:'';
  position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-bright));
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop{
  0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; }
}

/* ---------- Fondos con foto para secciones (parallax sutil) ---------- */
.photo-section{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.photo-section .photo-bg{
  position: absolute;
  inset: -10% -4%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
  filter: saturate(0.85);
}
.photo-section .photo-overlay{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--void) 0%, rgba(10,9,8,0.86) 12%, rgba(10,9,8,0.86) 88%, var(--void) 100%);
}

/* ==========================================================================
   Ticker (marquee)
   ========================================================================== */
.ticker{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.ticker-track{
  display: inline-flex;
  animation: tickerScroll 32s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
.ticker-track span{
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.ticker-track span em{ color: var(--gold); font-style: normal; }
.ticker-track span::after{ content: '\26bd'; font-size: 12px; opacity: 0.5; margin-left: 22px; }
@keyframes tickerScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   Secciones generales
   ========================================================================== */
.section{ padding: 120px 0; position: relative; }
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .eyebrow{ margin-bottom: 14px; display: block; }

.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Portales (COMPAS / $10,000) — split
   ========================================================================== */
.portals{ display: grid; grid-template-columns: 1fr 1fr; }
.portal{
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  overflow: hidden;
  isolation: isolate;
}
.portal::before{
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.portal.gold::before{
  background:
    radial-gradient(circle at 30% 20%, rgba(199,154,60,0.22), transparent 55%),
    linear-gradient(180deg, #171310, #0a0908);
}
.portal.cash::before{
  background:
    radial-gradient(circle at 70% 20%, rgba(63,125,76,0.26), transparent 55%),
    linear-gradient(180deg, #101512, #0a0908);
}
.portal:hover::before{ transform: scale(1.05); }
.portal-num{
  position: absolute; top: 40px; right: 48px;
  font-family: var(--f-display);
  font-size: 15vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  opacity: 0.6;
  pointer-events: none;
}
.portal-tag{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  width: fit-content;
  margin-bottom: 22px;
}
.portal.gold .portal-tag{ color: var(--gold-bright); border-color: var(--gold-dim); }
.portal.cash .portal-tag{ color: var(--cash-bright); border-color: var(--cash-dim); }

.portal h3{ font-size: clamp(34px, 4vw, 54px); margin-bottom: 10px; }
.portal p{ color: var(--muted); max-width: 34em; margin-bottom: 24px; }

.portal-stats{ display: flex; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.portal-stats div{ display: flex; flex-direction: column; gap: 2px; }
.portal-stats b{ font-family: var(--f-display); font-size: 30px; }
.portal.gold .portal-stats b{ color: var(--gold-bright); }
.portal.cash .portal-stats b{ color: var(--cash-bright); }
.portal-stats span{ font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; }

/* ==========================================================================
   Proceso (pasos numerados — genuinamente secuencial)
   ========================================================================== */
.process{ position: relative; }
.process-line{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-line::before{
  content: '';
  position: absolute;
  top: 21px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.process-line::after{
  content: '';
  position: absolute;
  top: 21px; left: 0;
  height: 1px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.step{ position: relative; padding-right: 28px; }
.step-num{
  counter-increment: step;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--gold-bright);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.step h4{ font-family: var(--f-display); font-size: 18px; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.02em; }
.step p{ font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Stats grid
   ========================================================================== */
.stats-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-card{ background: var(--void); padding: 40px 28px; text-align: center; }
.stat-card .count{ font-family: var(--f-display); font-size: clamp(40px, 4.6vw, 64px); color: var(--gold-bright); display: block; }
.stat-card .label{ font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-top: 8px; display: block; }

/* ==========================================================================
   Venue
   ========================================================================== */
.venue{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.venue-map{
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.venue-map svg{ position: absolute; inset: 0; width: 100%; height: 100%; }
.venue-pin{
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 20px; height: 20px;
  background: var(--gold-bright);
  border-radius: 50% 50% 50% 0;
  transform-origin: bottom right;
  rotate: -45deg;
  box-shadow: 0 0 0 6px rgba(242,198,97,0.16);
  animation: pinPulse 2.4s ease-in-out infinite;
}
@keyframes pinPulse{
  0%,100%{ box-shadow: 0 0 0 6px rgba(242,198,97,0.16); }
  50%{ box-shadow: 0 0 0 12px rgba(242,198,97,0.06); }
}
.venue-facts{ list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.venue-facts li{ display: flex; gap: 14px; font-size: 15px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 14px; }
.venue-facts b{ color: var(--cream); min-width: 130px; font-weight: 700; }

/* ==========================================================================
   Grupos (grid de tarjetas)
   ========================================================================== */
.groups-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.group-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.group-card:hover{ transform: translateY(-3px); }
.group-card.gold:hover{ border-color: var(--gold-dim); }
.group-card.cash:hover{ border-color: var(--cash-dim); }
.group-card-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.group-letter{ font-family: var(--f-display); font-size: 26px; }
.group-card.gold .group-letter{ color: var(--gold-bright); }
.group-card.cash .group-letter{ color: var(--cash-bright); }
.group-card-head span{ font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; }
.group-card ul{ display: flex; flex-direction: column; gap: 8px; }
.group-card li{ font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.group-card li:first-child{ border-top: none; padding-top: 0; }

/* ==========================================================================
   CTA banda final
   ========================================================================== */
.cta-band{
  position: relative;
  text-align: center;
  padding: 110px 28px;
  overflow: hidden;
}
.cta-band.gold{ background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(199,154,60,0.18), transparent 60%), var(--surface); }
.cta-band.cash{ background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(63,125,76,0.2), transparent 60%), var(--surface); }
.cta-band h2{ margin-bottom: 20px; }
.cta-band p{ color: var(--muted); max-width: 34em; margin: 0 auto 34px; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer{ border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-top{ display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-brand{ display: flex; align-items: center; gap: 14px; }
.footer-brand img{ height: 54px; }
.footer-brand span{ font-family: var(--f-display); font-size: 20px; letter-spacing: 0.03em; }
.footer-cols{ display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h5{ font-size: 12px; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ font-size: 14px; color: var(--muted); transition: color 0.15s ease; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.footer-bottom p{ font-size: 12px; color: var(--muted-2); }
.social{ display: flex; gap: 14px; }
.social a{
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social a:hover{ border-color: var(--gold); color: var(--gold-bright); }

/* ==========================================================================
   Utilidades de acento cash
   ========================================================================== */
.text-gold{ color: var(--gold-bright); }
.text-cash{ color: var(--cash-bright); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .nav-links{
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    height: 100vh;
    width: min(78vw, 340px);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 110px 32px 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
    border-left: 1px solid var(--line);
    z-index: 90;
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .nav-cta .btn-ghost{ display: none; }

  .portals{ grid-template-columns: 1fr; }
  .venue{ grid-template-columns: 1fr; }
  .process-line{ grid-template-columns: 1fr; gap: 34px; }
  .process-line::before, .process-line::after{ display: none; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .groups-grid{ grid-template-columns: repeat(2, 1fr); }

  .hero-player{
    height: 62%;
    right: 50%;
    transform: translateX(50%);
    opacity: 0.22 !important;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)) grayscale(0.15);
  }
  .hero-inner{ justify-content: center; }
  .hero-content{ align-items: center; text-align: center; max-width: 100%; }
  .hero-sub{ align-items: center; }
  .hero-sub p.lead{ text-align: center; }
  .hero-ctas{ justify-content: center; }
  .hero-bg-overlay{
    background:
      linear-gradient(180deg, rgba(10,9,8,0.6) 0%, rgba(10,9,8,0.8) 55%, var(--void) 100%),
      rgba(10,9,8,0.35);
  }
}

@media (max-width: 560px){
  .groups-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .section{ padding: 84px 0; }
  .hero{ padding-top: 120px; }
}

/* ==========================================================================
   CALENDARIO — tabla de partidos + bracket de liguilla
   ========================================================================== */
.cal-banner{
  padding: 150px 0 50px;
  text-align: center;
}
.cal-banner h1{ font-size: clamp(36px, 5.5vw, 64px); margin-bottom: 14px; }
.cal-banner p{ color: var(--muted); max-width: 40em; margin: 0 auto; }

.cal-tabs{
  position: sticky;
  top: 70px;
  z-index: 50;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10,9,8,0.96);
  backdrop-filter: blur(6px);
  overflow-x: auto;
}
.cal-tab{
  flex: 0 0 auto;
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-left: none; border-right: none; border-top: none;
  font-family: var(--f-body);
}
.cal-tab:hover{ color: var(--cream); }
.cal-tab.active{ color: var(--gold-bright); border-bottom-color: var(--gold); }
.cash-theme .cal-tab.active{ color: var(--cash-bright); border-bottom-color: var(--cash); }

.cal-panel{ display: none; padding: 50px 0 100px; }
.cal-panel.active{ display: block; }

.cal-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cal-chip{
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  background: none;
  font-family: var(--f-body);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cal-chip:hover{ color: var(--cream); }
.cal-chip.active{ background: var(--gold); border-color: var(--gold); color: var(--void); }
.cash-theme .cal-chip.active{ background: var(--cash); border-color: var(--cash); color: #06130a; }

.cal-table-wrap{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.cal-table{
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.cal-table thead th{
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.cal-table tbody td{
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  vertical-align: middle;
}
.cal-table tbody tr:last-child td{ border-bottom: none; }
.cal-table tbody tr:hover{ background: rgba(199,154,60,0.05); }
.cash-theme .cal-table tbody tr:hover{ background: rgba(63,125,76,0.06); }
.cal-time{ color: var(--gold-bright); font-weight: 700; white-space: nowrap; }
.cash-theme .cal-time{ color: var(--cash-bright); }
.cal-field{ color: var(--muted); white-space: nowrap; }
.cal-group-badge{
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--f-display); font-size: 12px;
  color: var(--gold-bright);
}
.cash-theme .cal-group-badge{ color: var(--cash-bright); }
.cal-match b{ font-weight: 700; }
.cal-match .vs{ color: var(--muted-2); font-weight: 400; margin: 0 8px; font-size: 12px; }
.cal-empty{ padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---- Repechaje / Liguilla: listas de partidos con seed ---- */
.seed-list{ display: flex; flex-direction: column; gap: 10px; }
.seed-row{
  display: grid;
  grid-template-columns: 90px 70px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.seed-meta{ font-size: 12px; color: var(--muted-2); }
.seed-meta b{ display:block; color: var(--gold-bright); font-size: 13px; }
.cash-theme .seed-meta b{ color: var(--cash-bright); }
.seed-match{ font-size: 14px; }
.seed-match .vs{ color: var(--muted-2); margin: 0 10px; font-size: 12px; }

/* ---- Bracket (liguilla) ---- */
.bracket-scroll{ overflow-x: auto; padding-bottom: 20px; }
.bracket{
  display: flex;
  gap: 46px;
  min-width: max-content;
  padding: 10px 4px;
}
.bracket-col{
  display: flex;
  flex-direction: column;
  min-width: 240px;
}
.bracket-col-matches{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 18px;
}
.bracket-col-title{
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
  text-align: center;
  margin-bottom: 18px;
}
.cash-theme .bracket-col-title{ color: var(--cash-bright); }
.bracket-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
}
.bracket-card .b-meta{ font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.05em; margin-bottom: 8px; }
.bracket-card .b-team{
  padding: 5px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.bracket-card .b-team:first-of-type{ border-top: none; }
.bracket-final .bracket-card{ border-color: var(--gold-dim); }
.cash-theme .bracket-final .bracket-card{ border-color: var(--cash-dim); }

@media (max-width: 700px){
  .seed-row{ grid-template-columns: 1fr; gap: 6px; }
}
