/* Vibe Trader Bootcamp — landing «La escena» (TAL-5727; implementa el prototipo v2 aprobado en TAL-5718).
   Tokens de color: los nueve del look de la casa (sin cambios). Tipografía: Bebas Neue (rótulos) ·
   Playfair Display (títulos, nombres) · Instrument Sans (cuerpo) · JetBrains Mono (horas y números).
   Se sirve desde /assets/v2/ (cache de 1 día en Caddy): al cambiarla, subir el ?v= del <link> en index.html.
   Estructura: tokens → base → vocabulario tipográfico → nav → escenas → hero → secciones → panel flotante
   (formulario) → FAQ → pie → modal de cookies → responsive. */

:root {
  color-scheme: dark;
  --bg-primary: #0A0B0F;
  --bg-secondary: #141519;
  --bg-card: #1A1B20;
  --accent-gold: #C9A962;
  --accent-green: #4A7C6F;
  --accent-cta: #5A8F7E;
  --text-primary: #F5F5F0;
  --text-secondary: #8A8B91;
  --border: #2A2B30;
  --v2-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --v2-serif: 'Playfair Display', Georgia, serif;
  --v2-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --v2-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --v2-gold-soft: rgba(201, 169, 98, 0.55);
  --v2-gold-hair: rgba(201, 169, 98, 0.28);
  --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --v2-wrap: 1180px;
  --v2-dock-w: 360px;
  --v2-dock-gap: 400px;
  /* La página no crece más allá de 1920 px: en pantallas 5K se centra con fondo continuo y las escenas
     conservan su proporción (antes, la altura fija recortaba las cabezas a 2560 px). */
  --v2-page-max: 1920px;
  --v2-edge: max(0px, calc((100vw - var(--v2-page-max)) / 2));
}

html { background: var(--bg-primary); }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font-family: var(--v2-sans); }

.v2 { position: relative; max-width: var(--v2-page-max); margin-inline: auto; font-family: var(--v2-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.55; letter-spacing: 0.005em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.v2 a { color: var(--accent-gold); text-decoration: none; }
.v2 a:hover { color: var(--text-primary); }
.v2 h1, .v2 h2, .v2 h3, .v2 h4 { margin: 0; font-weight: 600; }
.v2 p { margin: 0; }
.v2 ul { margin: 0; padding: 0; list-style: none; }
.v2 img { display: block; max-width: 100%; height: auto; }

/* ---------- vocabulario tipográfico ---------- */
.v2-kicker { font-family: var(--v2-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-gold); }
.v2-display { font-family: var(--v2-display); font-weight: 400; line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
.v2-serif { font-family: var(--v2-serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; }
.v2-mono { font-family: var(--v2-mono); font-variant-numeric: tabular-nums; }
.v2-lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--text-secondary); text-wrap: pretty; max-width: 60ch; }
.v2-wrap { width: min(var(--v2-wrap), calc(100% - 40px)); margin: 0 auto; }

/* ---------- nav ---------- */
.v2-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px calc(24px + var(--v2-edge)); background: linear-gradient(180deg, rgba(10, 11, 15, 0.9) 0%, rgba(10, 11, 15, 0) 100%); transition: background-color 0.35s var(--v2-ease), padding 0.35s var(--v2-ease); }
.v2 .v2-nav-logo { height: 26px; width: auto; filter: brightness(0) invert(1); }
.v2 .v2-nav-cta { font-family: var(--v2-sans); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); background: transparent; border: 1px solid var(--v2-gold-soft); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: border-color 0.35s var(--v2-ease), color 0.35s var(--v2-ease); }
.v2 .v2-nav-cta:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.v2 .v2-nav-cta:focus-visible, .v2 .v2-dock-min:focus-visible, .v2 .v2-faq-q:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; }
.v2-nav.is-scrolled { background: rgba(10, 11, 15, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--v2-gold-hair); padding: 12px calc(24px + var(--v2-edge)); }

