/* =========================================
   FLORENCIA BASTERI — Variante D "Satén" (elegida el 2026-11)
   Un satén WebGL fijo de fondo que cambia de color por tramo (data-saten), paneles de video grandes,
   cintas de raso, marcos dorados con filigrana y cartelas de vidrio. Cormorant Garamond + Jost + una
   script de acento (Pinyon Script).

   ARCHIVOS: style.css = fundación (tokens, fuentes, componentes compartidos, nav, portada, reproductor y
   WhatsApp con su piel nueva) · assets/css/escena.css = Videos + Shows (T28b) ·
   assets/css/recorrido.css = Trayectoria → footer (T28c). Notas y API: .pipeline/notas-t28a.md

   Orden de este archivo:
     1 Fuentes · 2 Tokens · 3 Reset y capas de fondo · 4 Tipografía · 5 Botones · 6 Componentes compartidos
     (vidrio, marco, fondo de panel, contador) · 7 Nav · 8 Portada · Reveals [data-animate] y stills
     diferidos (los usa script.js) · 9 Reproductor (lightbox) y WhatsApp · 10 Movimiento reducido y a11y
     Los fondos de sección son transparentes (el satén fijo se ve detrás): cada sección vive en su archivo.
   ========================================= */

/* === 1. FUENTES ===
   Los @font-face viven acá (subset latin, font-display: swap): sin CSS de fonts.googleapis.com en el camino
   crítico. Los woff2 siguen en fonts.gstatic.com (la CSP ya lo permite en font-src). Fuentes variables: un
   archivo cubre todos los pesos. Las caras "Fallback" igualan las métricas de Georgia/Arial. */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(https://fonts.gstatic.com/s/cormorantgaramond/v21/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url(https://fonts.gstatic.com/s/cormorantgaramond/v21/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtImSo.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(https://fonts.gstatic.com/s/jost/v20/92zatBhPNqw73oTd4g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* La script de acento (UNA sola, solo para frases cortas) */
@font-face {
  font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://fonts.gstatic.com/s/pinyonscript/v24/6xKpdSJbL9-e9LuoeQiDRQR8WOXaOg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Fallback'; font-style: normal; font-weight: 300 500;
  src: local('Georgia'); size-adjust: 87%; ascent-override: 106.2%; descent-override: 33%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Cormorant Fallback'; font-style: italic; font-weight: 300 400;
  src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 77.7%; ascent-override: 118.9%; descent-override: 36.9%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Jost Fallback'; font-style: normal; font-weight: 400 500;
  src: local('Arial'); size-adjust: 95%; ascent-override: 112.6%; descent-override: 39.5%; line-gap-override: 0%;
}

/* === 2. TOKENS === */
:root {
  /* --- Paleta con profundidad (siempre suave; el ciruela solo para texto, sombras y velos) --- */
  --pearl:      #FBF6F3;   /* perla */
  --blush:      #F3DADB;
  --tea:        #EDD0CF;   /* rosa té */
  --tea-deep:   #E6BFC3;   /* rosa té profundo */
  --dust:       #D4A5B0;   /* rosa polvo */
  --mauve:      #A77F95;   /* malva */
  --mauve-d:    #7E5A70;   /* malva hondo (texto grande de acento: 5.6:1 sobre perla) */
  --plum-s:     #6A4558;   /* ciruela suave: texto secundario (7.5:1 sobre perla) */
  --plum:       #4B2D40;   /* ciruela: texto principal (11.2:1 sobre perla) */
  --champ:      #D2AE8A;   /* champagne: filetes, marcos y brillos, nunca texto chico */
  --rosegold:   #C9967F;   /* oro rosa */
  --gold-l:     #E9D3B0;   /* oro claro */
  --champ-deep: #76522F;   /* bronce suave para texto chico (6.5:1 sobre perla) */
  --plum-2:     #6A4558;
  --rose-t:     #92455E;   /* acento rosa en cursivas (6.0:1 sobre perla) */
  --white:      #ffffff;

  /* --- Materiales --- */
  --gold-grad:  linear-gradient(120deg, #F1DFC0 0%, #D9B592 38%, #CE9F86 70%, #EBD3B0 100%);
  --gold-line:  linear-gradient(135deg, #EBD7B6, #D2AE8A 40%, #C9967F 70%, #EBD7B6);
  --glass-bg:   linear-gradient(140deg, rgba(251,246,243,.70), rgba(243,218,219,.46));
  --glass-bg-hi: linear-gradient(140deg, rgba(251,246,243,.88), rgba(243,218,219,.70));
  --glass-line: rgba(233,211,176,.85);
  --pearl-solid: rgba(251,246,243,.88);   /* perla semitransparente SIN backdrop-filter: para botones chicos sobre <video> (iOS pinta el vidrio sobre video como cuadrado gris u opaco) */

  /* --- Tipografía --- */
  --font-display: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --font-serif:   'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --font-body:    'Jost', 'Jost Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script:  'Pinyon Script', 'Snell Roundhand', 'Segoe Script', cursive;

  --text-body-lg:  1.1875rem;
  --text-lead:     clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --text-h1-xl:    clamp(2.125rem, 1.5rem + 2.1vw, 3.625rem);   /* títulos de sección: 34 → 58 px */
  --text-h2-card:  clamp(1.375rem, 1.25rem + .4vw, 1.625rem);
  --text-name:     clamp(2.625rem, 13.6vw, 3.75rem);            /* nombre en portada celular: 42 → 60 px */
  --text-name-d:   clamp(3rem, 5vw, 4.5rem);                    /* nombre en portada escritorio: 48 → 72 px */
  --text-h1-shows: clamp(2.125rem, 1.3rem + 2.4vw, 3.25rem);
  --text-marquee:    clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --text-marquee-xl: clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
  --text-stat-xl:    clamp(2.75rem, 2rem + 3.6vw, 4.25rem);
  --text-script:   clamp(2.75rem, 4.4vw, 4rem);                 /* script de acento: ≤ 64 px */

  /* --- Sombras y foco (tintados en ciruela, nunca negro) --- */
  --shadow-card:  0 24px 46px -26px rgba(120,60,80,.45);
  --shadow-glass: 0 22px 54px -12px rgba(75,45,64,.26);
  --shadow-media: 0 50px 90px -26px rgba(75,45,64,.55), 0 18px 40px -12px rgba(75,45,64,.3);
  --ring-focus:   0 0 0 3px var(--pearl), 0 0 0 5px var(--rose-t);

  /* --- Gradientes y velos --- */
  --veil-top:   linear-gradient(to bottom, rgba(43,24,36,.5) 0, rgba(43,24,36,0) 120px);
  --veil-card:  linear-gradient(to top, rgba(43,24,36,.9) 0%, rgba(43,24,36,.64) 36%, rgba(43,24,36,.22) 68%, rgba(43,24,36,0) 100%);

  /* --- Grano (textura estática) --- */
  --grain:       url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .3  0 0 0 0 .32  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  /* --- Radios --- */
  --radius-pill: 100px;
  --r-lg: 24px; --r-xl: 28px;

  /* --- Layout --- */
  --u:            1vh;       /* "1 punto de alto de pantalla": 1svh con respaldo vh (ver @supports) */
  --header-h:     64px;
  --gutter:       max(24px, 3vw);
  --gutter-d:     clamp(20px, 6vw, 96px);

  /* --- Motion --- */
  --ease-out:    cubic-bezier(.22, .8, .3, 1);
  --ease-soft:   cubic-bezier(.4, 0, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-pop:    cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast:     0.25s;
  --dur-base:     0.35s;
  --dur-reveal:   0.95s;
  --dur-reveal-lg: 1.2s;
  --dur-stagger: 70ms;
  --dur-marquee: 60s;

  /* --- Z-index --- */
  --z-bokeh: 1; --z-content: 2; --z-wa: 90; --z-header: 100; --z-drawer: 150; --z-lightbox: 300;
}
@supports (height: 1svh) { :root { --u: 1svh; } }
@media (min-width: 768px)  { :root { --header-h: 72px; } }

/* Contenedores (container-bold: min(94vw, 115rem)) */
.wrap      { width: min(100% - 2 * var(--gutter), 115rem); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * max(16px, 2vw), 120rem); margin-inline: auto; }

/* === 3. RESET Y CAPAS DE FONDO === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background-color: var(--blush); scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--blush);
  color: var(--plum);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden; /* respaldo */
  overflow-x: clip;   /* clip NO crea scroll container: no rompe position: sticky ni los pins */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; max-width: 100%; }
svg { max-width: 100%; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
button svg { display: block; flex: none; }   /* iOS: el SVG inline de un botón baja a la línea de base y se estira en grid/flex; bloque + tamaño fijo (abajo) */
/* Tamaño fijo por CSS de los iconos de botón (los atributos width/height no alcanzan en WebKit/iOS cuando hay max-width: 100% en el reset) */
.lb__close svg, .lb__nav svg { width: 22px; height: 22px; }
.hito__play svg { width: 16px; height: 16px; }
.disc__play svg, .disc__lbtn svg, .apanel__play svg, .ctrl svg { width: 20px; height: 20px; }   /* .apanel__play va después de .hito__play: misma especificidad */

.lb__sound svg, .lb__play svg { width: 24px; height: 24px; }
.lb__bigplay svg { width: 32px; height: 32px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }   /* sprite SVG con gradiente (NO usar display:none: rompe url(#gold)) */

/* Lenis (solo puntero fino) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* Fondo de satén: 1) <canvas id="satin"> (WebGL) · 2) .satin-fallback = degradé CSS + capas de imagen
   (cuadros reales del shader) cuando no hay WebGL, el dispositivo es flojo o hay movimiento reducido.
   Nunca papel liso. saten.js agrega html.sat-img cuando usa el respaldo. */
#satin { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; }
html.sat-gl #satin { opacity: 1; transition: opacity .8s var(--ease-soft); }   /* aparece cuando dibujó el primer cuadro (antes se ve el degradé de .satin-fallback) */
.satin-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(70% 55% at 18% 8%, rgba(255,255,255,.75), transparent 62%),
    radial-gradient(60% 50% at 85% 70%, rgba(233,211,176,.55), transparent 66%),
    repeating-linear-gradient(104deg, rgba(255,255,255,0) 0 70px, rgba(255,255,255,.42) 118px, rgba(255,255,255,0) 176px, rgba(167,127,149,.26) 240px, rgba(255,255,255,0) 300px),
    repeating-linear-gradient(77deg, rgba(212,165,176,0) 0 120px, rgba(212,165,176,.30) 190px, rgba(255,255,255,0) 260px),
    linear-gradient(165deg, #FBF6F3 0%, #F3DADB 34%, #E6BFC3 66%, #D4A5B0 100%);
}
.satin-fallback .sf { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; opacity: 0; will-change: opacity; }
html.sat-img #satin { display: none; }
html.sat-img .satin-fallback::after {   /* grano fino sobre las imágenes (el shader ya trae el suyo) */
  content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); background-size: 180px; opacity: .10; mix-blend-mode: soft-light;
}
html:not(.js) .satin-fallback { background: var(--blush) url(assets/textures/saten-blush.webp) 50% 50% / cover no-repeat; }
#bokeh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-bokeh); pointer-events: none; }
html.sat-img #bokeh { display: none; }
main, .footer { position: relative; z-index: var(--z-content); }

/* === 4. TIPOGRAFÍA === */
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.08; }
em  { font-style: italic; }
strong { font-weight: 500; }
.eyebrow { display: block; font: 500 12px/1.5 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--plum-s); }
.h-xl { font-family: var(--font-display); font-weight: 300; font-size: var(--text-h1-xl); line-height: 1.06; letter-spacing: -.005em; color: var(--plum); text-wrap: balance; }
.h-xl em { font-weight: 300; font-style: italic; color: var(--mauve-d); }
.rule { display: block; width: 92px; height: 1px; margin: 22px auto 0; background: linear-gradient(90deg, transparent, var(--champ), transparent); }
/* Script de acento: UNA frase corta por momento, ≤ 64 px, en oro rosa con brillo */
.script {
  font: 400 var(--text-script)/1 var(--font-script); letter-spacing: 0; white-space: nowrap;
  background: linear-gradient(100deg, #A56A58 0%, #C9967F 45%, #B27C69 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(251,246,243,.9)) drop-shadow(0 6px 14px rgba(251,246,243,.55));
}

/* === 5. BOTONES ===
   .btn--gold (= .btn--solid) oro con brillo que recorre · .btn--glass (= .btn--line) vidrio con filete dorado ·
   .btn--pearl / .btn--ghost: sobre el velo oscuro del reproductor · .btn--sm: más compacto */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; font: 500 14px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn--solid, .btn--gold {
  color: var(--plum); background: var(--gold-grad);
  box-shadow: 0 10px 28px rgba(122,78,70,.28), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(150,98,84,.35);
}
.btn--solid::after, .btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s;
}
.btn--solid:hover::after, .btn--gold:hover::after { transform: translateX(120%); }
.btn--line, .btn--glass {
  color: var(--plum); background: var(--glass-bg); border-color: rgba(210,174,138,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(106,69,88,.14), inset 0 1px 0 rgba(255,255,255,.8);
}
.btn--line:hover, .btn--glass:hover { background: var(--glass-bg-hi); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 13px; }
/* Sobre el velo del reproductor (ciruela) */
.btn--pearl { background: var(--blush); color: var(--plum); border-color: var(--blush); }
.btn--pearl:hover { background: var(--white); }
.btn--ghost { background: transparent; color: var(--blush); border-color: rgba(247,231,230,.55); }
.btn--ghost:hover { color: var(--blush); border-color: var(--blush); background: rgba(247,231,230,.08); }
.btn:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.btn--pearl:focus-visible, .btn--ghost:focus-visible { outline-color: var(--champ); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Etiqueta de Miches: perla sobre foto o video, en cursiva liviana */
.badge-miches {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(251,246,243,.92); color: var(--plum); border: 1px solid rgba(210,174,138,.7);
  font: italic 400 14px/1.25 var(--font-serif); letter-spacing: .01em; padding: 6px 14px 7px; border-radius: 16px;
}
.badge-miches[hidden] { display: none; }

/* === 6. COMPONENTES COMPARTIDOS ===
   Los usan la portada y T28b/T28c. Sprite SVG (en index.html, <svg class="defs">): #gold (degradé),
   #corner (esquina de filigrana), #flo (florón). */

/* 6.1 Vidrio satinado: cartelas, cifras, tarjetas de texto. Con -webkit-, y respaldo semiopaco sin backdrop-filter. */
.glass {
  position: relative; background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(210,174,138,.35);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 64%, rgba(255,255,255,.28) 100%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: linear-gradient(140deg, rgba(251,246,243,.93), rgba(243,218,219,.88)); }
  .btn--line, .btn--glass { background: rgba(251,246,243,.9); }
}

/* 6.2 Marco dorado con filigrana: <div class="frame"> + 2-4 <svg class="orn orn--tl|tr|bl|br"><use href="#corner"/></svg> */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ''; position: absolute; pointer-events: none; padding: 1px; border-radius: 12px; background: var(--gold-line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.frame::before { inset: -11px; }
.frame::after { inset: -5px; border-radius: 9px; opacity: .8; }
.orn { position: absolute; width: 52px; height: 52px; pointer-events: none; z-index: 8; filter: drop-shadow(0 1px 0 rgba(251,246,243,.6)); }
.orn--tl { left: -20px; top: -20px; }
.orn--tr { right: -20px; top: -20px; transform: scaleX(-1); }
.orn--bl { left: -20px; bottom: -20px; transform: scaleY(-1); }
.orn--br { right: -20px; bottom: -20px; transform: scale(-1, -1); }

/* 6.3 Medios: .poster y .vid se apilan a sangre dentro de un contenedor (position: relative; overflow: hidden).
   .vid aparece (.on) cuando empieza a reproducirse; .tone unifica el color; .glint es el brillo que recorre. */
.poster, .vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid { opacity: 0; transition: opacity .5s; }
.vid.on { opacity: 1; }
.tone { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(170deg, rgba(243,218,219,.34), rgba(167,127,149,.30)); mix-blend-mode: soft-light; }
.glint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .8;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%); background-size: 260% 100%; background-position: 120% 0;
  animation: glint 7s ease-in-out infinite;
}
@keyframes glint { 0%, 55% { background-position: 130% 0; } 100% { background-position: -40% 0; } }

