/* ═══════════════════════════════════════════════════════════════
   TEAM FIGHTERS VIERA — Hoja de estilos
   Diseño: negro grafito + rojo profundo + gris acero
   Modos: .mode-3d (hub isométrico) / .mode-2d (scroll clásico)
   Desarrollado con Web&Corte · webycorte.com
   ═══════════════════════════════════════════════════════════════ */

/* =============================================================
   1. Tokens — design system
   ============================================================= */
:root {
  /* Paleta */
  --bg: #0c0c0e;
  --bg-2: #141419;
  --bg-3: #1c1c23;
  --ink: #f0eee9;
  --ink-mute: #9a97a0;
  --accent: #c11430;
  --accent-hover: #e01a3a;
  --accent-rgb: 193, 20, 48;
  --steel: #7d838c;
  --warm: #ffb96b;
  --line: rgba(255, 255, 255, 0.09);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Escala tipográfica fluida (375px → 1440px) */
  --text-xs:   clamp(0.69rem,  0.66rem + 0.13vw, 0.75rem);
  --text-sm:   clamp(0.83rem,  0.78rem + 0.24vw, 0.94rem);
  --text-base: clamp(1rem,     0.93rem + 0.33vw, 1.13rem);
  --text-md:   clamp(1.13rem,  1.03rem + 0.48vw, 1.38rem);
  --text-lg:   clamp(1.27rem,  1.12rem + 0.74vw, 1.69rem);
  --text-xl:   clamp(1.42rem,  1.19rem + 1.11vw, 2.06rem);
  --text-2xl:  clamp(1.6rem,   1.24rem + 1.77vw, 2.63rem);
  --text-3xl:  clamp(1.95rem,  1.39rem + 2.79vw, 3.38rem);
  --text-4xl:  clamp(2.44rem,  1.57rem + 4.33vw, 4.5rem);
  --text-hero: clamp(3rem,     1.5rem  + 7.5vw,  8rem);

  /* Espaciado fluido */
  --space-1:  clamp(0.25rem, 0.23rem + 0.11vw, 0.31rem);
  --space-2:  clamp(0.5rem,  0.46rem + 0.22vw, 0.63rem);
  --space-3:  clamp(0.75rem, 0.68rem + 0.33vw, 0.94rem);
  --space-4:  clamp(1rem,    0.91rem + 0.43vw, 1.25rem);
  --space-6:  clamp(1.5rem,  1.37rem + 0.65vw, 1.88rem);
  --space-8:  clamp(2rem,    1.83rem + 0.87vw, 2.5rem);
  --space-12: clamp(3rem,    2.74rem + 1.3vw,  3.75rem);
  --space-16: clamp(4rem,    3.65rem + 1.74vw, 5rem);
  --space-24: clamp(6rem,    5.48rem + 2.61vw, 7.5rem);

  /* Sombras */
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.35);

  /* Transiciones */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:   cubic-bezier(0.87, 0, 0.13, 1);
  --dur-fast: 180ms;
  --dur-mid:  360ms;
  --dur-slow: 600ms;

  /* Radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Z-index */
  --z-raised: 10;
  --z-sticky: 100;
  --z-modal: 200;
  --z-overlay: 300;
  --z-loader: 500;
}

/* =============================================================
   2. Reset premium
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip; /* clip, no hidden — no rompe sticky */
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
p + p { margin-top: var(--space-4); }
ul, ol { list-style: none; }
kbd {
  font-family: inherit; font-size: 0.85em;
  padding: 0.1em 0.5em;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-3);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--accent); color: #fff; }

/* Modo 3D: la página no hace scroll — todo ocurre en la escena */
html.mode-3d, html.mode-3d body { height: 100%; overflow: hidden; }

/* =============================================================
   3. Utilidades
   ============================================================= */
/* El atributo hidden SIEMPRE gana, aunque el elemento tenga display propio */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--ink); color: var(--bg);
  z-index: calc(var(--z-loader) + 1);
  border-radius: var(--radius-md); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.7em;
  font-weight: 700; font-size: var(--text-sm);
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.35);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.45);
}