/* ---------- escena a sangre (bloque reutilizable) ---------- */
.v2-scene { position: relative; isolation: isolate; background: var(--bg-primary); }
.v2-scene-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.v2-scene-media img, .v2-scene-media video { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.v2-scene-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--v2-ease); }
.v2-scene-media video.is-on { opacity: 1; }
.v2-scene-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 11, 15, 0.55) 0%, rgba(10, 11, 15, 0) 38%, rgba(10, 11, 15, 0) 70%, rgba(10, 11, 15, 0.92) 100%); }
/* escena como bloque propio (nunca debajo de un titular): hero, calendario, registro */
/* en escritorio la caja es más apaisada que el máster 21:9 y se ancla abajo: se recorta el cielo vacío de la
   parte alta (los personajes quedan cerca del titular); en móvil la caja es 1:1 y se ancla arriba */
.v2-scene-block { position: relative; inset: auto; z-index: 0; aspect-ratio: 3 / 1; }
.v2-scene-block .v2-scene-veil { z-index: 1; background: linear-gradient(180deg, rgba(10, 11, 15, 0.9) 0%, rgba(10, 11, 15, 0) 22%, rgba(10, 11, 15, 0) 72%, rgba(10, 11, 15, 0.94) 100%); }
.v2-band { padding: 96px 0 14px; text-align: center; }
.v2-band .v2-kicker { font-size: clamp(13px, 0.95vw, 16px); letter-spacing: 0.26em; }
.v2-band h2 { font-size: clamp(48px, 6.6vw, 104px); margin-top: clamp(18px, 2vw, 30px); }
.v2-band .v2-lead { margin: 12px auto 0; }

/* ---------- hero: titular en banda, escena 21:9 debajo, placa al pie ---------- */
.v2-hero { padding: 0; }
.v2-hero-top { padding: 104px 20px 12px; text-align: center; }
.v2-hero-top .v2-kicker { font-size: clamp(13px, 0.95vw, 16px); letter-spacing: 0.26em; }
.v2 .v2-hero-title { font-size: clamp(56px, 5.6vw, 80px); margin: clamp(16px, 1.6vw, 24px) auto 0; max-width: 22ch; color: var(--text-primary); }
.v2-hero-title em { font-style: normal; color: var(--accent-gold); }
.v2-hero-when { margin: 18px auto 0; font-family: var(--v2-serif); font-size: clamp(15px, 1.3vw, 19px); color: var(--text-secondary); text-wrap: balance; }
.v2-hero-when b { color: var(--accent-gold); font-weight: 600; }
.v2-hero .v2-scene-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 2.7 / 1; } /* más apaisada que el bucle (2206/946), anclado abajo: imagen y vídeo se recortan igual por arriba */
.v2-hero .v2-scene-media img { object-position: center bottom; }
.v2-hero .v2-scene-media .v2-scene-veil { z-index: 1; background: linear-gradient(180deg, rgba(10, 11, 15, 0.9) 0%, rgba(10, 11, 15, 0) 22%, rgba(10, 11, 15, 0) 70%, rgba(10, 11, 15, 0.92) 100%); }
.v2-hero-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; margin-top: -56px; position: relative; z-index: 2; padding-bottom: 56px; }
.v2-hero-credit { grid-column: 1 / -1; text-align: center; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.18em; }
.v2-hero-sub { grid-column: 1 / -1; font-family: var(--v2-serif); font-weight: 400; font-style: italic; font-size: clamp(17px, 1.5vw, 22px); color: var(--text-primary); max-width: 52ch; margin: 0 auto 10px; text-align: center; text-wrap: pretty; }
.v2-plate { border: 1px solid var(--v2-gold-hair); background: rgba(10, 11, 15, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 20px 22px; }
.v2-plate-title { font-family: var(--v2-serif); font-size: clamp(20px, 1.8vw, 26px); color: var(--accent-gold); }
.v2-plate-main { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; }
.v2-plate-main .v2-mono { font-size: clamp(28px, 2.6vw, 38px); color: var(--text-primary); line-height: 1; }
.v2-plate-main span:last-child { color: #B3B4BA; font-size: 14px; }
.v2-chips { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.v2-chips li { font-size: 13px; color: #B3B4BA; }
.v2-chips b { font-family: var(--v2-mono); font-weight: 500; color: var(--text-primary); margin-left: 4px; }
.v2-hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.v2 .v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--v2-sans); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--bg-primary); background: var(--accent-gold); padding: 18px 34px; border-radius: 6px; border: 0; cursor: pointer; box-shadow: 0 10px 40px rgba(201, 169, 98, 0.18); transition: transform 0.4s var(--v2-ease), box-shadow 0.4s var(--v2-ease); }
.v2 .v2-btn:hover { color: var(--bg-primary); transform: translateY(-2px); box-shadow: 0 16px 50px rgba(201, 169, 98, 0.3); }
.v2 .v2-btn:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; }
.v2-hero-note { font-size: 13px; color: var(--text-secondary); text-align: right; }
.v2-hero-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--v2-gold-hair); }
.v2-hero-note a:hover { color: var(--accent-gold); }