/* 6.4 Fondo de panel desenfocado (.vpanel__bg, lo usa Shows): el mismo medio agrandado y desenfocado con velo rosa-malva,
   detrás del panel nítido. */
.vpanel__bg { position: absolute; inset: -8%; z-index: -1; overflow: hidden; }
.vpanel__bg .poster, .vpanel__bg video { filter: blur(20px) saturate(.9) sepia(.18) hue-rotate(78deg) brightness(1.12); transform: scale(1.18); }
.vpanel__bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(247,226,226,.56) 0%, rgba(240,205,208,.44) 48%, rgba(212,165,176,.5) 100%);
}

/* 6.5 Franja de texto PLANA (vidrio perla con filete dorado), reutilizable: <div class="satin-band"><div class="satin-band__track"><span>…</span><i></i>…</div></div>
   Las palabras se repiten dos veces dentro del track (la segunda copia con aria-hidden). Plana a propósito: sin inclinación, sin volumen,
   sin brillo ni sombra (la cinta de raso en 3D se descartó). El nombre de clase quedó por herencia. */
.satin-band {
  position: relative; z-index: 3; display: flex; align-items: center; overflow: hidden;
  width: 100%; height: clamp(56px, calc(var(--u) * 8), 80px);
  background: rgba(251,246,243,.9); border-block: 1px solid rgba(210,174,138,.9);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .satin-band { background: rgba(251,246,243,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.satin-band::before, .satin-band::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: rgba(210,174,138,.5); }   /* segundo filete fino, hacia adentro */
.satin-band::before { top: 5px; } .satin-band::after { bottom: 5px; }
.satin-band__track { display: flex; align-items: center; white-space: nowrap; padding-left: 4vw; will-change: transform; animation: satinBand 52s linear infinite; }
.satin-band__track span { font: italic 400 clamp(24px, 2.5vw, 38px)/1 var(--font-serif); color: var(--plum); letter-spacing: .01em; }
.satin-band__track i { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; margin: 0 clamp(20px, 2.4vw, 38px); background: #CFA588; transform: rotate(45deg); }
@keyframes satinBand { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 6.6 Contador en vidrio: <li class="counter glass"><span class="counter__n"><span class="counter__p">+</span><span data-count="14">14</span></span><span class="counter__l">años en escena</span></li> */
.counter { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 22px; }
.counter__n { font: 300 var(--text-stat-xl)/1 var(--font-display); color: var(--plum); font-variant-numeric: lining-nums tabular-nums; }
.counter__p { color: #A56A58; margin-right: 2px; }
.counter__l { font: 500 13px/1.35 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--plum-s); }

/* === 7. NAV — pastilla de vidrio flotante ===
   El vidrio vive en .nav::before (no en .nav): así ni .header ni .nav crean un containing block
   (backdrop-filter/transform) para el menú fijo a pantalla completa. */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  height: var(--header-h); display: flex; align-items: center; justify-content: center;
  padding: 0 max(10px, 2vw);
  transition: transform .35s var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1280px; height: 52px; padding: 0 6px 0 8px; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: 999px;
  background: rgba(251,246,243,.40); border: 1px solid rgba(233,211,176,.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: background .4s, box-shadow .4s;
}
.header.is-stuck .nav::before, .nav:focus-within::before { background: rgba(251,246,243,.78); box-shadow: 0 10px 34px rgba(75,45,64,.16); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav::before { background: rgba(251,246,243,.9); } }

.nav-logo { position: relative; z-index: 200; display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px rgba(210,174,138,.7), 0 6px 18px -8px rgba(120,60,80,.4); overflow: hidden; transition: transform var(--dur-base) var(--ease-soft); }
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo:hover { transform: scale(1.05); }

/* Hamburguesa de dos líneas finas */
.nav-toggle { position: relative; z-index: 200; display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; border-radius: 50%; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--plum); transition: transform .4s var(--ease-out), opacity .3s var(--ease-soft); }
.nav-toggle.active span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Menú a pantalla completa (celular y tablet): satén de perla a rosa polvo, links en Cormorant cursiva */
.nav-links {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
  background:
    radial-gradient(80% 60% at 30% 10%, rgba(255,255,255,.8), transparent 60%),
    repeating-linear-gradient(104deg, rgba(255,255,255,0) 0 70px, rgba(255,255,255,.36) 118px, rgba(255,255,255,0) 176px, rgba(167,127,149,.16) 240px, rgba(255,255,255,0) 300px),
    linear-gradient(160deg, rgba(251,246,243,.96), rgba(243,218,219,.94) 50%, rgba(212,165,176,.92));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur-base) var(--ease-soft), visibility 0s linear var(--dur-base);
  overflow-y: auto;
}
.nav-links.open { visibility: visible; opacity: 1; transition: opacity var(--dur-base) var(--ease-soft), visibility 0s; }
.nav-links li { width: min(100%, 26rem); }
.nav-links > li:not(.nav-links__cta):not(.nav-drawer-ctas) {
  opacity: 0; transform: translateY(14px); border-bottom: 1px solid rgba(210,174,138,.35);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.nav-links.open > li:not(.nav-links__cta):not(.nav-drawer-ctas) { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 100ms); }
.nav-links a:not(.btn) {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 31px; line-height: 1.1; letter-spacing: .01em;
  color: var(--plum); transition: color var(--dur-fast) var(--ease-soft);
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--mauve-d); }
/* Eventos y Clases (T30): primeros del menú y con más presencia que el resto */
.nav-links > li.nav-key { border-bottom-color: rgba(210,174,138,.8); }
.nav-links .nav-key a:not(.btn) { min-height: 64px; font-size: 40px; font-weight: 400; }
.nav-links > li.nav-key + li:not(.nav-key) { margin-top: 10px; }
.nav-links > li.nav-key:nth-child(2) { border-bottom-color: var(--champ); }
.nav-links__cta { display: none; }
.nav-drawer-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
html.nav-open { overflow: hidden; }

@media (min-width: 1100px) and (orientation: landscape) {
  .nav-toggle { display: none; }
  .nav { padding: 0 8px 0 8px; }
  .nav-links {
    position: static; inset: auto; flex-direction: row; align-items: center; justify-content: flex-end;
    gap: clamp(16px, 2.2vw, 34px); padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    visibility: visible; opacity: 1; overflow: visible; transition: none;
  }
  .nav-links li { width: auto; }
  .nav-links > li:not(.nav-links__cta):not(.nav-drawer-ctas) { opacity: 1; transform: none; border-bottom: 0; }
  .nav-links a:not(.btn) {
    position: relative; display: inline-flex; min-height: 44px; font-family: var(--font-body); font-style: normal; font-weight: 500;
    font-size: 12.5px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--plum);
  }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--plum); }
  .nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 8px; height: 1px; background: var(--rosegold); transition: right .5s var(--ease-out); }
  .nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { right: 0; }
  /* Eventos y Clases: pastillas con filete dorado (T30), sin la raya de abajo */
  .nav-links .nav-key a:not(.btn) { align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; font-size: 12.5px; font-weight: 500; border: 1px solid rgba(210,174,138,.95); border-radius: 999px; background: rgba(251,246,243,.62); transition: background .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
  .nav-links .nav-key a:not(.btn)::after { display: none; }
  .nav-links .nav-key a:not(.btn):hover, .nav-links .nav-key a:not(.btn).active { background: rgba(251,246,243,.98); border-color: var(--rosegold); box-shadow: 0 6px 16px -8px rgba(122,78,70,.55); }
  .nav-links__cta { display: block; }
  .nav-links__cta .btn { min-height: 40px; padding: 0 20px; font-size: 12.5px; }
  .nav-links > li.nav-key + li:not(.nav-key) { margin-top: 0; }
  .nav-drawer-ctas { display: none; }
}

