/* =============================================================
   CADECAL EN MOVIMIENTO — styles.css
   Paleta y formas tomadas del logo oficial: azul marino, amarillo
   limón, naranja, morado, celeste y rosa. Todo redondeado y con
   contornos gruesos, como las letras del logo.
   ============================================================= */

/* =============================================================
   0. TIPOGRAFÍA PROPIA
   ============================================================= */
@font-face {
  font-family: "Don Jose Black";
  src: url("assets/fonts/DonJose_Black.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;   /* si tarda, se ve Fredoka y luego cambia: nunca texto invisible */
}

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* --- Colores oficiales del logo --- */
  --navy:      #203890;   /* muestreado del logo */
  --navy-2:    #1A2E78;
  --navy-3:    #142257;
  --yellow:    #F2E820;
  --yellow-2:  #D9CE06;
  --orange:    #E88018;
  --purple:    #8460A0;
  --cyan:      #4090D0;
  --pink:      #E83860;

  /* --- Superficies --- */
  --bg:        #FFFFFF;
  --bg-2:      #F2F4FC;
  --bg-3:      #E5E9F8;
  --ink:       #142257;
  --ink-2:     #3F4A86;
  --ink-3:     #5A6493;
  --line:      rgba(32,56,144,.18);
  --line-2:    rgba(32,56,144,.38);

  /* Naranja de la casa: vivo para masas, oscuro para texto chico */
  --accent:     var(--orange);
  --accent-txt: #A85800;

  /* Color del torneo activo (lo inyecta cada <article class="tour">) */
  --t:      var(--navy);
  --t-txt:  var(--navy);
  --t2:     var(--cyan);
  --t-soft: #EEF1FC;

  /* Paleta de la marquesina */
  --c1: var(--orange);
  --c2: var(--cyan);
  --c3: var(--pink);
  --c4: var(--yellow-2);
  --c5: var(--purple);

  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Don Jose Black", "Fredoka", "Nunito", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(1.15rem, 4vw, 3.5rem);

  /* Radios: el logo no tiene una sola esquina viva */
  --r-s:    10px;
  --r-m:    18px;
  --r-l:    30px;
  --r-pill: 999px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-pop:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
:where(h1,h2,h3,h4) { text-wrap: balance; line-height: 1.02; font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--yellow); color: var(--navy-3); }

:focus-visible { outline: 3px solid var(--t); outline-offset: 3px; border-radius: var(--r-s); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .8rem 1.3rem; background: var(--yellow); color: var(--navy-3);
  font-weight: 800; font-size: .85rem; border-radius: var(--r-pill);
}
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.mt { margin-top: 2rem; }

/* =============================================================
   3. TIPOGRAFÍA COMÚN
   ============================================================= */
.kicker {
  font-family: var(--sans); font-weight: 800;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: .5rem;
}
.h-big {
  font-family: var(--disp); font-weight: 400; text-transform: uppercase;
  letter-spacing: .005em;
  font-size: clamp(2.1rem, 6.4vw, 5rem);
  letter-spacing: -0.015em; line-height: 1.02;
  color: var(--navy); margin-top: .7rem;
}
.p-lead { font-size: clamp(1.03rem, 1.6vw, 1.26rem); line-height: 1.6; }
.block-sub { margin-top: 1.2rem; max-width: 56ch; color: var(--ink-2); }
.block-sub b { color: var(--navy); font-weight: 800; }
.mini-h {
  font-weight: 800; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t-txt); margin-bottom: 1rem;
}

/* =============================================================
   4. LOGOS
   ============================================================= */
.logo-cadecal img { width: 100%; height: auto; }
/* El nombre escrito (respaldo si falta el logo) siempre va en mayúsculas */
.brand-fallback, .splash-mark, .foot-mark { text-transform: uppercase; }
.hero-logo {
  position: relative; width: min(620px, 88%);
  margin: 0 auto clamp(.6rem, 2vh, 1.4rem);
}
.hero-logo .brand-fallback {
  font-family: var(--disp); font-weight: 600; color: #fff;
  font-size: clamp(2.4rem, 9vw, 5.5rem); line-height: 1;
}
.hero-logo .brand-fallback em { font-style: normal; color: var(--yellow); }
.hero-title.hero-title { font-size: clamp(1.6rem, 4.4vw, 3rem); }
.foot .brand-fallback em { color: var(--yellow); }
.brand-fallback { display: none; }
.sin-logo .brand-fallback { display: block; }
.sin-logo .logo-hueco { display: none; }

/* =============================================================
   5. SPLASH
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--navy);
  display: grid; place-items: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash-inner { text-align: center; padding: 2rem; }
.splash-logo { width: min(400px, 80vw); margin: 0 auto; animation: pop .75s var(--ease-pop) both; }
.splash-mark {
  display: block; font-family: var(--disp); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4.4rem); color: #fff; line-height: 1.05;
  animation: pop .75s var(--ease-pop) both;
}
.splash-mark em { font-style: normal; color: var(--yellow); }
.splash-sub {
  display: block; font-weight: 800; font-size: clamp(.66rem, 2.4vw, .78rem);
  letter-spacing: .2em; color: var(--yellow); margin-top: 1rem;
  text-transform: uppercase;
  animation: pop .75s .15s var(--ease-pop) both;
}
.splash-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.16); }
.splash-bar i { display: block; height: 100%; width: 0; background: var(--yellow); animation: barGo 1.6s var(--ease-soft) forwards; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s .5s; transform: scale(1.04); }
@keyframes pop { from { opacity: 0; transform: scale(.86) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes barGo { to { width: 100%; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }

/* =============================================================
   6. CURSOR
   ============================================================= */