/* =============================================================
   4. Loader
   ============================================================= */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
  /* Red de seguridad: si el JS falla, el loader se oculta solo a los 4,5 s */
  animation: loaderSafety 0.01s 4.5s forwards;
}
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: var(--space-3); }
.loader__logo {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  margin-bottom: var(--space-2);
}
.loader__brand {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: 0.06em;
  color: var(--ink);
}
.loader__brand::after { content: '.'; color: var(--accent); }
.loader__sub {
  font-size: var(--text-xs); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute);
}
.loader__bar {
  width: min(260px, 60vw); height: 3px;
  margin-top: var(--space-4);
  background: var(--bg-3); border-radius: var(--radius-pill);
  overflow: hidden;
}
.loader__fill {
  display: block; width: 0%; height: 100%;
  background: var(--accent);
  transition: width var(--dur-mid) var(--ease-out);
}
.loader__pct { font-size: var(--text-xs); color: var(--ink-mute); font-variant-numeric: tabular-nums; }

/* =============================================================
   5. Cabecera / menú de zonas
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(rgba(12,12,14,0.92), rgba(12,12,14,0.75) 70%, transparent);
}
@supports (backdrop-filter: blur(12px)) {
  .nav { background: rgba(12,12,14,0.55); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); }
}
.nav__brand { font-size: 0; }
.nav__brand a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--text-md);
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  flex: none;
}
.nav__brand a span[aria-hidden]::after { content: '.'; color: var(--accent); }
.nav__zones { display: flex; gap: var(--space-2); margin-inline: auto; flex-wrap: wrap; }
.nav__zones a {
  white-space: nowrap;
  padding: 0.45em 0.95em;
  font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__zones a:hover { color: var(--ink); border-color: var(--line); }
.nav__zones a.is-open { color: #fff; background: var(--accent); border-color: var(--accent); }
.nav__cta {
  padding: 0.55em 1.2em;
  font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav__cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* =============================================================
   6. Hub 3D
   ============================================================= */
.hub { display: none; }
html.mode-3d .hub {
  display: block;
  position: fixed; inset: 0;
  z-index: 1;
}
.hub__canvas, .hub__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__hotspots { position: absolute; inset: 0; pointer-events: none; }