/* Link "saltar al contenido" (primer elemento del body) */
.skip { position: fixed; left: 12px; top: -64px; z-index: 400; background: var(--pearl); color: var(--plum); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-glass); }
.skip:focus { top: 12px; }

/* === 8. PORTADA ===
   Un panel de video grande (el montaje de todas las disciplinas) en marco dorado, otro detrás desenfocado
   y girado, y el nombre en cartela. Sobre el satén fijo (sin cinta: se descartó).
   Celular (≤1099 o vertical): el panel ocupa casi todo el ancho y el nombre va en una cartela de vidrio sobre su borde
   superior (contraste AA garantizado). La intro es solo CSS (@keyframes): no depende de JS ni retrasa el LCP. */
.portada {
  --ph: calc(var(--u) * 86); --pw: calc(var(--ph) * .5625);   /* alto y ancho del panel principal (los usan el panel, la cartela y el bloque inferior) */
  position: relative; height: 100vh; height: calc(var(--u) * 100); min-height: 600px; isolation: isolate;
  overflow-x: clip; overflow-y: visible;   /* la sombra del panel sigue hacia la sección siguiente: sin corte recto en el borde inferior */
}
.portada__stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pmain {
  position: absolute; left: calc(61% - var(--pw) / 2); top: calc(var(--u) * 9.5); height: var(--ph); width: var(--pw);
  border-radius: 10px; box-shadow: var(--shadow-media);
}
.pmain__in { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: #d9c0c6; transform: translateZ(0); }
.pmain__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(251,246,243,0) 0%, rgba(251,246,243,0) 70%, rgba(75,45,64,.18) 100%); }
.pback {
  position: absolute; left: calc(61% + var(--u) * 86 * .5625 * .32); top: calc(var(--u) * 5); height: calc(var(--u) * 62); width: calc(var(--u) * 62 * .5625);
  border-radius: 10px; overflow: hidden; transform: rotate(8deg); filter: blur(3px) saturate(1.05); opacity: .95;
  box-shadow: 0 30px 70px -20px rgba(75,45,64,.45); border: 1px solid rgba(233,211,176,.7);
}
.pback::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(251,246,243,.42), rgba(243,218,219,.18) 55%, rgba(167,127,149,.28)); }
/* pastilla "Ver video" centrada sobre el borde inferior del panel (lejos de los ornamentos de las esquinas):
   un círculo suelto en medio del video se leía como un error */