/* reveal único al cargar (hero) */
@media (prefers-reduced-motion: no-preference) {
  .v2-hero .v2-rv { opacity: 0; transform: translateY(18px); animation: v2In 0.9s var(--v2-ease) forwards; }
  .v2-hero .v2-hero-title { animation-delay: 0.1s; }
  .v2-hero .v2-scene-media.v2-rv { animation-delay: 0.2s; }
  .v2-hero-bottom.v2-rv { animation-delay: 0.35s; }
}
@keyframes v2In { to { opacity: 1; transform: translateY(0); } }

/* ---------- secciones ---------- */
.v2-sec { padding: 148px 0 96px; }
.v2-sec-tight { padding: 88px 0 72px; }
.v2-head { max-width: 760px; }
.v2-head.is-center { margin: 0 auto; text-align: center; }
.v2-head .v2-kicker { font-size: clamp(12px, 0.85vw, 14px); }
.v2-head h2 { font-size: clamp(36px, 4.4vw, 62px); margin-top: clamp(16px, 1.4vw, 22px); }
.v2-head .v2-lead { margin-top: 18px; }

/* ---------- instructores: fotos reales al tamaño de la landing original (rejilla 900 px) ---------- */
.v2-instr { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; max-width: 900px; margin: 56px auto 0; }
.v2-instr-card { position: relative; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; margin: 0; }
.v2-instr-card img { width: 100%; height: 320px; object-fit: cover; object-position: center 15%; transition: transform 1.2s var(--v2-ease); }
.v2-instr-card:hover img { transform: scale(1.03); }
/* la foto de Raúl es nocturna y la de Fran diurna: se acerca la temperatura de la segunda sin tocar el archivo */
.v2-instr-card:nth-child(2) img { filter: brightness(1.08) saturate(0.95) sepia(0.05); }
.v2-instr-txt { padding: 22px 24px 26px; }
.v2-instr-txt h3 { font-family: var(--v2-serif); font-size: clamp(24px, 2vw, 30px); }
.v2-instr-txt .v2-kicker { display: block; margin-top: 6px; font-size: 11px; }
.v2-instr-txt p { margin-top: 12px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; text-wrap: pretty; }

/* ---------- qué aprenderás: tres escenas ----------
   La altura sale de la proporción del bloque (9:4 sobre másters 16:9 → recorte vertical constante del 21 %,
   centrado), nunca de una altura fija: así a 1728, 1920 o 2560 px la escena no corta las cabezas. */