.kursor {
  position: fixed; top: 0; left: 0; z-index: 8000; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease-out); will-change: transform;
}
.kursor.is-ready { opacity: 1; }
.kursor-box {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--t); mix-blend-mode: multiply;
  transition: width .25s var(--ease-pop), height .25s var(--ease-pop),
              left .25s var(--ease-pop), top .25s var(--ease-pop), opacity .25s;
}
.kursor-read { display: none; }
.kursor.is-hot .kursor-box { left: -22px; top: -22px; width: 44px; height: 44px; opacity: .38; }
@media (hover: none), (pointer: coarse) { .kursor { display: none; } }

/* =============================================================
   7. PROGRESO
   ============================================================= */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 700; }
.progress i {
  display: block; height: 100%; width: 0%;
  background: var(--t); border-radius: 0 var(--r-pill) var(--r-pill) 0;
  transition: background-color .5s var(--ease-out);
}

/* =============================================================
   8. NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 1rem;
  padding: .7rem var(--pad);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav.is-stuck {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 0 var(--line);
}
/* Mientras flota sobre el hero azul, la barra va en blanco.
   Al fijarse sobre fondo claro, vuelve al azul. */
.nav:not(.is-stuck) .brand-fallback { color: #fff; }
.nav:not(.is-stuck) .nav-links a { color: rgba(255,255,255,.86); }
.nav:not(.is-stuck) .nav-links a:hover { color: #fff; background: rgba(255,255,255,.16); }
.nav:not(.is-stuck) .nav-burger { background: rgba(255,255,255,.18); }

.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-brand.logo-cadecal { width: clamp(112px, 16vw, 168px); flex: none; }
.nav-brand .brand-fallback {
  font-family: var(--disp); font-weight: 600; font-size: 1.05rem;
  line-height: 1; color: var(--navy);
}
.nav-brand .brand-fallback em {
  display: block; font-family: var(--sans); font-style: normal; font-weight: 800;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin-top: 3px;
}
.nav-links { display: none; gap: .9rem; justify-content: center; }
.nav-links a {
  font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-2); padding: .45rem .8rem; border-radius: var(--r-pill);
  transition: color .18s var(--ease-out), background-color .18s var(--ease-out);
}
.nav-links a:hover { color: var(--navy); background: var(--bg-2); }
.nav-links a.is-current { color: #fff; background: var(--t-txt); }
.nav-cta {
  display: none; font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .68rem 1.35rem; border-radius: var(--r-pill);
  background: var(--yellow); color: var(--navy-3);
  box-shadow: 0 3px 0 var(--yellow-2);
  transition: transform .2s var(--ease-pop), box-shadow .2s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--yellow-2); }
.nav-cta:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--yellow-2); }
.nav-burger {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  border-radius: var(--r-pill); background: var(--navy); justify-self: end; grid-column: 4;
}
.nav-burger span { display: block; width: 17px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 590; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad); gap: .5rem;
}
.menu-movil[hidden] { display: none; }
.menu-movil a {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.9rem, 9vw, 3rem); line-height: 1.2; color: #fff;
  padding: .35rem 0; display: flex; align-items: baseline; gap: 1rem;
}
.menu-movil a span { font-family: var(--sans); font-weight: 800; font-size: .8rem; color: var(--yellow); }
.menu-movil a:nth-child(1) span { color: var(--orange); }
.menu-movil a:nth-child(2) span { color: var(--cyan); }
.menu-movil a:nth-child(3) span { color: var(--pink); }
.menu-movil a:nth-child(4) span { color: var(--yellow); }

/* =============================================================
   9. BOTONES
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .92rem; padding: .92rem 1.7rem;
  border-radius: var(--r-pill); border: 3px solid transparent;
  transition: transform .2s var(--ease-pop), box-shadow .2s var(--ease-out),
              background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn-solid { background: var(--yellow); color: var(--navy-3); box-shadow: 0 4px 0 var(--yellow-2); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--yellow-2); }
.btn-solid:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-2); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-line:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-line:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* =============================================================
   10. REJILLA
   ============================================================= */
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; }
.cell { grid-column: span 12; padding: 1.8rem 0; }
.cell > * + * { margin-top: 1rem; }
@media (min-width: 960px) {
  .cell { padding: 2.4rem var(--pad) 2.4rem 0; }
  .cell-3 { grid-column: span 3; }
  .cell-4 { grid-column: span 4; }
  .cell-5 { grid-column: span 5; }
  .cell-7 { grid-column: span 7; }
  .cell-8 { grid-column: span 8; }
}

/* =============================================================
   11. HERO — banda azul del logo
   ============================================================= */
.hero {
  position: relative; min-height: 100svh;
  padding: 6.5rem var(--pad) 0;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center;
  background: var(--navy); color: #fff;
  border-radius: 0 0 var(--r-l) var(--r-l);
  overflow: hidden;
}
.hero > .hero-top,
.hero > .hero-grid,
.hero > .stats,
.hero > .marquee { width: 100%; }
.hero .kicker { color: rgba(255,255,255,.68); }
/* confeti de colores, como el relleno de las letras */
.hero-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-lines i {
  position: absolute; border-radius: 50%; opacity: .5;
  filter: blur(1px);
}
.hero-lines i:nth-child(1) { width: 320px; height: 320px; background: var(--purple); top: -8%; right: -6%; opacity: .40; filter: blur(28px); }
.hero-lines i:nth-child(2) { width: 220px; height: 220px; background: var(--cyan); bottom: 14%; right: 16%; opacity: .28; filter: blur(26px); }
.hero-lines i:nth-child(3),
.hero-lines i:nth-child(4),
.hero-lines i:nth-child(5) { display: none; }
@media (min-width: 1100px) {
  .hero-lines i:nth-child(3) { display: block; width: 26px; height: 26px; background: var(--yellow); top: 20%; right: 5%; opacity: .95; filter: none; }
  .hero-lines i:nth-child(4) { display: block; width: 16px; height: 16px; background: var(--pink); top: 68%; left: 6%; opacity: .95; filter: none; }
  .hero-lines i:nth-child(5) { display: block; width: 20px; height: 20px; background: var(--orange); bottom: 14%; right: 8%; opacity: .9; filter: none; }
}