.portada__open {
  position: absolute; left: 50%; translate: -50% 0; bottom: 20px; z-index: 9; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px; border-radius: var(--radius-pill);
  font: 500 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--plum); background: var(--pearl-solid); border: 1px solid rgba(210,174,138,.9);
  box-shadow: 0 10px 26px -8px rgba(75,45,64,.5);   /* sin backdrop-filter: va encima del <video> de la portada */
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.portada__open:hover { transform: translateY(-2px); }
.portada__open svg { width: 16px; height: 16px; }
.portada__copy { position: absolute; z-index: 6; left: var(--gutter-d); top: 0; bottom: 0; width: min(46vw, 640px); display: flex; flex-direction: column; justify-content: center; }
/* halo perla muy suave detrás del texto: garantiza contraste aunque el satén esté en un valle oscuro */
.portada__copy::before { content: ""; position: absolute; z-index: -1; inset: -8% -8% -8% -16%; pointer-events: none; background: radial-gradient(62% 58% at 42% 50%, rgba(251,246,243,.62), rgba(251,246,243,.34) 55%, rgba(251,246,243,0) 76%); }
.portada .eyebrow { margin-bottom: 18px; max-width: 440px; font-size: 12px; letter-spacing: .22em; }
@media (min-width: 1360px) { .portada .eyebrow { max-width: 600px; white-space: nowrap; letter-spacing: .24em; font-size: 12.5px; } }
.portada__name { font: 300 var(--text-name-d)/.98 var(--font-display); letter-spacing: -.012em; color: var(--plum); }
.portada__name .ln { display: block; }
.portada__name em { display: block; padding-left: .55em; font-weight: 300; color: var(--mauve-d); }
.portada__tagline { margin-top: 26px; font: 400 17px/1.5 var(--font-body); color: var(--plum-s); max-width: 440px; }
.portada__tagline .script { display: block; margin: 2px 0 0 .1em; }
.portada__ctas { margin-top: 26px; }