/* ── Hotspots ── */
.hotspot {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.hotspot.is-visible { opacity: 1; visibility: visible; }
/* En Fase 1 los hotspots se ven pero no se pueden pulsar */
.hub.is-tour .hotspot { pointer-events: none; }
.hotspot__dot {
  position: relative;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.28), 0 0 18px rgba(var(--accent-rgb), 0.8);
}
.hotspot__dot::before {
  content: '';
  position: absolute; inset: -9px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.6);
  border-radius: 50%;
  animation: hotspotPulse 2.2s var(--ease-soft) infinite;
}
@keyframes hotspotPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.hotspot__tag {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: grid; gap: 1px;
  padding: 0.5em 0.9em;
  text-align: left; white-space: nowrap;
  background: rgba(20, 20, 25, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.hotspot__tag strong { font-size: var(--text-sm); font-weight: 800; }
.hotspot__tag em { font-style: normal; font-size: var(--text-xs); color: var(--ink-mute); }
.hotspot:hover .hotspot__tag,
.hotspot:focus-visible .hotspot__tag,
.hotspot.is-current .hotspot__tag {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.hotspot.is-current .hotspot__dot { transform: scale(1.25); }

/* ── UI del recorrido (Fase 1) ── */
.tour {
  position: absolute; left: 50%; bottom: clamp(1rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: var(--space-3);
  z-index: var(--z-raised);
  width: min(92vw, 560px);
  text-align: center;
}
.tour__progress { display: flex; align-items: center; gap: var(--space-3); }
.tour__counter {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.15em; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.tour__dots { display: flex; gap: 8px; }
.tour__dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: background var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.tour__dots span.is-done { background: var(--steel); }
.tour__dots span.is-active { background: var(--accent); transform: scale(1.35); border-color: var(--accent); }
.tour__hint { font-size: var(--text-sm); color: var(--ink-mute); }
.tour__skip {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0.5em 1.2em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.tour__skip:hover { color: var(--ink); border-color: var(--steel); }
/* Mientras el CTA final está visible, la ayuda del tour se aparta */
.tour.is-ctaed .tour__hint,
.tour.is-ctaed .tour__skip { opacity: 0; visibility: hidden; transition: opacity var(--dur-mid) var(--ease-out); }

/* ── CTA de transición a modo libre ── */
.freecta {
  position: absolute; left: 50%; bottom: clamp(1.5rem, 6vh, 3.5rem);
  transform: translateX(-50%);
  z-index: var(--z-raised);
  width: min(92vw, 480px);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  background: rgba(20, 20, 25, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: freectaIn var(--dur-slow) var(--ease-spring) both;
}
@supports (backdrop-filter: blur(16px)) {
  .freecta { background: rgba(20, 20, 25, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}
@keyframes freectaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.freecta__title {
  font-family: var(--font-display);
  font-size: var(--text-xl); letter-spacing: 0.03em;
}
.freecta__sub { margin: var(--space-2) 0 var(--space-4); font-size: var(--text-sm); color: var(--ink-mute); }

.hub__freehint {
  position: absolute; left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  animation: freehintFade 0.8s var(--ease-out) both;
}
@keyframes freehintFade { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================
   7. Contenido de zonas — dos presentaciones
   ============================================================= */

/* ── Presentación 2D (por defecto, también sin JS) ── */
.contenido { max-width: 860px; margin-inline: auto; padding: 0 var(--space-6); }
.zona { padding: var(--space-16) 0; border-bottom: 1px solid var(--line); }
.zona:last-child { border-bottom: 0; }
.zona__close { display: none; }
.zona__eyebrow {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
}
.zona__title {
  margin: var(--space-2) 0 var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.02em;
}
.zona__sub {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--text-md); font-weight: 800;
}
.zona__body > .zona__sub:first-child { margin-top: 0; }

/* ── Presentación 3D: panel deslizante ── */
html.mode-3d .contenido { max-width: none; margin: 0; padding: 0; }
html.mode-3d .zona {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: var(--z-modal);
  width: min(560px, 94vw);
  padding: calc(var(--space-16) + 1rem) var(--space-8) var(--space-12);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  border-left: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: var(--shadow-xl);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-expo), visibility var(--dur-slow);
}
html.mode-3d .zona.is-open { transform: translateX(0); visibility: visible; }
html.mode-3d .zona__close {
  display: grid; place-items: center;
  position: absolute; top: calc(var(--space-8) + 3.2rem); right: var(--space-6);
  width: 42px; height: 42px;
  font-size: 1.5rem; line-height: 1;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
html.mode-3d .zona__close:hover { color: var(--ink); border-color: var(--steel); transform: rotate(90deg); }

.backdrop {
  position: fixed; inset: 0;
  z-index: calc(var(--z-modal) - 1);
  background: rgba(5, 5, 8, 0.55);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.backdrop.is-visible { opacity: 1; }
.backdrop[hidden] { display: none; }

/* Elementos solo del modo 2D */
html.mode-3d [data-solo-2d] { display: none; }

/* =============================================================
   8. Hero 2D (fallback)
   ============================================================= */
.hero2d {
  min-height: 100svh;
  display: grid; align-content: center; justify-items: start;
  gap: var(--space-4);
  max-width: 860px; margin-inline: auto;
  padding: var(--space-24) var(--space-6) var(--space-16);
  position: relative;
}
.hero2d::before {
  content: '';
  position: absolute; inset: -20% -30% auto;
  height: 90%;
  background: radial-gradient(50% 45% at 60% 40%, rgba(var(--accent-rgb), 0.22), transparent 72%);
  filter: blur(60px);
  pointer-events: none;
}
.hero2d__eyebrow {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero2d__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero2d__sub { max-width: 42ch; color: var(--ink-mute); font-size: var(--text-md); }
.hero2d__sub strong { color: var(--ink); }

/* =============================================================
   9. Componentes de contenido
   ============================================================= */
.tabla-horario { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tabla-horario th, .tabla-horario td {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.tabla-horario th { font-weight: 700; }
.tabla-horario td { color: var(--ink-mute); text-align: right; font-variant-numeric: tabular-nums; }

.lista-check { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.lista-check li { position: relative; padding-left: 1.6em; font-size: var(--text-sm); color: var(--ink-mute); }
.lista-check li::before {
  content: '';
  position: absolute; left: 0; top: 0.42em;
  width: 0.7em; height: 0.38em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.lista-equipo { display: grid; gap: 0; margin-top: var(--space-4); }
.lista-equipo li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink-mute);
}
.lista-equipo li strong { color: var(--ink); font-weight: 700; }

.pendiente {
  color: var(--ink-mute); font-size: var(--text-sm);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-3);
}

.contacto p { color: var(--ink-mute); font-style: normal; }
.contacto { margin-bottom: var(--space-6); font-style: normal; }
.contacto a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--accent); }

.bloque-disciplina {
  padding: var(--space-4) var(--space-6);
  margin-top: var(--space-4);
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.bloque-disciplina .zona__sub { margin-top: 0; }

/* ── Galería ── */
.galeria-filtros { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.filtro {
  padding: 0.45em 1.1em;
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
}
.filtro:hover { color: var(--ink); border-color: var(--steel); }
.filtro.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
}
.ph {
  aspect-ratio: 4 / 3;
  display: grid; place-content: center; gap: var(--space-1);
  text-align: center;
  background:
    linear-gradient(150deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ph:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.ph.is-hidden { display: none; }
.ph__icon { font-size: 1.6rem; filter: grayscale(0.3); }
.ph figcaption { font-size: var(--text-xs); color: var(--ink-mute); padding: 0 var(--space-2); }

/* ── Testimonios ── */
.testimonios { margin-top: var(--space-4); }
.testimonios__track { position: relative; min-height: 11em; }
.testimonio {
  position: absolute; inset: 0;
  padding: var(--space-6);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  opacity: 0; visibility: hidden;
  transform: translateX(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
.testimonio.is-active { opacity: 1; visibility: visible; transform: translateX(0); position: relative; }
.testimonio p { font-size: var(--text-sm); }
.testimonio footer {
  margin-top: var(--space-3);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hover);
}
.testimonios__nav { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-4); }
.testimonios__nav button {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-mute);
  transition: all var(--dur-fast) var(--ease-out);
}
.testimonios__nav button:hover { color: var(--ink); border-color: var(--steel); }
.testimonios__dots { display: flex; gap: 7px; }
.testimonios__dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease-out);
}
.testimonios__dots button.is-active { background: var(--accent); border-color: var(--accent); }

/* ── Equipo · ficha del entrenador ── */
.coach {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-4);
}
@media (min-width: 560px) {
  .coach { grid-template-columns: 240px 1fr; align-items: start; }
}
.coach__fotos {
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr 1fr; /* móvil: las dos fotos lado a lado */
}
@media (min-width: 560px) {
  .coach__fotos { grid-template-columns: 1fr; } /* escritorio: apiladas en la columna */
}
.coach__foto {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.coach__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach__foto::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.25);
  pointer-events: none;
}
.coach__nombre {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.02em;
}
.coach__rol {
  margin: var(--space-1) 0 var(--space-4);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-hover);
}
.coach__info .btn { margin-top: var(--space-6); }

/* =============================================================
   10. Pie + WhatsApp flotante
   ============================================================= */
.footer {
  max-width: 860px; margin-inline: auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink-mute);
  display: grid; gap: var(--space-2);
}
.footer strong { color: var(--ink); }
.footer__credit { font-size: var(--text-xs); }
.footer__credit a { color: var(--ink); border-bottom: 1px solid var(--accent); }

.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-overlay); /* por encima de los paneles: visible siempre */
  display: grid; place-items: center;
  width: 56px; height: 56px;
  color: #fff;
  background: #1fad52;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 32px rgba(31, 173, 82, 0.4); }

.ig-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + 68px); /* apilado encima del WhatsApp */
  z-index: var(--z-overlay);
  display: grid; place-items: center;
  width: 56px; height: 56px;
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out);
}
.ig-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 32px rgba(214, 36, 159, 0.45); }
.footer a[data-instagram] { color: var(--ink); border-bottom: 1px solid var(--accent); }
.contacto a[data-instagram] { color: var(--ink); }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (max-width: 719px) {
  .nav { padding: var(--space-2) var(--space-4); gap: var(--space-3); flex-wrap: wrap; }
  .nav__zones { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav__zones::-webkit-scrollbar { display: none; }
  html.mode-3d .zona { width: 100vw; border-left: 0; }
}
@media (min-width: 960px) {
  .contenido { max-width: 920px; }
}

/* =============================================================
   12. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hotspot__dot::before { animation: none; }
  /* Las transiciones de paneles y micro-hovers se mantienen: no son intrusivas */
}