.hero-top { display: flex; justify-content: center; gap: .5rem 1.2rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 4vh, 2.4rem); position: relative; }
@media (min-width: 720px) { .hero-top { justify-content: space-between; } }
.kicker-right { color: rgba(255,255,255,.82) !important; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); display: inline-block; animation: livePulse 1.8s var(--ease-soft) infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

.hero-title {
  position: relative;
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.8rem, 11vw, 8rem);
  line-height: .96; letter-spacing: -0.02em; color: #fff;
}
.hero-title .line { display: block; will-change: transform, clip-path; }
.hero-title em { font-style: normal; color: var(--yellow); }
.hero-title .line-out { color: var(--orange); }
.hero-anim .line { clip-path: inset(0 0 108% 0); transform: translateY(14%); }
.hero-anim.is-in .line {
  clip-path: inset(-14% 0 -14% 0); transform: none;
  transition: clip-path 1.05s var(--ease-out), transform 1.05s var(--ease-out);
}
.hero-anim.is-in .line:nth-child(2) { transition-delay: .10s; }
.hero-anim.is-in .line:nth-child(3) { transition-delay: .20s; }

.hero-grid {
  position: relative; display: grid; gap: 1.5rem;
  margin-top: clamp(1.2rem, 3.5vh, 2rem);
  justify-items: center;
}
.slogan {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.5rem, 2vw, .9rem);
  font-weight: 800; font-size: clamp(.7rem, 1.8vw, .88rem);
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--yellow); text-align: center;
  margin: 0 auto clamp(1rem, 3vh, 1.7rem);
}
.slogan::before, .slogan::after {
  content: ""; height: 2px; border-radius: 2px;
  width: clamp(14px, 5vw, 46px); background: currentColor; opacity: .6; flex: none;
}
.slogan-foot { justify-content: flex-start; margin: .8rem 0 .6rem; }
.slogan-foot::before, .slogan-foot::after { display: none; }