/* intro CSS: sube suave, escalonada; los medios no se ocultan (el póster es el LCP). fill-mode backwards: al terminar vuelve al estilo natural y GSAP puede mover los elementos */
@keyframes pRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pSettle { from { transform: translateY(18px) scale(.985); } to { transform: none; } }
@keyframes pSlide { from { opacity: 0; transform: translateX(60px) rotate(8deg); } to { opacity: .95; transform: rotate(8deg); } }
.js .portada [data-in] { animation: pRise 1s var(--ease-out) backwards; animation-delay: calc(.15s + var(--d, 0) * .12s); }
.js .pmain { animation: pSettle 1.2s var(--ease-out) backwards; }
.js .pback { animation: pSlide 1.3s var(--ease-out) .2s backwards; }

/* Celular y tablet vertical */
@media (max-width: 1099px), (orientation: portrait) {
  /* Nombre ARRIBA del panel, nunca encima del video (la cartela sobre el video le tapaba la cara a Flor).
     Orden: header → nombre (alto fijo --nh) → panel (--ph, lo que sobra de la pantalla) → frase + botones (--bh). */
  .portada {
    --top0: calc(var(--header-h) + 10px); --nh: 114px; --bh: 164px;
    --ph: max(316px, calc(var(--u) * 100 - var(--top0) - var(--nh) - var(--bh)));
    --pw: min(92vw, max(calc(var(--ph) * .64), 340px));
    height: auto; min-height: calc(var(--top0) + var(--nh) + var(--ph) + var(--bh));
  }
  .pmain { left: calc((100% - var(--pw)) / 2); top: calc(var(--top0) + var(--nh)); }
  .pmain .orn { width: 38px; height: 38px; }
  .pback { left: auto; right: -14vw; top: calc(var(--top0) + var(--nh) + 30px); width: 46vw; height: calc(46vw / .5625); max-height: calc(var(--ph) * .8); transform: rotate(9deg); }
  .portada__copy { left: 0; right: 0; width: auto; bottom: auto; top: 0; height: 100%; display: block; pointer-events: none; }
  .portada__copy::before { display: none; }
  .portada__bottom::before { content: ""; position: absolute; z-index: -1; inset: -40px -8vw -44px; pointer-events: none; background: radial-gradient(closest-side at 50% 50%, rgba(251,246,243,.7), rgba(251,246,243,.5) 55%, rgba(251,246,243,0) 100%); }
  .portada__top {
    position: absolute; z-index: 7; left: 16px; right: 16px; top: var(--top0); height: var(--nh);
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  }
  .portada__top::before { content: ""; position: absolute; z-index: -1; inset: -10px -4vw; pointer-events: none; background: radial-gradient(closest-side at 50% 50%, rgba(251,246,243,.75), rgba(251,246,243,0)); }
  .portada .eyebrow { font-size: 10px; letter-spacing: .16em; margin-bottom: 6px; max-width: 30em; white-space: normal; line-height: 1.5; text-wrap: balance; }
  .portada__name { font-size: clamp(2.1rem, 10.4vw, 2.9rem); line-height: 1.05; white-space: nowrap; }
  .portada__name .ln, .portada__name em { display: inline; padding-left: 0; }
  .portada__name em { color: var(--mauve-d); }
  .portada__bottom { position: absolute; z-index: 7; left: max(14px, calc((100% - var(--pw)) / 2 + 8px)); right: max(14px, calc((100% - var(--pw)) / 2 + 8px)); top: calc(var(--top0) + var(--nh) + var(--ph) + 22px); pointer-events: auto; }
  .portada__tagline { margin-top: 0; font-size: 16px; max-width: none; color: var(--plum); }   /* más oscuro: debajo del panel cae su sombra */
  .portada__tagline .script { display: inline; font-size: 38px; margin: 0 0 0 .1em; }
  .portada__ctas { margin-top: 14px; gap: 10px; flex-wrap: nowrap; }
  .portada__ctas .btn { padding: 0 12px; min-height: 46px; font-size: 12.5px; letter-spacing: .05em; flex: 1 1 0; white-space: nowrap; }
}
@media (max-width: 1099px) and (orientation: landscape) and (max-height: 520px) {
  .portada { min-height: 520px; }
}


/* === 8b. PUERTAS: acceso directo a EVENTOS y a CLASES, justo bajo la portada (T30) ===
   Dos tarjetas con foto grande en marco dorado de filigrana y un panel perla (opaco: sin backdrop-filter, así en iPhone no hay vidrio sobre la foto)
   que pisa el borde de abajo de la foto. Escritorio: lado a lado. Celular: apiladas. Cada una: rótulo, título, una línea y dos acciones
   (WhatsApp + "Ver más" a su sección). */