.v2-learn { margin-top: 64px; display: grid; gap: 2px; }
.v2-learn-item { position: relative; width: 100%; min-width: 0; min-height: 460px; aspect-ratio: 9 / 4; display: grid; align-items: center; isolation: isolate; }
.v2-learn-item .v2-scene-media img { object-position: center; }
.v2-learn-txt { width: min(440px, calc(100% - 48px)); padding: 36px 0; }
.v2-learn-item.is-left .v2-learn-txt { margin-left: max(24px, calc((100% - var(--v2-wrap)) / 2)); }
.v2-learn-item.is-right .v2-learn-txt { justify-self: end; margin-right: max(24px, calc((100% - var(--v2-wrap)) / 2)); }
.v2-learn-num { font-family: var(--v2-display); font-size: clamp(52px, 6vw, 84px); line-height: 0.9; color: var(--accent-gold); }
.v2-learn-txt h3 { font-family: var(--v2-serif); font-size: clamp(26px, 2.6vw, 36px); margin-top: 6px; text-wrap: balance; }
.v2-learn-txt .v2-kicker { display: block; margin-top: 10px; color: var(--text-secondary); letter-spacing: 0.14em; }
.v2-learn-txt ul { margin-top: 18px; border-top: 1px solid var(--v2-gold-hair); }
.v2-learn-txt li { padding: 11px 0; border-bottom: 1px solid var(--v2-gold-hair); font-size: 15px; color: var(--text-primary); }
.v2-learn-item .v2-scene-veil { background: linear-gradient(90deg, rgba(10, 11, 15, 0.86) 0%, rgba(10, 11, 15, 0.35) 42%, rgba(10, 11, 15, 0) 65%); }
.v2-learn-item.is-right .v2-scene-veil { background: linear-gradient(270deg, rgba(10, 11, 15, 0.86) 0%, rgba(10, 11, 15, 0.35) 42%, rgba(10, 11, 15, 0) 65%); }