.hero-lede { max-width: 52ch; margin: 0 auto; color: rgba(255,255,255,.86); font-size: 1.05rem; }
.hero-act { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

.stats {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .7rem; margin-top: clamp(1.6rem, 4vh, 2.4rem);
}
.stats li {
  background: rgba(255,255,255,.09); border-radius: var(--r-m);
  padding: 1rem 1.1rem;
}
.stats li:nth-child(1) { box-shadow: inset 0 -5px 0 var(--orange); }
.stats li:nth-child(2) { box-shadow: inset 0 -5px 0 var(--cyan); }
.stats li:nth-child(3) { box-shadow: inset 0 -5px 0 var(--pink); }
.stats li:nth-child(4) { box-shadow: inset 0 -5px 0 var(--yellow); }
.stat-num { display: block; font-family: var(--disp); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: #fff; }
.stat-lab { display: block; font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: .35rem; }

.marquee { position: relative; margin: clamp(1.6rem, 4vh, 2.4rem) calc(var(--pad) * -1) 0; overflow: hidden; background: var(--yellow); }
.marquee-track {
  display: flex; align-items: center; gap: 1.3rem; white-space: nowrap;
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.2rem, 3.4vw, 2.1rem); line-height: 1;
  padding: .55rem 0; color: var(--navy); will-change: transform;
}
.marquee-track b { color: var(--navy); opacity: .34; font-weight: 400; }
.marquee-track .c1 { color: #8F4A00; }   /* naranja oscurecido: va sobre amarillo, no sobre blanco */
.marquee-track .c2 { color: #1A6795; }
.marquee-track .c3 { color: #C4123F; }
.marquee-track .c4 { color: #6E4E88; }
.marquee-track.is-live { animation: mq 34s linear infinite; }
.marquee:hover .marquee-track.is-live { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   12. BLOQUES
   ============================================================= */
.block { padding: clamp(3.5rem, 10vh, 7rem) var(--pad) clamp(2.5rem, 7vh, 5rem); }
.block-head { margin-bottom: clamp(1.8rem, 5vh, 3.4rem); }

.valores { gap: 1rem; margin-top: 2rem; }
.valores .cell { background: var(--bg-2); border-radius: var(--r-m); padding: 1.6rem 1.5rem; }
.valores .cell:nth-child(1) { box-shadow: inset 0 -6px 0 var(--orange); }
.valores .cell:nth-child(2) { box-shadow: inset 0 -6px 0 var(--cyan); }
.valores .cell:nth-child(3) { box-shadow: inset 0 -6px 0 var(--pink); }
.val-n { font-family: var(--disp); font-weight: 600; font-size: 1.5rem; color: var(--navy); opacity: .35; }
.valores h3 {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: 1.24rem; line-height: 1.12; color: var(--navy); margin-top: .2rem;
}
.valores p { color: var(--ink-2); font-size: .93rem; }
.val-lema {
  font-weight: 800; font-size: .92rem !important; color: var(--accent-txt);
  margin-top: .6rem !important;
}
.val-cierre {
  font-weight: 800; color: var(--navy) !important; font-size: .93rem !important;
  margin-top: .9rem !important; padding-top: .9rem;
  border-top: 2px solid rgba(32,56,144,.14);
}
@media (min-width: 960px) {
  .valores { grid-template-columns: repeat(3, 1fr); display: grid; }
  .valores .cell { grid-column: auto; }
}

/* =============================================================
   13. ÍNDICE DE TORNEOS
   ============================================================= */
.tour-index { display: grid; gap: .7rem; }
.tour-index a {
  display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r-m);
  background: var(--bg-2);
  box-shadow: inset 6px 0 0 var(--t);
  transition: transform .22s var(--ease-pop), background-color .22s var(--ease-out), color .22s var(--ease-out);
}
.tour-index a:hover { background: var(--t-txt); color: #fff; transform: translateX(6px); }
.ti-n { font-family: var(--disp); font-weight: 600; font-size: 1.5rem; color: var(--t-txt); }
.tour-index a:hover .ti-n { color: #fff; }
.ti-name { font-family: var(--disp); font-weight: 600; text-transform: uppercase; font-size: clamp(1.2rem, 3.6vw, 1.9rem); line-height: 1.1; color: var(--navy); }
.tour-index a:hover .ti-name { color: #fff; }
.ti-sport { font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tour-index a:hover .ti-sport { color: rgba(255,255,255,.85); }

/* =============================================================
   14. TORNEO
   ============================================================= */
.tour { margin-top: clamp(2.5rem, 7vh, 4.5rem); scroll-margin-top: 90px; }
.tour-head {
  display: grid; gap: 1.3rem;
  padding: clamp(1.5rem, 4vh, 2.4rem) clamp(1.2rem, 3vw, 2.2rem);
  background: var(--t-soft); border-radius: var(--r-l);
  border: 3px solid var(--t);
}
.tour-crest { width: 66px; }
.tour-crest svg { width: 100%; height: auto; }
.tour-crest .sh { fill: #fff; stroke: var(--t); stroke-width: 4; stroke-linejoin: round; }
.tour-crest .bl { fill: none; stroke: var(--t); stroke-width: 3; }
.tour-crest .ln { fill: none; stroke: var(--t2); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tour-crest .st { fill: var(--t2); }
.tour-name {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 4rem); line-height: 1; margin-top: .4rem;
  color: var(--t-txt); letter-spacing: -0.02em;
}
.tour-claim { color: var(--ink-2); margin-top: .6rem; max-width: 46ch; font-size: 1.02rem; }
.tour-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.tour-meta li { background: rgba(255,255,255,.72); border-radius: var(--r-s); padding: .7rem .85rem; }
.tour-meta span { display: block; font-weight: 800; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tour-meta b { display: block; font-weight: 800; font-size: .95rem; margin-top: .15rem; color: var(--navy); }
.tour-meta .is-on { color: var(--t-txt); }
@media (min-width: 960px) {
  /* La tercera columna se adapta: con 21rem fijos no cabía cerca de los 960px */
  .tour-head {
    grid-template-columns: 80px minmax(0, 1fr) clamp(13rem, 22vw, 21rem);
    gap: clamp(1rem, 2.5vw, 2rem); align-items: start;
  }
  .tour-head > * { min-width: 0; }
  .tour-crest { width: 80px; }
  .tour-meta { grid-template-columns: 1fr; }
}

.tour-body { margin-top: 1.4rem; }
.tour-body .cell { padding-top: 1.2rem; padding-bottom: 1.2rem; }
@media (min-width: 960px) { .tour-body .cell + .cell { padding-left: var(--pad); } }
.rules li {
  position: relative; padding-left: 1.7rem; margin-bottom: .6rem;
  color: var(--ink-2); font-size: .95rem;
}
.rules li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--t);
}

/* =============================================================
   15. TABS
   ============================================================= */
.tabs { margin-top: 1.4rem; }
.tabs-bar {
  display: flex; gap: .4rem; padding: .35rem;
  background: var(--bg-2); border-radius: var(--r-pill);
  overflow-x: auto; scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tabs-bar button {
  font-weight: 800; font-size: .84rem; padding: .62rem 1.15rem;
  color: var(--ink-2); white-space: nowrap; border-radius: var(--r-pill);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.tabs-bar button:hover { color: var(--navy); }
.tabs-bar button[aria-selected="true"] { color: #fff; background: var(--t-txt); }
.tabs-panels { padding-top: 1.5rem; }
.tabs-panels > [role="tabpanel"] { animation: panelIn .45s var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================================================
   16. TABLAS
   ============================================================= */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-m); border: 2px solid var(--line); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl caption {
  text-align: left; font-weight: 800; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; background: var(--t-txt);
  padding: .85rem 1.1rem;
}
.tbl th, .tbl td { padding: .8rem .7rem; text-align: right; }
.tbl tbody tr + tr td { border-top: 2px solid var(--bg-3); }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 1.1rem; }
.tbl td:last-child, .tbl th:last-child { padding-right: 1.1rem; }
.tbl thead th {
  font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); background: var(--bg-2);
}
.tbl tbody tr { transition: background-color .18s var(--ease-out); }
.tbl tbody tr:hover { background: var(--t-soft); }
.tbl .num { font-family: var(--mono); font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tbl .num-strong { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.tbl .pos { font-family: var(--disp); font-weight: 600; font-size: 1.05rem; color: var(--ink-3); width: 3rem; }
.tbl .team-cell { display: flex; align-items: center; gap: .7rem; }
.tbl .team-tag {
  font-weight: 800; font-size: .68rem; letter-spacing: .03em;
  background: var(--bg-3); color: var(--navy);
  padding: .24rem .5rem; border-radius: var(--r-pill);
}
.tbl .team-name { font-weight: 800; color: var(--navy); }
.tbl .team-alias { font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.tbl tr.q-top { background: var(--t-soft); }
.tbl tr.q-top td:first-child { box-shadow: inset 5px 0 0 var(--t); }
.tbl tr.q-top .pos { color: var(--t-txt); }
.tbl .p-name { font-weight: 800; color: var(--navy); }
.tbl .p-pos { font-weight: 700; font-size: .76rem; color: var(--ink-3); }
.tbl-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: .9rem; font-weight: 700; font-size: .78rem; color: var(--ink-3); }
.tbl-legend b { color: var(--t-txt); font-weight: 800; }

.filtro { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.filtro button {
  font-weight: 800; font-size: .78rem; padding: .48rem 1rem;
  border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2);
  transition: transform .18s var(--ease-pop), background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.filtro button:hover { color: var(--navy); transform: translateY(-1px); }
.filtro button.is-on { background: var(--t-txt); color: #fff; }

/* =============================================================
   17. PARTIDOS
   ============================================================= */
.jornada { margin-bottom: 1.8rem; }
.jornada-h {
  font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 .3rem .6rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.match {
  display: grid; grid-template-columns: 1fr; gap: .6rem;
  padding: 1rem 1.1rem; background: var(--bg-2); border-radius: var(--r-m);
  margin-bottom: .6rem;
  transition: transform .22s var(--ease-pop), background-color .22s var(--ease-out);
}
.match:hover { background: var(--t-soft); transform: translateX(5px); }
.match-when { font-weight: 700; font-size: .78rem; color: var(--ink-3); display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; }
.match-team { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.match-team > span { min-width: 0; }
.match-team.away { justify-content: flex-end; text-align: right; }
.match-team .mt-name {
  display: block; font-family: var(--disp); font-weight: 600;
  font-size: clamp(1rem, 3.4vw, 1.3rem); line-height: 1.1; color: var(--navy);
}
.match-team .mt-alias {
  display: block; font-size: .72rem; font-weight: 600; color: var(--ink-3);
  margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match-score {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  padding: .38rem .8rem; border-radius: var(--r-pill);
  background: var(--navy); color: #fff;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.match-score.vs { background: transparent; color: var(--ink-3); font-weight: 800; font-family: var(--sans); font-size: .88rem; }
.match-score.win-l { background: var(--t-txt); }
.match-extra { font-weight: 600; font-size: .78rem; color: var(--ink-3); }
.match-extra b { color: var(--t-txt); font-weight: 800; }
.tag {
  font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .26rem .62rem; border-radius: var(--r-pill);
  background: var(--bg-3); color: var(--ink-2);
}
.tag-live { background: #C4123F; color: #fff; display: inline-flex; align-items: center; gap: .35rem; }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livePulse 1.5s infinite; }
.tag-fin { background: var(--bg-3); color: var(--ink-2); }
.tag-next { background: var(--t-txt); color: #fff; }
.match-pend { font-weight: 800; font-size: .88rem; color: var(--ink-3); }

/* =============================================================
   18. AGENDA
   ============================================================= */
.agenda { display: grid; gap: .7rem; }
.agenda-fallback { color: var(--ink-3); padding: 1.5rem 0; }
.ag-row {
  display: grid; grid-template-columns: 1fr; gap: .55rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r-m); background: var(--bg-2);
  box-shadow: inset 6px 0 0 var(--t);
  transition: transform .22s var(--ease-pop), background-color .22s var(--ease-out);
}
.ag-row:hover { background: var(--t-soft); transform: translateX(6px); }
.ag-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ag-date { font-weight: 800; font-size: .82rem; text-transform: uppercase; color: var(--navy); }
.ag-tour { font-weight: 800; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .24rem .6rem; border-radius: var(--r-pill); background: #fff; }
.ag-match { font-family: var(--disp); font-weight: 600; text-transform: uppercase; font-size: clamp(1.15rem, 4vw, 1.75rem); line-height: 1.1; color: var(--navy); }
.ag-meta { font-weight: 600; font-size: .8rem; color: var(--ink-3); }
@media (min-width: 960px) {
  .ag-row { grid-template-columns: 15rem 1fr 14rem; align-items: center; gap: 1.5rem; }
  .ag-meta { text-align: right; }
}

/* =============================================================
   20. FOOTER — banda azul con los dos logos
   ============================================================= */
.foot { background: var(--navy); color: #fff; border-radius: var(--r-l) var(--r-l) 0 0; overflow: hidden; }
.foot-marquee { background: var(--yellow); overflow: hidden; }
.foot-marquee .marquee-track { font-size: clamp(1.2rem, 3.4vw, 2.1rem); color: var(--navy); }
.foot-marquee .marquee-track b { color: var(--navy); opacity: .3; }
.foot-marquee .marquee-track.is-live { animation-duration: 46s; animation-direction: reverse; }
.foot-grid { padding: clamp(2rem, 5vh, 3.2rem) var(--pad) 1rem; }
.foot-grid .cell { padding-top: 1.2rem; padding-bottom: 1.2rem; }
.foot-grid .cell > a { display: block; color: rgba(255,255,255,.8); font-weight: 700; padding: .18rem 0; margin-top: .25rem; }
.foot-grid .cell > a:hover { color: var(--yellow); }
.foot-grid .mini-h { color: var(--yellow); }
.foot-grid .muted { color: rgba(255,255,255,.6); }
.foot .logo-cadecal > img { width: min(280px, 78%); }
.foot-mark { font-family: var(--disp); font-weight: 600; font-size: 2rem; color: #fff; line-height: 1.1; display: block; }
.foot-mark em { font-style: normal; color: var(--yellow); }
.foot-name { font-family: var(--disp); font-weight: 600; text-transform: uppercase; font-size: 1.35rem; margin-top: .3rem; }

.foot-adventista { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.6rem; }
/* El archivo original es azul marino. brightness(0) lo vuelve negro conservando
   la transparencia, e invert(1) lo pasa a blanco: así queda limpio sobre el pie
   azul sin necesitar un recuadro detrás ni un segundo archivo. */
.foot-adventista img {
  width: clamp(150px, 30vw, 200px); flex: none;
  filter: brightness(0) invert(1);
}
.foot-adventista p { font-weight: 700; font-size: .82rem; color: rgba(255,255,255,.66); max-width: 20ch; line-height: 1.45; }

.foot-bar-right a {
  color: rgba(255,255,255,.6); border-bottom: 2px solid rgba(255,255,255,.22);
  padding-bottom: 1px;
}
.foot-bar-right a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.foot-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem var(--pad) 1.6rem; font-weight: 700; font-size: .78rem;
  color: rgba(255,255,255,.55); border-top: 2px solid rgba(255,255,255,.14);
}

/* =============================================================
   21. REVEALS
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   22. RESPONSIVE
   ============================================================= */
@media (min-width: 540px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) {
  .match { grid-template-columns: 12rem 1fr; align-items: center; gap: 1.5rem; }
  .match-when { flex-direction: column; align-items: flex-start; gap: .3rem; }
}
@media (min-width: 960px) {
  html { scroll-padding-top: 100px; }
  .nav { grid-template-columns: 1fr auto 1fr; padding: .85rem var(--pad); }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; justify-self: end; }
  .nav-burger { display: none; }
  .match { grid-template-columns: 13rem 1fr 15rem; }
  .match-extra { text-align: right; }
}

/* =============================================================
   23. REDUCED MOTION — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; transform: none !important; }
  .live-dot, .tag-live::before { animation: none; }
}

/* =============================================================
   25. PANEL DE CARGA (admin.html)
   ============================================================= */
.gate { min-height: 100svh; display: grid; place-items: center; padding: var(--pad); background: var(--navy); }
.gate-card {
  width: min(30rem, 100%); background: #fff; border-radius: var(--r-l);
  padding: clamp(1.5rem, 5vw, 2.6rem); text-align: center;
}
.gate-logo { width: min(240px, 70%); margin: 0 auto 1.2rem; }
.gate-title { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; color: var(--navy); }
.gate-sub { color: var(--ink-2); margin-top: .3rem; font-size: .94rem; }
.gate-label { display: block; text-align: left; font-weight: 800; font-size: .78rem; color: var(--ink-2); margin: 1.6rem 0 .4rem; }
.gate-card input {
  width: 100%; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  background: var(--bg-2); border: 2px solid transparent; border-radius: var(--r-s); padding: .85rem 1rem;
}
.gate-card input:focus { outline: none; border-color: var(--purple); background: #fff; }
.gate-err { color: #C4123F; font-weight: 800; font-size: .82rem; margin-top: .5rem; text-align: left; }
.gate-btn { width: 100%; margin-top: 1rem; }
.gate-nota {
  font-size: .78rem; line-height: 1.5; color: var(--ink-2); text-align: left;
  background: var(--bg-2); border-radius: var(--r-s); padding: .9rem 1rem; margin-top: 1.5rem;
}
.gate-nota b { color: #C4123F; }
.gate-volver { margin-top: 1.2rem; font-size: .85rem; font-weight: 700; }
.gate-volver a { color: var(--ink-3); }
.gate-volver a:hover { color: var(--navy); }

body.admin-abierto { background: var(--bg-2); }
.admin { padding-bottom: 7rem; }
.admin-top {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem var(--pad); background: var(--navy); color: #fff;
  border-radius: 0 0 var(--r-l) var(--r-l);
}
.admin-brand img { width: clamp(96px, 14vw, 132px); }
.admin-top-txt { flex: 1; min-width: 12rem; }
.admin-top h1 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; }
.admin-top p { font-weight: 700; font-size: .82rem; color: rgba(255,255,255,.68); }
.admin-ver { color: #fff !important; border-color: rgba(255,255,255,.5) !important; padding: .6rem 1.2rem; font-size: .84rem; }
.admin-ver:hover { background: #fff; color: var(--navy) !important; }

.admin-como {
  margin: 1.5rem var(--pad); background: #fff; border-radius: var(--r-m);
  padding: 1.3rem 1.5rem; border-left: 6px solid var(--yellow);
}
.admin-como h2 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; color: var(--navy); margin-bottom: .7rem; }
.admin-como ol { counter-reset: paso; display: grid; gap: .5rem; }
.admin-como li { counter-increment: paso; position: relative; padding-left: 2rem; font-size: .92rem; color: var(--ink-2); }
.admin-como li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--navy); color: #fff;
  font-weight: 800; font-size: .74rem; display: grid; place-items: center;
}
.admin-como b { color: var(--navy); }
.admin-como code { font-family: var(--mono); font-size: .86em; background: var(--bg-3); padding: .1rem .35rem; border-radius: 4px; }
.admin-como-nota { margin-top: .8rem; font-size: .86rem; color: var(--ink-3); font-weight: 700; }

.admin-tabs { display: grid; gap: .6rem; margin: 0 var(--pad) 1.5rem; }
@media (min-width: 720px) { .admin-tabs { grid-template-columns: repeat(4, 1fr); } }
.admin-tab {
  text-align: left; background: #fff; border-radius: var(--r-m); padding: .9rem 1rem;
  box-shadow: inset 6px 0 0 var(--t);
  transition: transform .2s var(--ease-pop), background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.admin-tab:hover { transform: translateY(-2px); }
.admin-tab.is-on { background: var(--navy); color: #fff; }
.admin-tab-n { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.admin-tab.is-on .admin-tab-n { color: var(--yellow); }
.admin-tab-nom { display: block; font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.02rem; line-height: 1.15; margin-top: .15rem; }
.admin-tab-dep { display: block; font-weight: 700; font-size: .72rem; color: var(--ink-3); margin-top: .15rem; }
.admin-tab.is-on .admin-tab-dep { color: rgba(255,255,255,.7); }

.admin-panel { margin: 0 var(--pad); display: grid; gap: 1.5rem; }
.admin-bloque { background: #fff; border-radius: var(--r-l); padding: clamp(1.1rem, 3vw, 1.8rem); }
.admin-bloque-cab { margin-bottom: 1.2rem; }
.admin-bloque-cab h2 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; color: var(--navy); }
.admin-bloque-cab p { font-size: .88rem; color: var(--ink-3); font-weight: 600; margin-top: .2rem; }
.admin-vacio { color: var(--ink-3); font-weight: 700; padding: 1.5rem 0; }

.p-lista { display: grid; gap: .9rem; margin-bottom: 1.2rem; }
.p-fila { background: var(--bg-2); border-radius: var(--r-m); padding: 1rem 1.1rem; display: grid; gap: .8rem; }
.p-cab { display: flex; align-items: center; gap: .7rem; }
.p-num { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--ink-3); flex: none; }
.p-ronda { flex: 1; font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1rem; color: var(--navy); background: transparent; border: 0; border-bottom: 2px solid var(--line); padding: .2rem 0; }
.p-ronda:focus { outline: none; border-bottom-color: var(--purple); }
.p-borrar { font-weight: 800; font-size: .74rem; color: #C4123F; padding: .35rem .7rem; border-radius: var(--r-pill); background: rgba(196,18,63,.09); flex: none; }
.p-borrar:hover { background: #C4123F; color: #fff; }

.p-linea { display: flex; flex-wrap: wrap; gap: .7rem; }
.p-linea label { display: flex; flex-direction: column; gap: .3rem; font-weight: 800; font-size: .72rem; color: var(--ink-2); flex: 1 1 8rem; }
.p-linea label.p-ancho { flex: 2 1 14rem; }
.p-linea input, .p-linea select {
  font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--r-s); padding: .55rem .7rem; width: 100%;
}
.p-linea input:focus, .p-linea select:focus { outline: none; border-color: var(--purple); }

.p-marcador { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: .5rem; }
.p-eq {
  font-family: var(--sans); font-weight: 800; font-size: .92rem; color: var(--navy);
  background: #fff; border: 2px solid var(--line); border-radius: var(--r-s); padding: .55rem .6rem; min-width: 0;
}
.p-gol {
  width: 4rem; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 1.1rem;
  background: #fff; border: 2px solid var(--line); border-radius: var(--r-s); padding: .5rem .3rem; color: var(--navy);
}
.p-gol:focus, .p-eq:focus { outline: none; border-color: var(--purple); }
.p-vs { font-weight: 800; font-size: .78rem; color: var(--ink-3); }
@media (max-width: 719px) {
  .p-marcador { grid-template-columns: 1fr auto 1fr; }
  .p-marcador .p-vs { display: none; }
  .p-eq:first-child { grid-column: 1 / -1; }
  .p-marcador .p-eq:last-child { grid-column: 1 / -1; order: 3; }
}

.btn-mini { padding: .65rem 1.2rem; font-size: .84rem; }

.admin-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem var(--pad); background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -2px 0 var(--line);
}
.admin-estado { font-weight: 800; font-size: .82rem; color: var(--ink-3); }
.admin-estado.es-sucio { color: #C4123F; }
.admin-estado.es-ok { color: #1A6795; }
.admin-acciones { display: flex; gap: .5rem; flex-wrap: wrap; }

/* =============================================================
   26. BASES Y REGLAMENTO
   ============================================================= */
.bs-cab {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 3px solid var(--t);
  margin-bottom: 1.2rem;
}
.bs-titulo { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; color: var(--t-txt); line-height: 1.1; }
.bs-sub { font-weight: 700; font-size: .82rem; color: var(--ink-3); margin-top: .2rem; }
.bs-intro { color: var(--ink-2); margin-bottom: .8rem; font-size: .96rem; }
.bs-acciones { margin: 1.2rem 0 1rem; }
.bs-toggle {
  font-weight: 800; font-size: .78rem; color: var(--t-txt);
  border-bottom: 2px solid currentColor; padding-bottom: 1px;
}
.bs-secs { display: grid; gap: .5rem; }
.bs-sec { background: var(--bg-2); border-radius: var(--r-m); overflow: hidden; }
.bs-sec summary {
  cursor: pointer; list-style: none; padding: .9rem 1.1rem;
  font-family: var(--disp); font-weight: 400; text-transform: uppercase;
  font-size: 1rem; color: var(--navy); display: flex; align-items: center; gap: .8rem;
}
.bs-sec summary::-webkit-details-marker { display: none; }
.bs-sec summary::after {
  content: "+"; margin-left: auto; font-family: var(--sans); font-weight: 800;
  font-size: 1.3rem; color: var(--t-txt); line-height: 1;
}
.bs-sec[open] summary::after { content: "–"; }
.bs-sec summary:hover { background: var(--t-soft); }
.bs-n {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--t-txt); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
}
.bs-cuerpo { padding: 0 1.1rem 1.1rem; }
.bs-cuerpo p { color: var(--ink-2); font-size: .94rem; margin-bottom: .6rem; }
.bs-lista { margin: 0 0 .8rem; display: grid; gap: .4rem; }
.bs-lista li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .94rem; }
.bs-lista li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
.bs-lema {
  margin-top: 1.6rem; text-align: center; font-family: var(--disp); font-weight: 400;
  text-transform: uppercase; font-size: clamp(1.1rem, 3.5vw, 1.6rem); color: var(--t-txt);
}
.bs-firma { text-align: center; font-weight: 800; font-size: .78rem; color: var(--ink-3); margin-top: .3rem; }

/* =============================================================
   27. MULTIMEDIA
   ============================================================= */
.mm-tabs .tabs-bar { max-width: 26rem; }

.nt-lista { display: grid; gap: 1rem; }
@media (min-width: 960px) { .nt-lista { grid-template-columns: repeat(2, 1fr); } }
.nt {
  background: var(--bg-2); border-radius: var(--r-l); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease-pop);
}
.nt:hover { transform: translateY(-3px); }
.nt-foto { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.nt-foto img { width: 100%; height: 100%; object-fit: cover; }
.nt-txt { padding: 1.2rem 1.3rem 1.4rem; }
.nt-fecha { font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-txt); }
.nt-titulo { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; color: var(--navy); margin: .35rem 0 .5rem; line-height: 1.15; }
.nt-cuerpo { color: var(--ink-2); font-size: .94rem; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.gal-item {
  position: relative; display: block; padding: 0; overflow: hidden;
  border-radius: var(--r-m); aspect-ratio: 4 / 3; background: var(--bg-3);
  transition: transform .22s var(--ease-pop);
}
.gal-item:hover { transform: scale(1.02); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-pie {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem;
  background: linear-gradient(to top, rgba(20,34,87,.85), transparent);
  color: #fff; font-weight: 700; font-size: .78rem; text-align: left;
}

.visor {
  position: fixed; inset: 0; z-index: 9500; background: rgba(20,34,87,.94);
  display: grid; place-items: center; padding: var(--pad);
  animation: panelIn .3s var(--ease-out) both;
}
.visor figure { max-width: min(72rem, 100%); }
.visor img { max-width: 100%; max-height: 78svh; object-fit: contain; border-radius: var(--r-m); }
.visor figcaption { color: #fff; font-weight: 700; text-align: center; margin-top: 1rem; }
.visor-x {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px;
  border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; line-height: 1;
}
.visor-x:hover { background: var(--yellow); color: var(--navy); }

.vids { display: grid; gap: 1rem; }
@media (min-width: 960px) { .vids { grid-template-columns: repeat(2, 1fr); } }
.vid { background: var(--bg-2); border-radius: var(--r-l); overflow: hidden; }
.vid-play, .vid-marco { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--navy-3); padding: 0; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; }
.vid-icono {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: var(--yellow); display: block;
  transition: transform .22s var(--ease-pop);
}
.vid-icono::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0; border-left: 22px solid var(--navy);
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
  transform: translateX(3px);
}
.vid-play:hover .vid-icono { transform: scale(1.1); }
.vid-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-txt { padding: 1rem 1.2rem 1.3rem; }
.vid-txt h3 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; color: var(--navy); }
.vid-txt p { color: var(--ink-2); font-size: .92rem; margin-top: .3rem; }

/* =============================================================
   28. PANEL — subnavegación, equipos, multimedia
   ============================================================= */
.admin-sub { display: flex; gap: .4rem; padding: .35rem; background: #fff; border-radius: var(--r-pill); margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.admin-sub::-webkit-scrollbar { display: none; }
.admin-sub-b {
  font-weight: 800; font-size: .84rem; padding: .6rem 1.2rem; border-radius: var(--r-pill);
  color: var(--ink-2); white-space: nowrap;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.admin-sub-b:hover { color: var(--navy); }
.admin-sub-b.is-on { background: var(--navy); color: #fff; }

.eq-id { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); flex: 1; }
.admin-nota { margin-top: .9rem; font-size: .82rem; font-weight: 700; color: var(--ink-3); }
.admin-bloque-cab code { font-family: var(--mono); font-size: .86em; background: var(--bg-3); padding: .1rem .35rem; border-radius: 4px; }
.p-linea textarea {
  font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--r-s);
  padding: .55rem .7rem; width: 100%; resize: vertical; line-height: 1.5;
}
.p-linea textarea:focus { outline: none; border-color: var(--purple); }
.p-linea input[type="file"] { border: 0; background: transparent; padding: .35rem 0; font-size: .8rem; }
.gl-prev { width: 140px; height: 96px; object-fit: cover; border-radius: var(--r-s); }

/* =============================================================
   29. ESTADO «POR CONFIRMAR»
   ============================================================= */
.vacio {
  text-align: center; padding: clamp(2rem, 6vw, 3.4rem) 1.2rem;
  background: var(--bg-2); border-radius: var(--r-l);
  border: 2px dashed var(--line-2);
}
.vacio-t {
  font-family: var(--disp); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.2rem, 3.6vw, 1.7rem); color: var(--t-txt);
  line-height: 1.15; max-width: 22ch; margin-inline: auto; text-wrap: balance;
}
.vacio-d { color: var(--ink-2); font-size: .94rem; margin-top: .5rem; max-width: 42ch; margin-inline: auto; }
.agenda .vacio { margin-top: .5rem; }

/* =============================================================
   30. EL PROYECTO — frases destacadas y cierre de comunidad
   ============================================================= */
.destacado {
  font-family: var(--disp); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.15rem, 3.2vw, 1.65rem); line-height: 1.15;
  color: var(--navy); padding-left: 1.2rem; border-left: 6px solid var(--yellow);
  margin: 1.4rem 0 !important;
}
.remate { font-weight: 800; color: var(--navy) !important; font-size: 1.02rem; }

.comunidad {
  margin-top: clamp(2rem, 6vh, 3.4rem);
  background: var(--navy); color: #fff; border-radius: var(--r-l);
  padding: clamp(2rem, 6vw, 3.4rem) clamp(1.2rem, 4vw, 2.5rem);
  text-align: center;
}
.comunidad h3 {
  font-family: var(--disp); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.5rem, 5vw, 2.6rem); line-height: 1.08; color: #fff;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.comunidad p { color: rgba(255,255,255,.85); font-size: 1.02rem; margin-top: .8rem; }
.comunidad-firma {
  font-weight: 800; color: var(--yellow) !important;
  text-transform: uppercase; letter-spacing: .1em; font-size: .84rem !important;
  margin-top: 1.2rem !important;
}