.puertas { position: relative; background: none; overflow-x: clip; padding: calc(var(--u) * 6.5) 0 calc(var(--u) * 7.5); }
.puertas__inner { width: min(1240px, 92vw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.puertas__flo { width: 90px; height: 30px; margin-bottom: 6px; overflow: visible; }
.puertas__title { margin-top: 8px; font-size: clamp(2rem, 1.3rem + 1.7vw, 3rem); text-shadow: 0 0 26px rgba(251,246,243,.7); }
.puertas__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 88px); width: min(1200px, 100%); margin-top: clamp(30px, 3.4vw, 46px); text-align: left; }
.puerta { display: flex; flex-direction: column; color: var(--plum); }
.puerta__media { display: block; aspect-ratio: 1 / .86; border-radius: 10px; box-shadow: var(--shadow-media); }
.puerta__ph { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 10px; background: #d9c0c6; transform: translateZ(0); }
.puerta__ph picture { position: absolute; inset: 0; display: block; }
.puerta__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.puerta__body {
  position: relative; z-index: 6; display: flex; flex: 1 1 auto; flex-direction: column; margin: -72px 6% 0; padding: 24px 24px 26px;
  background: linear-gradient(140deg, #FCF8F5, #F7E6E5); border: 1px solid var(--glass-line); border-radius: 18px;
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(210,174,138,.35);
}
.puerta__body::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 64%, rgba(255,255,255,.28) 100%); }
.puerta__eyebrow { position: relative; font: 500 12px/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--mauve-d); }
.puerta__title { position: relative; margin-top: 8px; font: italic 300 clamp(32px, 2.9vw, 42px)/1.08 var(--font-display); color: var(--plum); }
.puerta__line { position: relative; margin-top: 10px; font: 400 16px/1.55 var(--font-body); color: var(--plum-s); text-wrap: pretty; }
.puerta__acts { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.puerta__acts .btn { flex: 1 1 100%; padding: 0 16px; }   /* apilados por defecto; lado a lado solo cuando la tarjeta es ancha (abajo) */
.puerta__acts .btn svg { flex: none; }
.puerta__acts .btn--glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(251,246,243,.7); }   /* va sobre el panel perla, no sobre la foto: sin blur */
.puerta__acts .btn--glass:hover { background: #fff; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .puerta__ph picture { transition: scale 1.2s var(--ease-out); }
  .puerta:hover .puerta__ph picture { scale: 1.04; }
}
html.rm .puerta__ph picture { transition: none; }
/* movimiento reducido: las dos puertas se ven completas desde el arranque (sin esperar al reveal por scroll) */
@media (prefers-reduced-motion: reduce) { .js .puertas [data-animate] { opacity: 1; transform: none; } }
html.rm .puertas [data-animate] { opacity: 1; transform: none; }
html.rm .puertas::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light; opacity: .45; background: var(--noise); }
@media (min-width: 1260px) { .puerta__acts .btn { flex: 1 1 auto; } }
@media (max-width: 899px) {
  .puertas { padding: calc(var(--u) * 6) 0 calc(var(--u) * 6); }
  .puertas__inner { width: 88vw; }
  .puertas__flo { width: 88px; height: 29px; margin-bottom: 8px; }
  .puertas__title { margin-top: 10px; font-size: clamp(30px, 8.6vw, 38px); }
  .puertas__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; width: min(480px, 100%); margin-top: 28px; }
  .puerta__media { aspect-ratio: 4 / 3.3; }
  .puerta--clases .puerta__ph img { object-position: 50% 30%; }   /* caja más baja: el encuadre sube para que entren la acróbata de arriba y el aro */
  .puerta__body { margin: -48px 5% 0; padding: 20px 20px 22px; }
  .puerta__title { font-size: 32px; }
  .puerta__line { font-size: 15.5px; }
}

/* ===== REVEALS [data-animate] (los activa script.js) y STILLS DIFERIDOS ===== */
/* === STILLS Y PÓSTERS DIFERIDOS ===
   Cada still (y el póster de cada card del escenario) vive en una caja cuyo tamaño sale del CSS (aspect-ratio + ancho), no de la imagen. Con
   content-visibility: auto el navegador no dibuja ni pide la imagen hasta que la caja está por entrar en vista:
   sin esto, el lazy nativo trae en el arranque todo lo que cae a ~1250 px bajo el pliegue y esos ~200 KB compiten
   por la red con el CSS, las fuentes y el póster del LCP. No cambia el layout ni el CLS (la caja mide lo mismo). */
.vcard__frame { content-visibility: auto; }
/* === SCROLL ANIMATIONS === (solo con JS: sin JS el contenido se ve completo) */
.js [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.js [data-animate] { transition-delay: calc(var(--i, 0) * var(--dur-stagger)); }
.js [data-animate="fade-in"]    { transform: none; transition-duration: var(--dur-reveal-lg); }
.js [data-animate="scale-in"]   { transform: scale(.94) translateY(16px); }
.js [data-animate="fade-right"] { transform: translateX(-28px); }
.js [data-animate="fade-left"]  { transform: translateX(28px); }
@media (max-width: 767px) {   /* sin desplazamiento lateral antes del reveal: no empuja el ancho de la página */
  .js [data-animate="fade-right"], .js [data-animate="fade-left"] { transform: translateY(28px); }
}
.js [data-animate].is-visible   { opacity: 1; transform: translate(0); }

/* ===== 9. REPRODUCTOR (lightbox) y WHATSAPP: estructura heredada, piel nueva en 9b ===== */
/* =========================================
   REPRODUCTOR (lightbox)
   Fondo de visionado: velo malva/ciruela suave (no negro ni bordó) con el color del propio
   video difuminado detrás; controles finos de perla.
   ========================================= */
.lb {
  --lb-pad: clamp(12px, 2.5svh, 28px);
  --lb-h: min(calc(100svh - 2 * var(--lb-pad)), 1000px);
  position: fixed; inset: 0;
  z-index: var(--z-lightbox);
  display: grid; place-items: center;
  background: radial-gradient(ellipse 85% 75% at 50% 38%, #7A506A 0%, #623E55 62%, #50324A 100%);
  color: var(--pearl);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-soft), visibility 0s linear .35s;
  overscroll-behavior: contain;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-soft), visibility 0s; }
html.lb-open { overflow: hidden; background-color: #50324A; }   /* el canal del scroll (scrollbar-gutter) toma el color del velo */
.lb__bg {   /* el color del video, muy difuso, detrás del velo */
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  filter: blur(46px) saturate(1.15);
  opacity: .3;
  transition: opacity .35s var(--ease-soft);
}

.lb__btn {
  display: grid; place-items: center;
  min-width: 44px; min-height: 44px;
  border-radius: 50%;
  color: var(--pearl);
  background: rgba(251,246,243,.14);
  border: 1px solid rgba(251,246,243,.42);
  transition: background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft), opacity .3s;
}
.lb__btn:hover { background: rgba(251,246,243,.26); }
.lb__btn:focus-visible, .lb__scrub:focus-visible, .lb a:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; }
.lb__btn[hidden] { display: none; }

.lb__top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 12px 0 16px;
  pointer-events: none;
}
.lb__top > * { pointer-events: auto; }
.lb__count { font: italic 400 18px/1 var(--font-serif); color: var(--pearl); font-variant-numeric: lining-nums tabular-nums; }
.lb__count b { font-weight: 400; }
.lb__close { width: 48px; height: 48px; }

.lb__nav { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; opacity: .6; }
.lb__nav--prev { left: 8px; }
.lb__nav--next { right: 8px; }
.lb.hint .lb__nav { opacity: .4; }
.lb__nav:hover, .lb__nav:focus-visible { opacity: 1; }