/* ---------- calendario ---------- */
.v2-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; position: relative; z-index: 1; }
.v2-day { padding: 28px 28px 32px; border-left: 1px solid var(--v2-gold-hair); }
.v2-day:first-child { border-left: 0; }
.v2-day-num { font-family: var(--v2-display); font-size: clamp(64px, 7vw, 110px); line-height: 0.85; color: var(--accent-gold); }
.v2-day h3 { font-family: var(--v2-serif); font-size: clamp(22px, 2vw, 28px); margin-top: 10px; }
.v2-day-sub { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.v2-day ol { margin: 22px 0 0; padding: 0; list-style: none; }
.v2-day li { padding: 12px 0; border-top: 1px solid var(--v2-gold-hair); font-size: 14.5px; }
.v2-day li .v2-mono { display: block; font-size: 11.5px; color: var(--accent-gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.v2-tag { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg-primary); background: var(--accent-gold); padding: 3px 7px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.v2-cal-note { margin-top: 36px; font-size: 13.5px; color: var(--text-secondary); text-align: center; padding-bottom: 8px; }

/* ---------- aprenderás a orquestar agentes (proporción 2:1 sobre máster 16:9 → recorte vertical del 11 %) ---------- */
.v2-agents { width: 100%; min-height: 520px; aspect-ratio: 2 / 1; display: grid; align-items: end; padding-bottom: 72px; }
/* la escena de agentes reutiliza el máster del ítem 03 de «Qué aprenderás»: aquí se muestra con otro encuadre y un grading más cálido para que no se lea como el mismo fotograma */
.v2-agents .v2-scene-media img { filter: saturate(1.08) sepia(0.08) contrast(1.04); }
.v2-agents .v2-scene-media img { object-position: 100% center; }
.v2-agents .v2-scene-veil { background: linear-gradient(90deg, rgba(10, 11, 15, 0.96) 0%, rgba(10, 11, 15, 0.82) 34%, rgba(10, 11, 15, 0.25) 58%, rgba(10, 11, 15, 0) 75%), linear-gradient(0deg, rgba(10, 11, 15, 0.85) 0%, rgba(10, 11, 15, 0) 40%); }
.v2-agents-txt { max-width: 640px; }
.v2-agents-txt .v2-kicker { font-size: clamp(13px, 0.95vw, 16px); letter-spacing: 0.26em; }
.v2-agents-txt h2 { font-size: clamp(48px, 7vw, 108px); margin-top: clamp(16px, 1.8vw, 28px); }
.v2-agents-txt ul { margin-top: 26px; }
.v2-agents-txt li { font-family: var(--v2-serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; padding: 14px 0; border-top: 1px solid var(--v2-gold-hair); text-wrap: pretty; }
.v2-agents-txt li b { color: var(--accent-gold); font-weight: 600; }

/* ---------- para quién es ---------- */
.v2-who { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.v2-who ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--v2-gold-hair); }
.v2-who li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--v2-gold-hair); }
.v2-who li .v2-display { font-family: var(--v2-display); font-size: 40px; color: var(--accent-gold); line-height: 1; }
.v2-who li p { font-family: var(--v2-serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; }

/* ---------- registro: aviso importante + CTA (el formulario vive en el panel flotante) ---------- */
.v2-reg-body { position: relative; z-index: 1; margin-top: 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
.v2-legal { padding-top: 18px; border-top: 1px solid var(--accent-gold); }
.v2-legal .v2-kicker { display: block; }
.v2-legal p { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.v2-reg-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 18px; }
.v2-reg-cta .v2-hero-note { text-align: left; }

/* ---------- formulario flotante: panel fijo a la derecha (escritorio) · hoja inferior (móvil) ---------- */
.v2-dock { position: fixed; right: calc(20px + var(--v2-edge)); bottom: 20px; z-index: 60; width: var(--v2-dock-w); max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; background: rgba(14, 15, 20, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--v2-gold-hair); border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.v2-dock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--v2-gold-hair); }
.v2-dock-head .v2-kicker { font-size: 10.5px; }
.v2-dock-title { font-family: var(--v2-serif); font-size: 20px; color: var(--text-primary); margin-top: 2px; }
.v2 .v2-dock-min { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--v2-gold-soft); background: transparent; color: var(--accent-gold); font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.v2-dock.is-min .v2-dock-body { display: none; }
/* el módulo del registro (form/bootcamp-form.js) monta sus clases bf-* dentro del panel: aquí solo se viste */
.v2 .v2-dock .form-container { border: 0; border-radius: 0; background: transparent; padding: 16px 16px 14px; max-width: none; margin: 0; }
.v2 .v2-dock .bf { --bf-accent: var(--accent-gold); --bf-radius: 10px; --bf-border: var(--border); --bf-bg: var(--bg-secondary); --bf-fg: var(--text-primary); max-width: none; gap: 12px; font-family: var(--v2-sans); color: var(--text-primary); }
.v2 .v2-dock .bf-google { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px; font: 600 14px var(--v2-sans); padding: 11px 12px; transition: border-color 0.3s var(--v2-ease); }
.v2 .v2-dock .bf-google:hover { border-color: var(--accent-gold); }
.v2 .v2-dock .bf-separator { color: var(--text-secondary); font-size: 13px; font-family: var(--v2-sans); }
.v2 .v2-dock .bf-form { gap: 10px; }
.v2 .v2-dock .bf-label { font: 600 11.5px var(--v2-sans); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.v2 .v2-dock .bf-input, .v2 .v2-dock .bf-country { padding: 11px 12px; font: 400 14px var(--v2-sans); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); transition: border-color 0.3s var(--v2-ease); }
.v2 .v2-dock .bf-input::placeholder { color: var(--text-secondary); }
.v2 .v2-dock .bf-input:focus, .v2 .v2-dock .bf-country:focus { outline: none; border-color: var(--accent-gold); }
.v2 .v2-dock .bf-input:focus-visible, .v2 .v2-dock .bf-country:focus-visible, .v2 .v2-dock .bf-google:focus-visible, .v2 .v2-dock .bf-submit:focus-visible, .v2 .v2-dock .bf-consent input:focus-visible, .v2 .v2-dock .bf-legal a:focus-visible, .v2 .v2-dock .form-note a:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.v2 .v2-dock .bf-phone { grid-template-columns: minmax(9.5rem, 46%) 1fr; }
.v2 .v2-dock .bf-country { font-family: var(--v2-mono); font-size: 12px; padding: 11px 18px 11px 8px; }
.v2 .v2-dock .bf-consent { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; font-family: var(--v2-sans); padding-block: 4px; }
.v2 .v2-dock .bf-consent input { accent-color: var(--accent-gold); width: 18px; height: 18px; flex-shrink: 0; }
.v2 .v2-dock .bf-error { color: #ef4444; font-size: 13px; font-family: var(--v2-sans); }
.v2 .v2-dock .bf-submit { background: linear-gradient(135deg, var(--accent-gold) 0%, #B8984F 100%); color: var(--bg-primary); border-radius: 6px; font: 700 15px var(--v2-sans); letter-spacing: 0.02em; padding: 14px; transition: transform 0.35s var(--v2-ease), box-shadow 0.35s var(--v2-ease); }
.v2 .v2-dock .bf-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201, 169, 98, 0.3); }
.v2 .v2-dock .bf-legal { color: var(--text-secondary); opacity: 1; font-size: 11.5px; font-family: var(--v2-sans); }
.v2 .v2-dock .bf-legal a { color: var(--accent-gold); text-decoration: none; }
.v2 .v2-dock .bf-legal a:hover { text-decoration: underline; }
.v2 .v2-dock .form-note { margin-top: 10px; font-size: 11px; color: var(--text-secondary); text-align: center; }
.v2 .v2-dock .form-note a { text-decoration: underline; }
.v2-bar { display: none; transition: transform 0.35s var(--v2-ease); }
.v2-bar.is-hidden { transform: translateY(110%); }
.v2-velo { display: none; }
@media (min-width: 1100px) {
  /* el contenido deja sitio al panel de la derecha; el titular del hero también (en portátiles de 768 px de
     alto el panel llega hasta el título) */
  .v2-wrap { width: min(var(--v2-wrap), calc(100% - 40px - var(--v2-dock-gap))); margin-left: max(20px, calc((100% - var(--v2-dock-gap) - var(--v2-wrap)) / 2)); }
  .v2-hero-top { padding-right: calc(20px + var(--v2-dock-gap)); }
  /* el cuerpo del panel reserva el alto del formulario antes de que el módulo lo monte: sin salto de layout */
  .v2-dock-body { min-height: 550px; }
  .v2-learn-item.is-left .v2-learn-txt { margin-left: max(24px, calc((100% - var(--v2-dock-gap) - var(--v2-wrap)) / 2)); }
  .v2-learn-item.is-right .v2-learn-txt { margin-right: max(calc(var(--v2-dock-gap) + 20px), calc((100% - var(--v2-dock-gap) - var(--v2-wrap)) / 2 + var(--v2-dock-gap))); }
  /* las escenas de «qué aprenderás» y la de agentes terminan antes de la columna del panel: el formulario queda
     AL LADO del personaje, nunca encima (Fran y el Oso viven en el borde derecho de sus escenas) */
  .v2-learn-item .v2-scene-media, .v2-learn-item .v2-scene-veil, .v2-agents .v2-scene-media, .v2-agents .v2-scene-veil { right: var(--v2-dock-gap); }
  .v2-learn-item.is-left .v2-scene-media img { object-position: right center; }
  .v2-learn-item.is-right .v2-scene-media img { object-position: left center; }
  /* con el panel a la derecha, la escena derecha se muestra entera (16:9) y el texto baja al pie para no pisar la cabeza del Oso */
  .v2-learn-item.is-right { aspect-ratio: 16 / 9; min-width: 0; min-height: 700px; align-items: end; }
  /* el pie también deja sitio al panel: el enlace «Aviso Legal» quedaba tapado entre 1100 y 1270 px */
  .v2-foot { padding-right: var(--v2-dock-gap); }
  .v2-learn-item.is-right .v2-learn-txt { padding-bottom: 40px; }
  /* la hoja abierta en móvil bloquea el scroll del fondo (como el modal de cookies) */

  .v2-learn-item.is-right .v2-scene-veil { background: linear-gradient(270deg, rgba(10, 11, 15, 0.86) 0%, rgba(10, 11, 15, 0.45) 45%, rgba(10, 11, 15, 0) 70%), linear-gradient(0deg, rgba(10, 11, 15, 0.88) 0%, rgba(10, 11, 15, 0.35) 40%, rgba(10, 11, 15, 0) 62%); }
}
/* entre 1100 y 1727 px el panel cubría a Raúl en el hero, el calendario y el registro: esas escenas también
   terminan antes de la columna del panel (a partir de 1728 px la escena es tan ancha que el panel solo pisa el borde) */
@media (min-width: 1100px) and (max-width: 1727px) {
  .v2-hero .v2-scene-media, .v2-scene-block { margin-right: var(--v2-dock-gap); aspect-ratio: 2.4 / 1; }
}
/* tablet: la barra no ocupa todo el ancho y la escena de agentes no fuerza un alto mínimo que recorte a los personajes */
@media (min-width: 721px) and (max-width: 1099px) {
  .v2-bar { max-width: 560px; margin: 0 auto; border-radius: 14px 14px 0 0; }
  .v2-agents { min-height: 0; }
}
body.v2-lock { overflow: hidden; }
@media (max-width: 1099px) {
  .v2-dock { left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh; border-radius: 16px 16px 0 0; transform: translateY(110%); transition: transform 0.4s var(--v2-ease); z-index: 70; }
  .v2-dock.is-open { transform: translateY(0); }
  .v2-dock.is-min .v2-dock-body { display: block; }
  .v2-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 11, 15, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--v2-gold-hair); }
  .v2 .v2-bar .v2-btn { width: 100%; padding: 15px 20px; }
  .v2-velo { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(4, 5, 8, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--v2-ease); }
  .v2-velo.is-on { opacity: 1; pointer-events: auto; }
  .v2 { padding-bottom: 76px; }
  .v2-foot { padding-bottom: 64px; }
}

/* ---------- faq ---------- */
.v2-faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--v2-gold-hair); }
.v2-faq-item { border-bottom: 1px solid var(--v2-gold-hair); }
.v2-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: transparent; border: 0; padding: 22px 0; cursor: pointer; text-align: left; font-family: var(--v2-serif); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: var(--text-primary); transition: color 0.35s var(--v2-ease); }
.v2-faq-q:hover { color: var(--accent-gold); }
.v2-faq-q:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 4px; }
.v2-faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-gold); transition: transform 0.4s var(--v2-ease); }
.v2-faq-item.is-open .v2-faq-q svg { transform: rotate(45deg); }
.v2-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--v2-ease); }
.v2-faq-item.is-open .v2-faq-a { grid-template-rows: 1fr; }
.v2-faq-a > div { overflow: hidden; }
.v2-faq-a p { padding: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--text-secondary); max-width: 64ch; text-wrap: pretty; }