/* Escenario del video: caja 9:16 dimensionada por el alto disponible */
.lb__stage { position: relative; z-index: 2; height: var(--lb-h); aspect-ratio: 9 / 16; }
.lb__frame {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #3a2434;
  touch-action: none;
  box-shadow: 0 40px 90px -30px rgba(30,12,24,.62);
  user-select: none; -webkit-user-select: none;
  cursor: pointer;
}
.lb__frame-bg {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.25);
  transform: scale(1.3);
  opacity: .9;
}
.lb__frame[data-fit="contain"] .lb__frame-bg { display: block; }
.lb__poster, .lb__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb__poster { object-fit: cover; transition: opacity .3s var(--ease-soft); }
.lb__frame[data-fit="contain"] .lb__poster { display: none; }
.lb.has-played .lb__poster { opacity: 0; }
.lb__video { object-fit: contain; background: transparent; }
.lb__shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: var(--veil-card);
  pointer-events: none;
}
.lb__spinner {
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid rgba(251,246,243,.25);
  border-top-color: var(--pearl);
  opacity: 0; pointer-events: none;
  animation: lbSpin .9s linear infinite;
}
.lb.show-spinner .lb__spinner { opacity: 1; }
.lb[data-state="playing"] .lb__spinner, .lb.has-error .lb__spinner { opacity: 0; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lb__bigplay {
  position: absolute; left: 50%; top: 50%;
  display: none; place-items: center;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(251,246,243,.86);
  color: var(--plum);
  box-shadow: 0 10px 28px -10px rgba(40,18,32,.6);
  pointer-events: none;
}
.lb[data-state="paused"] .lb__bigplay { display: grid; }

.lb__error {
  position: absolute; inset: 0; z-index: 4;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(80,50,70,.9);
}
.lb.has-error .lb__error { display: flex; }

.lb__unmute {
  position: absolute; left: 50%; bottom: 92px; z-index: 4;
  translate: -50% 0;
  max-width: calc(100% - 24px);
  animation: lbPulse 1.6s ease-out 3;
}
.lb__unmute[hidden] { display: none; }
@keyframes lbPulse { 0% { box-shadow: 0 0 0 0 rgba(251,246,243,.55); } 100% { box-shadow: 0 0 0 16px rgba(251,246,243,0); } }

/* Controles propios (sobre el video) */
.lb__controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 12px;
  cursor: default;
}
.lb__controls .lb__btn { background: rgba(58,34,50,.52); }   /* sobre el video: vidrio ciruela para que el icono y el texto se lean con cualquier imagen */
.lb__controls .lb__btn:hover { background: rgba(58,34,50,.7); }
.lb__sound { min-width: 52px; min-height: 52px; gap: 8px; display: flex; align-items: center; justify-content: center; }
.lb__sound span { display: none; font: 400 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.lb__sound .i-off, .lb__sound[data-muted="true"] .i-on { display: none; }
.lb__sound[data-muted="true"] .i-off { display: block; }
.lb__play { width: 48px; height: 48px; flex-shrink: 0; }
.lb__play .i-play { display: none; }
.lb[data-state="paused"] .lb__play .i-play,
.lb[data-state="ended"] .lb__play .i-play { display: block; }
.lb[data-state="paused"] .lb__play .i-pause,
.lb[data-state="ended"] .lb__play .i-pause { display: none; }
.lb__time { flex-shrink: 0; font: 400 13px/1 var(--font-body); letter-spacing: .02em; color: var(--pearl); font-variant-numeric: tabular-nums; min-width: 4.8em; text-align: right; text-shadow: 0 1px 8px rgba(30,12,24,.6); }

.lb__scrub {
  --pct: 0%;
  appearance: none; -webkit-appearance: none;
  flex: 1; min-width: 0;
  height: 44px;
  background: transparent;
  cursor: pointer;
}
.lb__scrub::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--champ) var(--pct), rgba(251,246,243,.4) var(--pct)); }
.lb__scrub::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(251,246,243,.4); }
.lb__scrub::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--champ); }
.lb__scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; border: 0; background: var(--pearl); box-shadow: 0 2px 8px rgba(30,12,24,.35); }
.lb__scrub::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--pearl); box-shadow: 0 2px 8px rgba(30,12,24,.35); }

/* Info y CTAs — mobile (<768): título sobre el video, botones en una barra bajo el video */
.lb__meta { display: contents; }
.lb__info {
  position: absolute; left: 0; right: 0; bottom: 76px; z-index: 3;
  padding: 0 16px;
  pointer-events: none;
}
.lb__badge { margin-bottom: 8px; }
.lb__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--pearl); text-shadow: 0 1px 12px rgba(30,12,24,.6); }
.lb__tag { margin-top: 4px; font: 400 10.5px/1.3 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--pearl); }
.lb__cta {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 3;
  display: flex; justify-content: center; gap: 8px;
}
.lb__cta .btn { padding: 0 16px; flex: 0 1 auto; white-space: nowrap; min-height: 44px; }
.lb__ig-pre { display: none; }
@media (max-width: 359px) { .lb__more { display: none; } }

/* Mobile compacto: alto = 100dvh - 112 (barras de 56px) o el que da el ancho */
@media (max-width: 767px) {
  .lb { --lb-h: min(calc(100dvh - 112px), calc(100vw * 16 / 9)); }
  .lb__frame { border-radius: 0; }
  .lb__stage { margin-top: 0; }
}

/* Tablet y desktop angosto (768–1365): video ~95% del alto, CTAs arriba dentro del video */
@media (min-width: 768px) {
  .lb__top { height: auto; padding: 16px 24px; }
  .lb__nav { width: 56px; height: 56px; margin-top: -28px; opacity: .85; }
  .lb__nav--prev { left: 24px; }
  .lb__nav--next { right: 24px; }
  .lb__sound span { display: inline; }
  .lb__ig-pre { display: inline; }
  .lb__cta { top: 16px; left: 16px; right: 16px; justify-content: flex-start; }
  .lb__cta .btn { background-color: rgba(60,36,52,.66); }
  .lb__cta .btn--pearl { background-color: var(--blush); }
  .lb__info { bottom: 84px; padding: 0 20px; }
  .lb__frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1; background: var(--veil-top); pointer-events: none; }
}