/* ---------- disclaimer + pie ---------- */
.v2-disc { padding: 28px 0; border-top: 1px solid var(--v2-gold-hair); text-align: center; }
.v2-disc p { font-size: 12px; line-height: 1.55; color: rgba(245, 245, 240, 0.5); max-width: 820px; margin: 0 auto; }
.v2-disc a { text-decoration: underline; color: var(--accent-gold); }
.v2-foot { padding: 44px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.v2 .v2-foot-logo { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; }
.v2-foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.v2 .v2-foot-links a { font-size: 13px; color: var(--text-secondary); }
.v2 .v2-foot-links a:hover { color: var(--accent-gold); }
.v2-foot-copy { font-size: 12px; color: var(--text-secondary); }

/* ---------- CTAs repartidos ---------- */
.v2-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--v2-gold-hair); }
.v2-cta-row .v2-hero-note { text-align: left; }
.v2-cta-inline { margin-top: 26px; }

/* ---------- modal de cookies (TAL-5695: ids, rol, foco y Escape los gobierna el script del <head>; aquí solo el vestido) ----------
   Por encima de todo: nav (50), panel (60/70), velo (65) y barra (60). */
.cookie-overlay { position: fixed; inset: 0; z-index: 99998; background: rgba(4, 5, 8, 0.82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cookie-overlay[hidden] { display: none; }
body.cookie-lock { overflow: hidden; }
.cookie-banner { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 99999; box-sizing: border-box; width: calc(100% - 32px); max-width: 560px; max-height: calc(100% - 32px); overflow-y: auto; padding: 22px 24px; border-radius: 12px; background: #12141b; border: 1px solid rgba(201, 169, 98, 0.5); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75); display: flex; flex-direction: column; gap: 16px; font-family: var(--v2-sans); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-title { margin: 0; font-family: var(--v2-serif); font-size: 19px; font-weight: 600; color: #fff; }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.cookie-banner a { color: rgba(201, 169, 98, 0.9); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn { font: 600 13px var(--v2-sans); padding: 10px 16px; border-radius: 6px; cursor: pointer; border: 1px solid rgba(201, 169, 98, 0.6); }
.cookie-btn-primary { background: rgba(201, 169, 98, 1); color: #0A0B0F; }
.cookie-btn-secondary { background: transparent; color: rgba(255, 255, 255, 0.85); }
.cookie-btn:focus-visible { outline: 2px solid rgba(201, 169, 98, 0.9); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .v2-hero-bottom { grid-template-columns: 1fr; margin-top: -24px; }
  .v2-hero-cta { align-items: stretch; }
  .v2-hero-note { text-align: center; }
  .v2-who { grid-template-columns: 1fr; gap: 24px; }
  .v2-reg-body { grid-template-columns: 1fr; gap: 24px; }
  .v2-reg-cta { padding-top: 32px; margin-top: 8px; border-top: 1px solid var(--v2-gold-hair); }
  .v2-days { grid-template-columns: 1fr; margin-top: 0; }
  .v2-day { border-left: 0; border-top: 1px solid var(--v2-gold-hair); padding: 24px 0; }
}
@media (max-width: 720px) {
  .v2-sec { padding: 96px 0 64px; }
  .v2-sec-tight { padding: 64px 0 48px; }
  .v2-hero-top { padding: 88px 16px 16px; }
  .v2 .v2-hero-title { font-size: clamp(46px, 13.5vw, 56px); max-width: 12ch; }
  .v2-hero .v2-scene-media { aspect-ratio: 1 / 1; }
  .v2-hero .v2-scene-media .v2-scene-veil { background: linear-gradient(180deg, rgba(10, 11, 15, 0.35) 0%, rgba(10, 11, 15, 0) 30%, rgba(10, 11, 15, 0) 80%, rgba(10, 11, 15, 0.85) 100%); }
  .v2-hero-bottom { margin-top: 0; gap: 14px; padding: 12px 0 40px; }
  .v2-hero-sub { margin-bottom: 4px; }
  .v2-band { padding: 64px 0 18px; }
  .v2-scene-block { aspect-ratio: 1 / 1; }
  .v2-scene-block img { object-position: center top; }
  .v2-scene-block .v2-scene-veil { background: linear-gradient(180deg, rgba(10, 11, 15, 0.5) 0%, rgba(10, 11, 15, 0) 16%, rgba(10, 11, 15, 0) 88%, rgba(10, 11, 15, 0.75) 100%); }
  .v2-kicker { font-size: 13px; }
  .v2-hero-note, .v2-cal-note { font-size: 14px; }
  .v2-when-sep { display: none; }
  .v2-when-h { display: block; margin-top: 4px; }
  .v2-instr { grid-template-columns: 1fr; gap: 20px; }
  .v2-instr-card img { height: 240px; }
  /* en móvil cada escena se muestra entera en vertical (máster 4:5 propio), con el texto debajo */
  .v2-learn-item { min-height: auto; aspect-ratio: auto; grid-template-rows: auto auto; }
  .v2-learn-item .v2-scene-media { position: relative; aspect-ratio: 4 / 5; z-index: 0; }
  .v2-learn-item .v2-scene-media img { object-position: center; }
  .v2-learn-item .v2-scene-veil { display: none; }
  .v2-learn-txt, .v2-learn-item.is-right .v2-learn-txt { width: auto; margin: 0 20px; padding: 24px 0 36px; justify-self: stretch; }
  .v2-agents { min-height: auto; aspect-ratio: auto; padding-bottom: 48px; }
  .v2-agents .v2-scene-media { position: relative; aspect-ratio: 4 / 5; z-index: 0; }
  .v2-agents .v2-scene-media img { object-position: center; }
  .v2-agents .v2-scene-veil { display: none; }
  .v2-agents-txt { padding-top: 24px; }
  .v2 .v2-btn { width: 100%; padding: 17px 24px; }
  .v2-nav { padding: 14px 16px; }
  .v2-nav.is-scrolled { padding: 10px 16px; }
  .v2 .v2-nav-cta { white-space: normal; font-size: clamp(9px, 3.2vw, 11.5px); letter-spacing: 0.04em; padding: 9px 12px; min-height: 44px; }
  .v2 .v2-nav-logo { height: 22px; }
  .v2-cta-row { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .v2-cta-row .v2-hero-note { text-align: center; }
}