/* Desktop ≥1366: panel de meta a la izquierda del video */
@media (min-width: 1366px) {
  .lb__meta {
    position: absolute; right: calc(100% + 56px); bottom: 0;
    display: flex; flex-direction: column; gap: 24px;
    width: 300px;
  }
  .lb__info { position: static; padding: 0; pointer-events: auto; }
  .lb__title { font-size: 32px; text-shadow: none; text-wrap: balance; }
  .lb__tag { font-size: 11px; }
  .lb__cta { position: static; flex-direction: column; align-items: stretch; }
  .lb__cta .btn { min-height: 48px; background-color: transparent; }
  .lb__cta .btn--pearl { background-color: var(--blush); }
  .lb__frame::before { display: none; }
  .lb__shade { height: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb__bg, .lb__poster { transition-duration: .01ms !important; }
  .lb__spinner { animation-duration: 1.8s; }
  .lb__unmute { animation: none; }
}

/* =========================================
   WHATSAPP FLOTANTE
   Pastilla perla con borde champagne fino (círculo en mobile). Vive en un <aside> (landmark) y script.js
   la oculta donde ya hay otro acceso a WhatsApp o donde taparía algo: portada, escenario en mobile y Contacto.
   ========================================= */
.wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-wa);
  transition: opacity .3s var(--ease-soft), translate .3s var(--ease-out), visibility 0s linear 0s;
}
.wa.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; translate: 0 12px; transition: opacity .3s var(--ease-soft), translate .3s var(--ease-out), visibility 0s linear .3s; }
.wa__link {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(251,246,243,.92);
  border: 1px solid var(--champ);
  color: var(--rose-t);
  box-shadow: 0 14px 30px -14px rgba(75,45,64,.5);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.wa__label { display: none; }
.wa__link:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(75,45,64,.55); }
.wa__link:focus-visible { outline: none; box-shadow: var(--ring-focus), 0 14px 30px -14px rgba(75,45,64,.5); }
@media (min-width: 768px) {
  .wa { right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
  .wa__link {
    display: flex; align-items: center; gap: 10px;
    width: auto;
    padding: 0 24px 0 18px;
    border-radius: var(--radius-pill);
    font: 400 14px/1 var(--font-body);
    letter-spacing: .04em;
    color: var(--plum);
  }
  .wa__link svg { color: var(--rose-t); }
  .wa__label { display: inline; }
}


/* =========================================
   9b. PIEL NUEVA DEL REPRODUCTOR Y DEL WHATSAPP (solo estilo; la lógica de script.js no cambia)
   Velo malva con una seda sutil, marco dorado fino alrededor del video, botones de vidrio y CTA en oro.
   ========================================= */
.lb::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(233,211,176,.18), transparent 70%),
    repeating-linear-gradient(104deg, rgba(255,255,255,0) 0 90px, rgba(255,225,238,.07) 150px, rgba(255,255,255,0) 220px, rgba(30,10,30,.10) 290px, rgba(255,255,255,0) 360px);
}
.lb__frame { border-radius: 12px; box-shadow: 0 40px 90px -30px rgba(30,12,24,.62), 0 0 0 1px rgba(233,211,176,.6), 0 0 0 7px rgba(233,211,176,.12); }
/* sin backdrop-filter en ningún botón del reproductor (los de abajo y las flechas van encima del <video>): ciruela semitransparente */
.lb__btn { border-color: rgba(233,211,176,.55); background: rgba(58,34,50,.34); }
.lb__btn:hover { background: rgba(58,34,50,.56); border-color: rgba(233,211,176,.9); }
.lb__nav, .lb__controls .lb__btn { background: rgba(58,34,50,.62); }
.lb__nav:hover, .lb__controls .lb__btn:hover { background: rgba(58,34,50,.78); }
.lb__count { color: var(--gold-l); }
.lb__title { font-style: italic; font-weight: 300; }
.lb__tag { color: var(--gold-l); }
.lb .btn--pearl { background: var(--gold-grad); color: var(--plum); border-color: transparent; }
.lb .btn--pearl:hover { background: var(--gold-grad); filter: brightness(1.06); }
.lb .btn--ghost { border-color: rgba(233,211,176,.6); color: var(--gold-l); }
.lb .btn--ghost:hover { border-color: var(--gold-l); background: rgba(233,211,176,.1); }
@media (min-width: 768px) { .lb__cta .btn--pearl { background: var(--gold-grad); } }
@media (min-width: 1366px) { .lb__cta .btn--pearl { background: var(--gold-grad); } }
.lb__error .btn--pearl { background: var(--gold-grad); }

/* WhatsApp flotante: vidrio con filete dorado */
.wa__link { background: var(--pearl-solid); border-color: rgba(210,174,138,.95); color: var(--mauve-d); }   /* sin backdrop-filter: flota sobre los <video> */
@media (min-width: 768px) { .wa__link { color: var(--plum); } .wa__link svg { color: var(--mauve-d); } }

/* =========================================
   10. MOVIMIENTO REDUCIDO Y ACCESIBILIDAD
   Todo visible, sin animaciones. El fondo pasa a las imágenes del satén (saten.js agrega html.sat-img y no usa Lenis ni
   shader). Los pins/scrubs los apaga cada archivo JS con FB.RM.
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate]       { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .portada [data-in], .js .pmain, .js .pback { animation: none; }
  .glint, .satin-band__track { animation: none; }
  .satin-band__track { transform: none; flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 6px; padding: 0 var(--gutter); }
  .satin-band { height: auto; min-height: 64px; padding-block: 14px; }
  .satin-band__track [aria-hidden="true"] { display: none; }
  .btn, .btn::after, .portada__open, .nav::before, .vid { transition-duration: 0.01ms !important; }
  .header, .nav-links, .nav-links > li, .nav-toggle span { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .wa, .wa.is-hidden   { transition-duration: 0.01ms !important; }
  .satin-fallback .sf  { transition: none !important; }
  .stage__bokeh i { animation: none; }
}
@media (prefers-contrast: more) {
  .glass, .nav::before { background: rgba(251,246,243,.97); }
  .portada__top { background: var(--pearl); }
}

/* =========================================
   11. BLINDAJE iOS / WEBKIT (T29)
   @supports (-webkit-touch-callout: none) solo lo cumple WebKit de iOS/iPadOS (Safari, Chrome y demás de iPhone): escritorio no cambia.
   - Recorte redondeado de un <video> con overflow:hidden + border-radius: en iOS el video se sale de las esquinas; el truco es una máscara
     radial opaca (-webkit-radial-gradient(white, black)) más isolation:isolate.
   - filter: blur() sobre un <video> es pesado y a veces no se aplica: el panel de atrás de la portada (.pback) desenfoca su IMAGEN y no
     reproduce el video (es decorativo, aria-hidden).
   ========================================= */
@supports (-webkit-touch-callout: none) {
  /* La máscara radial sobre los recortes con <video> (T29) obligaba a iOS a componer cada video en memoria aparte: torcía los
     botones de play del carrusel y, con el video completo abierto, la pestaña se quedaba sin memoria y se recargaba. Fuera.
     El recorte redondeado lo sostiene overflow:hidden + translateZ(0) de cada contenedor. */
  .pmain__in, .tray-video__in, .apanel__in, .fan__layers, .vcard__frame, .lb__frame { isolation: isolate; }
  /* paneles decorativos desenfocados: el desenfoque va sobre la imagen y nunca sobre un video */
  .pback, .shows__iback { filter: none; }
  .pback .poster, .shows__iback .poster { filter: blur(3px) saturate(1.05); transform: scale(1.08); }
  .pback .vid, .shows__iback video { display: none; }
  /* polvo de luz: 6 círculos desenfocados animados sin parar = GPU ocupada todo el tiempo */
  .stage__bokeh { display: none; }
}
