/* AURA te recibe — /bienvenida/nueva («TOMA UNO»): una sola toma, la composición sobria de una llamada. Oro sobre negro,
   Cormorant para los títulos y Manrope para la interfaz; un solo dorado de relleno por pantalla, rojo solo para Colgar. */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/bienvenida/fuentes/manrope-v20.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/bienvenida/fuentes/cormorant-garamond-v21.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("/bienvenida/fuentes/cormorant-garamond-italica-v21.woff2") format("woff2"); }

:root {
  --negro: #07060a;
  --noche: #0e0c11;
  --tinta: #f2ece0;
  --suave: rgba(242, 236, 224, 0.72);
  --tenue: rgba(242, 236, 224, 0.58);
  --linea: rgba(242, 236, 224, 0.1);
  --linea-fuerte: rgba(242, 236, 224, 0.2);
  --vidrio: rgba(20, 18, 24, 0.72);
  --oro: #d4a656;
  --oro-claro: #f3d18e;
  --oro-hondo: #8a6326;
  --ambar: #eaa441;
  --jade: #3ed69c;
  --rojo: #e5484d;
  --error: #ff8a7a;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --barra-h: 64px;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
  --curva-fuerte: cubic-bezier(0.76, 0, 0.24, 1);
  --st: env(safe-area-inset-top);
  --sb: env(safe-area-inset-bottom);
  --sl: env(safe-area-inset-left);
  --sr: env(safe-area-inset-right);
  /* el marco héroe en escritorio: ≥ 880 px de ancho en 1440x900 (antes 540) */
  --mw: min(62vw, (100svh - 260px) * 1.5, 960px);
  --radio: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--negro); color: var(--tinta); font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { overflow: hidden; background: var(--negro); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 10px var(--jade); flex: none; animation: led 2.2s ease-in-out infinite; }
@keyframes led { 50% { opacity: 0.35; box-shadow: 0 0 2px var(--jade); } }
@keyframes aparecer { to { opacity: 1; } }
@keyframes subir { from { opacity: 0; transform: translateY(10px); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes dibujar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.enlace { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--suave); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--linea-fuerte); transition: color 0.25s; }
.enlace:hover:not(:disabled), .enlace:focus-visible { color: var(--tinta); text-decoration-color: var(--oro); }
.enlace:disabled { opacity: 0.4; cursor: default; }

/* =========================================================== el fondo: la oficina de AURA con la silla vacía */
.fondo { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #120f0d; transition: opacity 1.2s var(--curva); }
.fondo img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; object-position: 50% 40%; filter: blur(18px) saturate(1.05); }
.fondo-img { animation: ken-burns 20s ease-in-out infinite alternate; }
.fondo-mini { filter: blur(22px) !important; }
@keyframes ken-burns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.6%, 1.2%); } }
.fondo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 42%, rgba(7, 6, 10, 0.28), rgba(7, 6, 10, 0.78)), linear-gradient(180deg, rgba(7, 6, 10, 0.5), transparent 30%, transparent 55%, rgba(7, 6, 10, 0.88)); transition: background 1.2s var(--curva); }
/* en la llamada: un halo del color de su oficina detrás del cuadro, muy apagado */
body:not([data-estado="intro"]):not([data-estado="portada"]) .fondo { opacity: 0.55; }
/* (sin filtro en la llamada: la miniatura de 64 px ya es un halo suave, y un desenfoque de pantalla entera costaba cuadros) */
body:not([data-estado="intro"]):not([data-estado="portada"]) .fondo-img { opacity: 0; animation-play-state: paused; transition: opacity 1s ease; }
body:not([data-estado="intro"]):not([data-estado="portada"]) .fondo-mini { filter: none !important; }
body:not([data-estado="intro"]):not([data-estado="portada"]) .fondo::after { background: radial-gradient(60% 60% at 50% 46%, rgba(7, 6, 10, 0.35), rgba(7, 6, 10, 0.94)); }

/* =========================================================== la entrada de marca: Orden Global primero */
.intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: intro-red 0.6s ease 7s forwards; }
@keyframes intro-red { to { opacity: 0; visibility: hidden; pointer-events: none; } }
/* dos barras de cine: juntas son la pantalla negra de la intro; al irse se abren hacia arriba y hacia abajo */
.cine { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--negro); transition: transform 0.6s var(--curva-fuerte); }
.cine-arriba { top: 0; background: radial-gradient(84% 72% at 50% 100%, rgba(212, 166, 86, 0.1), transparent 72%), var(--negro); }
.cine-abajo { bottom: 0; background: radial-gradient(84% 72% at 50% 0%, rgba(212, 166, 86, 0.1), transparent 72%), var(--negro); }
.intro.abierta .cine-arriba { transform: translateY(-101%); }
.intro.abierta .cine-abajo { transform: translateY(101%); }
.intro-raya { position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: linear-gradient(90deg, transparent, var(--oro) 20%, var(--oro-claro) 50%, var(--oro) 80%, transparent); transform: scaleX(0); opacity: 0; transition: transform 0.4s var(--curva), opacity 0.3s ease; z-index: 1; box-shadow: 0 0 12px rgba(212, 166, 86, 0.6); }
.intro.abriendo .intro-raya { transform: scaleX(1); opacity: 1; }
.intro.abierta .intro-raya { opacity: 0; transition: opacity 0.5s ease 0.1s, transform 0.4s var(--curva); }
.intro-centro { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.intro.abriendo .intro-nombre, .intro.abriendo .intro-presenta, .intro.abriendo .intro-saltar { opacity: 0 !important; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.4s var(--curva); animation: none; }
.intro-logo { position: relative; width: clamp(150px, 17vw, 236px); aspect-ratio: 507 / 270; filter: drop-shadow(0 0 26px rgba(212, 166, 86, 0.3)); }
.intro-logo img { display: block; width: 100%; height: 100%; animation: logo-entra 1.15s var(--curva) both 0.15s; }
@keyframes logo-entra { from { opacity: 0; clip-path: inset(0 50% 0 50%); transform: scale(0.92); filter: blur(8px); } 60% { opacity: 1; } to { clip-path: inset(0 0 0 0); filter: blur(0); } }
.intro-brillo { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("/bienvenida/og-logo.png") center / 100% 100% no-repeat; mask: url("/bienvenida/og-logo.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255, 249, 232, 0.95) 50%, transparent 60% 100%); background-size: 260% 100%; background-position: 100% 0; background-repeat: no-repeat;
  animation: brillo-logo 1.35s cubic-bezier(0.45, 0, 0.2, 1) both 0.8s; }
@keyframes brillo-logo { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.intro-nombre { margin: 30px 0 0; padding-left: 0.62em; font-size: clamp(12px, 1.05vw, 15px); font-weight: 600; letter-spacing: 0.62em; color: var(--oro-claro); animation: nombre-entra 1.3s var(--curva) both 1.05s; }
@keyframes nombre-entra { from { opacity: 0; letter-spacing: 1.15em; filter: blur(5px); } }
.intro-presenta { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; font-family: var(--display); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); color: var(--suave); animation: subir 0.9s var(--curva) both 1.6s; }
.intro-presenta b { font-style: normal; font-weight: 600; letter-spacing: 0.16em; color: var(--tinta); }
.intro-presenta .tenue { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--tenue); }
.intro-presenta .tenue::before { content: "·"; margin-right: 12px; color: var(--oro); }
.intro-presenta i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--oro)); transform-origin: right; animation: linea-abre 1s var(--curva) both 1.6s; }
.intro-presenta i:last-child { background: linear-gradient(270deg, transparent, var(--oro)); transform-origin: left; }
@keyframes linea-abre { from { transform: scaleX(0); opacity: 0; } }
.intro-saltar { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(26px, calc(var(--sb) + 16px)); margin: 0; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tenue); animation: aparecer 0.8s ease both 1.3s; opacity: 0; }
.intro.corta .intro-logo img { animation-duration: 0.6s; animation-delay: 0s; }
.intro.corta .intro-brillo { animation-duration: 0.8s; animation-delay: 0.15s; }
.intro.corta .intro-nombre { animation-duration: 0.6s; animation-delay: 0.1s; }
.intro.corta .intro-presenta, .intro.corta .intro-presenta i { animation-duration: 0.6s; animation-delay: 0.2s; }
.intro.corta .intro-saltar { display: none; }

/* =========================================================== portada: la silla vacía y la llamada entrante */
.portada {
  position: fixed; inset: 0; z-index: 12; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; text-align: center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: max(16px, calc(var(--st) + 10px)) max(20px, var(--sr)) max(16px, calc(var(--sb) + 10px)) max(20px, var(--sl));
  transition: opacity 0.45s var(--curva), visibility 0.45s;
}
body:not([data-estado="intro"]):not([data-estado="portada"]) .portada { opacity: 0; visibility: hidden; pointer-events: none; }
/* la firma y el idioma, en el flujo (nada se encima con la safe-area) */
.portada-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.portada-marca { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.34em; color: var(--suave); white-space: nowrap; }
.portada-marca img { height: 24px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(212, 166, 86, 0.3)); }
.entrante { align-self: center; display: flex; flex-direction: column; align-items: center; padding: 18px 0; }
.retrato { position: relative; width: clamp(104px, 17vh, 148px); aspect-ratio: 1; display: grid; place-items: center; }
.retrato-cara { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #1a1512;
  box-shadow: 0 0 0 1px rgba(243, 209, 142, 0.75), 0 0 0 7px rgba(7, 6, 10, 0.55), 0 0 0 8px rgba(243, 209, 142, 0.2), 0 24px 70px -10px rgba(0, 0, 0, 0.9), 0 0 70px rgba(212, 166, 86, 0.28);
  animation: respirar 2.4s ease-in-out infinite; }
.retrato-cara img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes respirar { 50% { transform: scale(1.025); } }
.ondas { position: absolute; inset: 0; }
.ondas i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243, 209, 142, 0.55); animation: onda 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.ondas i:nth-child(2) { animation-delay: 0.8s; } .ondas i:nth-child(3) { animation-delay: 1.6s; }
@keyframes onda { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(1.7); opacity: 0; } }
.entrante-rotulo { display: flex; align-items: center; gap: 10px; margin: clamp(20px, 3.4vh, 30px) 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--suave); }
.nombre { margin: 10px 0 0; padding-left: 0.3em; font-family: var(--display); font-weight: 500; font-size: clamp(56px, 9vh, 96px); line-height: 0.95; letter-spacing: 0.3em; color: var(--tinta); text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
.llama { margin: 8px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(21px, 2.8vh, 27px); color: var(--tinta); }
.portada-lema { margin: 8px 0 0; font-size: 13px; letter-spacing: 0.03em; color: var(--suave); }
.portada-botones { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; }
.botones-fila { display: flex; justify-content: center; gap: clamp(56px, 12vw, 88px); }
.redondo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--suave); }
.redondo-circulo { position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.22s var(--curva), background 0.25s, box-shadow 0.25s; }
.redondo-circulo svg { width: 28px; height: 28px; }
.redondo:active .redondo-circulo { transform: scale(0.94); transition-duration: 0.09s; }
.redondo:focus-visible { outline: none; }
.redondo:focus-visible .redondo-circulo { outline: 2px solid var(--oro-claro); outline-offset: 4px; }
.redondo.no .redondo-circulo { background: rgba(242, 236, 224, 0.13); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.redondo.no svg { fill: none; stroke: var(--tinta); stroke-width: 1.7; stroke-linejoin: round; }
.redondo.no:hover .redondo-circulo { background: rgba(242, 236, 224, 0.2); }
/* el único dorado de relleno de la portada: Contestar (el halo late al ritmo del timbre, cada 2,4 s) */
.redondo.si { color: var(--tinta); }
.redondo.si .redondo-circulo { background: radial-gradient(circle at 35% 28%, #fde7b6, var(--oro-claro) 30%, var(--oro) 70%, var(--oro-hondo)); box-shadow: 0 12px 32px -6px rgba(212, 166, 86, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55); animation: halo-si 2.4s ease-out infinite; }
.redondo.si svg { fill: #1a1206; animation: timbrar 2.4s ease-in-out infinite; }
.redondo.si:hover .redondo-circulo { box-shadow: 0 16px 40px -6px rgba(212, 166, 86, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
@keyframes halo-si { 0% { box-shadow: 0 0 0 0 rgba(243, 209, 142, 0.5), 0 12px 32px -6px rgba(212, 166, 86, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(243, 209, 142, 0), 0 12px 32px -6px rgba(212, 166, 86, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55); } }
@keyframes timbrar { 0%, 40%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20%, 30% { transform: rotate(14deg); } }
.sin-sonido { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 12px; border: 0; background: none; font-size: 13px; color: var(--suave); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--linea-fuerte); }
.sin-sonido svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sin-sonido:hover, .sin-sonido:focus-visible { color: var(--tinta); }
.aviso-portada { margin: 4px 0 0; font-size: 12px; line-height: 1.6; letter-spacing: 0.06em; color: rgba(242, 236, 224, 0.6); pointer-events: none; }
/* la portada entra escalonada cuando se va la marca */
.portada > * , .entrante > *, .portada-botones > * { transition: opacity 0.8s var(--curva), transform 0.8s var(--curva); }
.entrante > .retrato { transition-delay: 0.05s; } .entrante > .entrante-rotulo { transition-delay: 0.12s; } .entrante > .nombre { transition-delay: 0.18s; }
.entrante > .llama, .entrante > .portada-lema { transition-delay: 0.24s; } .portada-botones > * { transition-delay: 0.36s; }
body.en-intro .entrante > *, body.en-intro .portada-botones > * { opacity: 0; transform: translateY(14px); }
body.en-intro .portada-marca span, body.en-intro .portada .idiomas { opacity: 0; }
.portada-marca span, .portada .idiomas { transition: opacity 0.8s var(--curva) 0.4s; }

/* =========================================================== el selector de idioma (ES|EN) */
.idiomas { position: relative; display: flex; padding: 3px; border: 1px solid var(--linea-fuerte); border-radius: 999px; background: rgba(14, 12, 17, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.idiomas button { position: relative; z-index: 1; border: 0; background: none; width: 44px; height: 32px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--tenue); transition: color 0.3s var(--curva); border-radius: 999px; }
.idiomas button[aria-pressed="true"] { color: var(--tinta); }
.idiomas button:hover:not([aria-pressed="true"]) { color: var(--tinta); }
.idiomas-fondo { position: absolute; top: 3px; left: 3px; width: 44px; height: 32px; border-radius: 999px; background: rgba(242, 236, 224, 0.13); transition: transform 0.25s var(--curva); }
.idiomas[data-l="en"] .idiomas-fondo { transform: translateX(44px); }

/* =========================================================== la barra de arriba (en la llamada) */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8; height: calc(var(--barra-h) + var(--st));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: var(--st) max(24px, var(--sr)) 0 max(24px, var(--sl));
  transition: opacity 0.8s var(--curva) 0.3s, transform 0.8s var(--curva) 0.3s;
}
/* (la barra ya está al contestar: la cabecera no cambia entre «Conectando…», la entrada y el saludo) */
body[data-estado="intro"] .barra, body[data-estado="portada"] .barra, body[data-estado="fin"] .barra { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.marca { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.32em; color: var(--suave); white-space: nowrap; min-width: 0; }
.marca-logo { height: 22px; width: auto; flex: none; display: block; filter: drop-shadow(0 0 10px rgba(212, 166, 86, 0.28)); }
.acciones { display: flex; align-items: center; gap: 10px; }
/* el CTA de la cabecera: en la llamada, el único dorado de relleno */
.acceso-boton {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; overflow: hidden; white-space: nowrap;
  background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: #1a1206; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 8px 26px -8px rgba(212, 166, 86, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.3s var(--curva), box-shadow 0.3s var(--curva);
}
.acceso-boton .led { background: #0d5a3a; box-shadow: 0 0 0 3px rgba(13, 90, 58, 0.18); }
.acceso-boton .corto { display: none; }
.acceso-boton:hover, .acceso-boton:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 34px -8px rgba(212, 166, 86, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.acceso-boton:active { transform: scale(0.97); }
.acceso-boton.enviado { background: rgba(242, 236, 224, 0.1); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.acceso-boton.enviado .led { background: var(--jade); }

/* =========================================================== la llamada */
.escena { position: fixed; inset: 0; z-index: 2; transition: opacity 0.6s var(--curva); }
body[data-estado="intro"] .escena, body[data-estado="portada"] .escena { opacity: 0; pointer-events: none; }
body[data-estado="fin"] .escena { opacity: 0; pointer-events: none; transition-duration: 0.9s; }
.llamada { position: absolute; top: calc(var(--barra-h) + var(--st)); left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 8px 16px max(20px, var(--sb)); outline: none; }
/* (la llamada ocupa toda la pantalla por encima de la constelación: solo el marco y la barra reciben toques; antes tapaba los temas) */
.llamada { pointer-events: none; }
.llamada > * { pointer-events: auto; }
.marco-envoltura { position: relative; width: var(--mw); flex: none; }
#voz { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); pointer-events: none; z-index: 0; }
.marco {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radio); overflow: hidden; background: #0c0a0d; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(242, 236, 224, 0.12), 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.marco video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
#gesto { background: #120f0d; }
/* las dos capas de presencia (A/B, director.js): la que entra se funde encima cuando ya corre */
.marco video.presencia { opacity: 0; transition: opacity 0.22s ease; }
.marco video.presencia.frente { opacity: 1; }
#habla { opacity: 0; transition: opacity 0.25s ease; }
.marco.hablando #habla { opacity: 1; }
.marco.saliendo #habla { opacity: 0; transition-duration: 0.6s; }
.marco.cambiando #habla { opacity: 0; transition-duration: 0.18s; }
.vineta { position: absolute; inset: 0; pointer-events: none; transition: background 0.5s;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.5) 0%, rgba(7, 6, 10, 0) 20%, rgba(7, 6, 10, 0) 62%, rgba(7, 6, 10, 0.72) 100%); }
body.con-rotulo .vineta { background: linear-gradient(180deg, rgba(7, 6, 10, 0.78) 0%, rgba(7, 6, 10, 0.3) 30%, rgba(7, 6, 10, 0) 44%, rgba(7, 6, 10, 0) 62%, rgba(7, 6, 10, 0.72) 100%); }

/* zona de arriba: segmentos, HUD y el rótulo del capítulo (en el flujo: nunca se enciman entre sí) */
.zona-arriba { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 0; pointer-events: none; }
.zona-arriba > * { pointer-events: auto; }
.segmentos { display: flex; gap: 4px; height: 14px; margin: -8px 0 -4px; }
.segmentos button { position: relative; flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; }
.segmentos button::before, .segmentos button i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.segmentos button::before { background: rgba(242, 236, 224, 0.25); }
.segmentos button i { background: var(--tinta); transform-origin: left; transform: scaleX(var(--p, 0)); }
.segmentos button.hecho i { --p: 1; }
.segmentos.bloqueado { pointer-events: none; }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip, .reloj { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(7, 6, 10, 0.62); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip b { font-weight: 700; letter-spacing: 0.08em; }
.chip-rol { font-weight: 500; color: var(--suave); }
.pulso { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 calc(4px + var(--v, 0) * 14px) var(--jade); transform: scale(calc(1 + var(--v, 0) * 0.6)); transition: transform 0.08s linear; }
.hud-der { display: flex; align-items: center; gap: 8px; }
.reloj { font-variant-numeric: lining-nums tabular-nums; }
.reloj .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); animation: led 2s ease-in-out infinite; }
.grabada { color: var(--suave); font-weight: 600; letter-spacing: 0.06em; }
.hud-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 6, 10, 0.62); }
.pres-acciones { display: inline-flex; gap: 6px; }
.hud-btn svg { width: 15px; height: 15px; fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rotulo { max-width: min(58%, 520px); padding: 2px 4px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75); animation: rotulo-entra 0.6s var(--curva) both; }
@keyframes rotulo-entra { from { opacity: 0; transform: translateY(-6px); } }
.rotulo p { margin: 0; }
.rotulo-ojo { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oro-claro); }
.rotulo-titulo { margin-top: 4px !important; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.08; color: var(--tinta); text-wrap: balance; }
.rotulo-punto { margin-top: 8px !important; display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.4; color: var(--tinta); min-height: 1.4em; }
.rotulo-punto:empty { display: none; }
.rotulo-punto b { flex: none; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--oro-claro); }
.rotulo-punto span { animation: punto-entra 0.5s var(--curva) both; }
@keyframes punto-entra { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.rotulo-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rotulo-acciones:empty { display: none; }
.rotulo-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--linea-fuerte); border-radius: 999px; background: rgba(7, 6, 10, 0.62); font-size: 13px; font-weight: 600; color: var(--tinta); text-decoration: none; text-shadow: none; }
.rotulo-btn:hover { border-color: var(--oro-claro); }
.rotulo-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rotulo-btn.vivo { border-color: rgba(243, 209, 142, 0.6); color: var(--oro-claro); }
/* la ventanita propia: da la sensación de videollamada sin pedir la cámara */
.tu { position: absolute; z-index: 2; right: 14px; top: 56px; width: 120px; aspect-ratio: 3 / 2; border-radius: 12px; background: rgba(21, 19, 26, 0.88); box-shadow: 0 0 0 1px var(--linea-fuerte), 0 12px 30px -10px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; font-size: 12px; line-height: 1.2; color: var(--tenue); transition: opacity 0.4s; }
.tu svg { width: 22px; height: 22px; fill: none; stroke: var(--tenue); stroke-width: 1.5; }
body[data-estado="conectando"] .tu, body[data-estado="entrada"] .tu { opacity: 0; }
/* «Conectando con AURA…» */
.conectando { position: absolute; z-index: 3; left: 50%; bottom: 18%; transform: translateX(-50%); margin: 0; display: none; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(7, 6, 10, 0.66); font-size: 14px; font-weight: 600; white-space: nowrap; animation: aparecer 0.3s ease both; opacity: 0; }
body[data-estado="conectando"] .conectando { display: inline-flex; }
.giro { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(242, 236, 224, 0.25); border-top-color: var(--oro-claro); animation: girar 0.8s linear infinite; }
/* la tarjeta de título entre capítulos (600 ms: tapa la carga del siguiente) */
.titulo-cap { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; text-align: center; background: rgba(7, 6, 10, 0.9); animation: titulo-entra 0.2s ease both; pointer-events: none; }
.titulo-cap.sale { animation: titulo-sale 0.26s ease both; }
@keyframes titulo-entra { from { opacity: 0; } }
@keyframes titulo-sale { to { opacity: 0; } }
.titulo-cap b { animation: titulo-num 0.6s var(--curva) both; }
@keyframes titulo-num { from { opacity: 0; transform: translateY(10px) scale(0.96); filter: blur(4px); } }
.titulo-cap b { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 8vw, 110px); line-height: 0.9; background: linear-gradient(180deg, #fff1cf, var(--oro) 70%, var(--oro-hondo)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums tabular-nums; }
.titulo-cap span { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); color: var(--tinta); }
/* subtítulos karaoke, en la zona de abajo (2 líneas como máximo: app.js parte las frases largas) */
.subtitulo { position: absolute; z-index: 2; left: 6%; right: 6%; bottom: clamp(16px, 3vw, 30px); display: flex; justify-content: center; align-items: flex-end; text-align: center; pointer-events: none; }
body.sin-cc .subtitulo { visibility: hidden; }
.subtitulo .linea { display: block; max-width: 32em; font-size: clamp(16px, 1.35vw, 21px); font-weight: 500; line-height: 1.38; text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 18px rgba(0, 0, 0, 0.85); animation: cue-entra 0.38s var(--curva) both; }
.subtitulo .linea.sale { animation: cue-sale 0.3s ease both; }
@keyframes cue-entra { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cue-sale { to { opacity: 0; transform: translateY(-4px); } }
.subtitulo .w { color: rgba(242, 236, 224, 0.55); transition: color 0.22s ease; }
.subtitulo .w.dicha { color: var(--tinta); }
.subtitulo .w.ahora { color: var(--oro-claro); }
.subtitulo .tocar { pointer-events: auto; border: 1px solid rgba(243, 209, 142, 0.6); background: rgba(7, 6, 10, 0.6); color: var(--oro-claro); min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pausa-externa {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; padding: 0 24px;
  background: rgba(7, 6, 10, 0.55); color: var(--tinta); font-size: 15px; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); animation: aparecer 0.25s ease both; opacity: 0;
}
.pausa-externa .pe-icono { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 236, 224, 0.92); }
.pausa-externa .pe-icono svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--negro); }

/* =========================================================== la barra de la llamada: 5 botones redondos */
.mandos { position: relative; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 999px; background: rgba(20, 18, 24, 0.9); box-shadow: 0 0 0 1px var(--linea), 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  transition: opacity 0.6s var(--curva), transform 0.6s var(--curva); }
body:not(.mandos-listos) .mandos { opacity: 0; transform: translateY(14px); pointer-events: none; }
.m { position: relative; flex: none; width: 52px; height: 52px; border: 0; border-radius: 999px; display: grid; place-items: center; background: rgba(242, 236, 224, 0.09); color: var(--tinta); transition: background 0.2s, color 0.2s, transform 0.2s var(--curva); }
.m:hover { background: rgba(242, 236, 224, 0.15); }
.m:active { transform: scale(0.94); }
.m svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.12s; }
.m[aria-pressed="true"] { background: var(--tinta); color: var(--negro); }
#m-mudo .i-mudo, #m-mudo[aria-pressed="true"] .i-sonido { display: none; }
#m-mudo[aria-pressed="true"] .i-mudo { display: block; }
.m.pild { width: auto; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 14px; }
.pild-texto { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pild-texto b { font-size: 14px; font-weight: 600; }
.pild-texto small { font-size: 12px; font-weight: 500; color: var(--tenue); font-variant-numeric: lining-nums tabular-nums; }
.m.pild kbd { font: inherit; font-size: 12px; color: var(--tenue); border: 1px solid var(--linea-fuerte); border-radius: 6px; padding: 1px 7px; }
.cm-icono { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbe3ad, var(--oro) 60%, var(--oro-hondo)); }
.cm-icono svg { width: 13px; height: 13px; fill: #1a1206; stroke: none; }
.cm-icono .i-play { margin-left: 2px; }
.cm-icono .i-pausa { display: none; fill: none; stroke: #1a1206; stroke-width: 3; }
body.presentando:not(.pres-pausada) #m-conoceme .i-play { display: none; }
body.presentando:not(.pres-pausada) #m-conoceme .i-pausa { display: block; }
/* tras el saludo: «Conóceme» es el siguiente paso evidente (un pulso que se apaga solo) */
#m-conoceme.invita .cm-icono::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--oro-claro); animation: ping 2.4s ease-out 0.4s 4 both; pointer-events: none; }
#m-conoceme.invita { background: rgba(243, 209, 142, 0.14); }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
.m.colgar { width: 64px; background: var(--rojo); color: #fff; }
.m.colgar:hover { background: #f05a5e; }
.m.colgar svg { fill: #fff; stroke: none; transform: rotate(135deg); }

/* =========================================================== la constelación de temas (escritorio ancho) */
.orbita { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.orbita-traza { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 1.2s ease 0.4s; }
.orbita-traza path { fill: none; }
.orbita-traza .base { stroke: rgba(243, 209, 142, 0.2); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.orbita-traza .cometa { stroke: var(--oro-claro); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.012 0.988; animation: cometa 9s linear infinite; opacity: 0.75; }
@keyframes cometa { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.orbita:not(.visible) .orbita-traza { opacity: 0; }
.tema {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 6px; border: 0; background: none; text-align: left;
  transform: translate(-31px, -50%) scale(0.7); opacity: 0; transition: transform 0.9s var(--curva) var(--d, 0s), opacity 0.9s var(--curva) var(--d, 0s); border-radius: 6px;
}
.tema.izq { flex-direction: row-reverse; text-align: right; transform: translate(calc(-100% + 31px), -50%) scale(0.7); }
.orbita.visible .tema { opacity: 1; transform: translate(-37px, -50%); }
.orbita.visible .tema.izq { transform: translate(calc(-100% + 37px), -50%); }
.orbita:not(.visible) .tema { pointer-events: none; visibility: hidden; transition: transform 0.4s, opacity 0.4s, visibility 0s 0.4s; }
.nodo { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(40, 33, 30, 0.92), rgba(12, 10, 14, 0.94)); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8); transition: transform 0.5s var(--curva); }
.nodo::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 164, 65, 0.3), transparent 65%); opacity: 0; transform: scale(0.6); transition: opacity 0.5s var(--curva), transform 0.5s var(--curva); z-index: -1; }
.nodo .aro { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.aro circle { fill: none; stroke-width: 1; }
.aro .pista { stroke: var(--linea-fuerte); }
.aro .avance { stroke: var(--oro-claro); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.25s linear; }
.nodo .icono { position: relative; width: 28px; height: 28px; fill: none; stroke: var(--oro-claro); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.icono .r { fill: var(--oro-claro); stroke: none; }
.icono [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.tema .rotulo-tema { display: flex; flex-direction: column; gap: 3px; max-width: 168px; }
.tema .num { font-size: 12px; font-weight: 700; letter-spacing: 0.26em; color: var(--oro); }
.tema .titulo { font-family: var(--display); font-size: 19px; font-weight: 500; line-height: 1.12; color: var(--tinta); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); transition: color 0.4s var(--curva); text-wrap: balance; }
/* sin sitio para los rótulos al lado: solo el nodo, y el nombre al pasar */
.orbita.compacta .tema .rotulo-tema { position: absolute; top: 100%; left: 50%; max-width: 160px; width: max-content; transform: translate(-50%, 4px); align-items: center; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.orbita.compacta .tema .num { display: none; }
.orbita.compacta .tema:hover .rotulo-tema, .orbita.compacta .tema:focus-visible .rotulo-tema { opacity: 1; }
.tema:hover .nodo, .tema:focus-visible .nodo { transform: scale(1.07); }
.tema:hover .nodo::before, .tema:focus-visible .nodo::before, .tema.activo .nodo::before { opacity: 1; transform: scale(1); }
.tema:hover .icono [pathLength], .tema:focus-visible .icono [pathLength], .tema.activo .icono [pathLength] { animation: dibujar 1.1s var(--curva) both; }
.tema:hover .titulo, .tema:focus-visible .titulo, .tema.activo .titulo { color: var(--oro-claro); }
.tema.activo .nodo { background: radial-gradient(circle at 50% 35%, rgba(90, 66, 30, 0.95), rgba(20, 15, 12, 0.95)); }
.tema.visto:not(.activo) .aro .pista { stroke: rgba(243, 209, 142, 0.42); }
body.presentando .orbita .tema { opacity: 0.35 !important; }
body.presentando .orbita .tema:hover, body.presentando .orbita .tema:focus-visible { opacity: 1 !important; }
@media (max-width: 1099px), (max-height: 639px) { .orbita { display: none; } }

/* =========================================================== hojas (Preguntar, transcripción) y acceso */
dialog { color: var(--tinta); }
dialog::backdrop { background: rgba(4, 3, 6, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hoja {
  width: min(600px, calc(100% - 32px)); max-height: min(84svh, 760px); padding: 0; border: 1px solid var(--linea-fuerte); border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 21, 26, 0.98), rgba(11, 10, 13, 0.98)); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); overflow: hidden;
}
.hoja[open] { display: flex; flex-direction: column; animation: hoja-entra 0.4s var(--curva); }
@keyframes hoja-entra { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.hoja-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.hoja h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 28px; }
.hoja-cerrar { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(242, 236, 224, 0.08); display: grid; place-items: center; color: var(--suave); transition: color 0.25s, background 0.25s; }
.hoja-cerrar:hover { color: var(--tinta); background: rgba(242, 236, 224, 0.14); }
.hoja-cerrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.hoja-cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
.hoja h3 { margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oro); }
.caja { position: relative; display: flex; align-items: center; gap: 6px; height: 56px; padding: 6px 6px 6px 8px; border-radius: 14px; background: rgba(242, 236, 224, 0.06); box-shadow: inset 0 0 0 1px var(--linea-fuerte); transition: box-shadow 0.3s; }
.caja:focus-within { box-shadow: inset 0 0 0 1px rgba(243, 209, 142, 0.6), 0 0 0 4px rgba(212, 166, 86, 0.1); }
.caja input { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--tinta); font: inherit; font-size: 16px; padding: 0 8px; }
.caja input::placeholder { color: var(--tenue); }
.enviar { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 236, 224, 0.12); color: var(--tinta); transition: background 0.25s, color 0.25s; }
.caja:has(input:not(:placeholder-shown)) .enviar { background: var(--tinta); color: var(--negro); }
.enviar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sugerencias { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sugerencias button { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; border: 1px solid var(--linea-fuerte); background: none; border-radius: 999px; padding: 0 14px; font-size: 13.5px; color: var(--suave); transition: color 0.25s, border-color 0.25s, background 0.25s; text-align: left; }
.sugerencias button:hover, .sugerencias button:focus-visible { color: var(--tinta); border-color: rgba(243, 209, 142, 0.55); background: rgba(212, 166, 86, 0.08); }
.sugerencias button.cap { color: var(--oro-claro); font-family: var(--display); font-style: italic; font-size: 16px; }
.temas-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.tema-chico { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; border-radius: 10px; text-align: center; }
.tema-chico .nodo { width: 54px; height: 54px; }
.tema-chico .nodo .icono { width: 26px; height: 26px; }
.tema-chico span.t { font-family: var(--display); font-size: 15px; line-height: 1.12; color: var(--tinta); overflow-wrap: anywhere; }
.tema-chico:hover .nodo, .tema-chico:focus-visible .nodo { transform: scale(1.06); }
.tema-chico:hover .icono [pathLength], .tema-chico:focus-visible .icono [pathLength] { animation: dibujar 1.1s var(--curva) both; }
.faq-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.faq-lista button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--linea); background: none; font-size: 14.5px; color: var(--suave); transition: color 0.25s, background 0.25s, padding 0.3s var(--curva); }
.faq-lista button span { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--oro); flex: none; min-width: 1.6em; }
.faq-lista button:hover, .faq-lista button:focus-visible { color: var(--tinta); background: rgba(212, 166, 86, 0.06); padding-left: 12px; }
.hoja-pie { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; }
.aviso { margin: 0; text-align: center; font-size: 12px; letter-spacing: 0.06em; color: rgba(242, 236, 224, 0.55); }
.transcripcion-ojo { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oro); }
.transcripcion-texto { margin: 0; font-size: 16px; line-height: 1.65; color: var(--tinta); white-space: pre-line; }

/* el acceso a la AURA en vivo (diálogo desde la cabecera o «Ahora no»; o dentro de la tarjeta final) */
.acceso {
  width: min(860px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--linea-fuerte); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 21, 26, 0.98), rgba(10, 9, 12, 0.99)); box-shadow: 0 50px 140px rgba(0, 0, 0, 0.85);
}
.acceso[open] { display: grid; grid-template-columns: 0.85fr 1fr; animation: hoja-entra 0.5s var(--curva); }
.acceso-cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; }
.acceso-arte { position: relative; min-height: 100%; overflow: hidden; background: #1a1512; }
.acceso-arte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 30%; transform: scale(1.12); }
.acceso-arte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(14, 12, 17, 0.95)), linear-gradient(0deg, rgba(7, 6, 10, 0.75), transparent 45%); }
.acceso-vivo { position: absolute; z-index: 1; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.acceso-marca { position: absolute; z-index: 1; left: 22px; top: 22px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
.acceso-marca img { position: static; width: auto; height: 18px; transform: none; object-fit: contain; }
.acceso-cuerpo { position: relative; padding: 36px 36px 30px 28px; overflow-y: auto; }
.acceso-ojo { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--oro); }
.acceso h2:focus, .final h2:focus { outline: none; }
.acceso h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.02; text-wrap: balance; }
.acceso-texto { margin: 12px 0 20px; font-size: 14px; line-height: 1.55; color: var(--suave); }
.campo { position: relative; margin-bottom: 10px; }
.campo input { width: 100%; height: 54px; padding: 22px 14px 6px; border: 0; border-radius: 14px; background: rgba(242, 236, 224, 0.06); box-shadow: inset 0 0 0 1px var(--linea-fuerte); color: var(--tinta); font: inherit; font-size: 16px; outline: none; transition: box-shadow 0.3s, background 0.3s; }
.campo label { position: absolute; left: 15px; top: 17px; font-size: 15px; color: var(--tenue); pointer-events: none; transform-origin: left top; transition: transform 0.3s var(--curva), color 0.3s; }
.campo input::placeholder { color: transparent; transition: color 0.2s; }
.campo input:focus::placeholder { color: var(--tenue); }
.campo input:focus { box-shadow: inset 0 0 0 1px var(--oro-claro), 0 0 0 4px rgba(212, 166, 86, 0.12); background: rgba(212, 166, 86, 0.05); }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.72); color: var(--oro); }
.campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--error); }
.trampa { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.acceso-error { min-height: 1.4em; margin: 2px 0 8px; font-size: 13.5px; color: var(--error); }
.acceso-error:empty { min-height: 0; margin: 0 0 4px; }
.acceso-pie { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.acceso-enviar {
  position: relative; width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro)); color: #1a1206; font-size: 15px; font-weight: 700;
  box-shadow: 0 14px 34px -10px rgba(212, 166, 86, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.3s var(--curva), opacity 0.3s;
}
.acceso-enviar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--curva); }
.acceso-enviar:hover svg { transform: translateX(3px); }
.acceso-enviar .giro { display: none; border-color: rgba(26, 18, 6, 0.25); border-top-color: #1a1206; }
.acceso-enviar.enviando { pointer-events: none; opacity: 0.85; }
.acceso-enviar.enviando .giro { display: block; }
.acceso-enviar.enviando svg { display: none; }
.acceso-privado { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--tenue); text-align: center; }
.acceso-listo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; gap: 18px; outline: none; animation: subir 0.6s var(--curva) both; }
.listo-marca { width: 74px; height: 74px; fill: none; stroke: var(--oro-claro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.listo-marca circle, .listo-marca path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.listo-marca circle { animation: dibujar 0.9s var(--curva) forwards 0.15s; }
.listo-marca path { animation: dibujar 0.6s var(--curva) forwards 0.85s; }
.acceso-listo h2 { font-size: clamp(26px, 3vw, 34px); }
.acceso-volver { height: 50px; padding: 0 24px; border: 1px solid rgba(243, 209, 142, 0.6); border-radius: 999px; background: none; color: var(--oro-claro); font-size: 14px; font-weight: 700; transition: background 0.3s, color 0.3s; }
.acceso-volver:hover, .acceso-volver:focus-visible { background: var(--oro-claro); color: #1a1206; }
.acceso.exito[open] { grid-template-columns: 1fr; width: min(520px, calc(100% - 32px)); }
.acceso.exito .acceso-arte { display: none; }

/* =========================================================== fin: «Llamada terminada» */
.final { position: fixed; inset: 0; z-index: 11; display: flex; justify-content: center; overflow-y: auto; overscroll-behavior: contain;
  padding: max(28px, calc(var(--st) + 20px)) max(20px, var(--sr)) max(24px, calc(var(--sb) + 16px)) max(20px, var(--sl)); animation: aparecer 0.6s ease 0.2s both; opacity: 0; }
.final-tarjeta { width: min(440px, 100%); margin: auto 0; text-align: center; }
.final-retrato { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(243, 209, 142, 0.6), 0 0 0 9px rgba(212, 166, 86, 0.06); }
.final-retrato img { width: 100%; height: 100%; object-fit: cover; display: block; }
.final-ojo { margin: 18px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tenue); font-variant-numeric: lining-nums tabular-nums; }
.final h2 { margin: 10px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 42px); line-height: 1.05; }
.final-texto { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--suave); }
.final-form { margin-top: 22px; text-align: left; }
.final .acceso-cuerpo { padding: 0; overflow: visible; }
.final .acceso-ojo, .final #acceso-titulo, .final .acceso-texto { display: none; }
.final .acceso-listo { align-items: center; text-align: center; }
.final-otras { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; }

/* =========================================================== preguntas «vivas»: el globo y la tarjeta «en vivo» */
/* lo que preguntaste: un globo de chat abajo a la derecha, sobre los subtítulos (la cara queda libre) */
.globo { position: absolute; z-index: 3; right: 16px; bottom: calc(clamp(16px, 3vw, 30px) + 4.2em); max-width: min(42%, 380px); margin: 0; display: flex; gap: 8px; align-items: baseline;
  padding: 9px 14px 10px; border-radius: 18px 18px 6px 18px; background: rgba(242, 236, 224, 0.92); color: #17130d; font-size: 15px; line-height: 1.35; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  transform-origin: 100% 100%; animation: globo-entra 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; pointer-events: none; }
.globo[hidden] { display: none; }
.globo b { flex: none; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oro-hondo); }
.globo span { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.globo.sale { animation: globo-sale 0.3s ease both; }
@keyframes globo-entra { from { opacity: 0; transform: translateY(10px) scale(0.92); } }
@keyframes globo-sale { to { opacity: 0; transform: translateY(-6px) scale(0.98); } }
/* AURA no la tenía: la tarjeta «Pregúntaselo a la AURA en vivo», abajo y al centro */
.tarjeta-vivo { position: absolute; z-index: 4; left: 50%; bottom: clamp(16px, 3vw, 28px); width: min(420px, calc(100% - 28px)); transform: translateX(-50%); padding: 16px 18px 12px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(24, 20, 18, 0.95), rgba(10, 9, 12, 0.97)); box-shadow: 0 0 0 1px rgba(243, 209, 142, 0.32), 0 30px 70px -20px rgba(0, 0, 0, 0.95); animation: vivo-entra 0.5s var(--curva) both; }
.tarjeta-vivo[hidden] { display: none; }
@keyframes vivo-entra { from { opacity: 0; transform: translate(-50%, 14px); } }
.tarjeta-vivo p { margin: 0; }
.tv-ojo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--suave); }
.tv-titulo { margin-top: 6px !important; font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.1; color: var(--tinta); text-wrap: balance; }
.tv-pregunta { margin-top: 6px !important; font-family: var(--display); font-style: italic; font-size: 17px; line-height: 1.3; color: var(--oro-claro); overflow-wrap: anywhere; }
.tv-pregunta[hidden] { display: none; }
.tv-acciones { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 12px; }
.tv-si { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; background: linear-gradient(180deg, var(--oro-claro), var(--oro)); color: #1a1206; font-size: 15px; font-weight: 700;
  box-shadow: 0 14px 34px -10px rgba(212, 166, 86, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.tv-si svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.con-vivo .subtitulo, body.con-vivo .globo { opacity: 0; }

/* la hoja Preguntar: en escritorio, una hoja al costado (la cara de AURA queda a la vista mientras escribes) */
@media (min-width: 900px) and (min-height: 501px) {
  .hoja.preguntar { margin: 0 0 0 auto; height: 100svh; max-height: none; width: min(440px, 36vw); border-radius: 20px 0 0 20px; border-right: 0; }
  .hoja.preguntar[open] { animation: hoja-lado 0.42s var(--curva); }
  @keyframes hoja-lado { from { opacity: 0; transform: translateX(40px); } }
  .hoja.preguntar::backdrop { background: rgba(4, 3, 6, 0.28); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* escribiendo: la hoja se queda en la caja y las sugerencias (lo demás vuelve al borrar) y el fondo no tapa la cara */
.hoja.preguntar.escribiendo .hoja-cuerpo > :not(.caja):not(.sugerencias) { display: none; }
.hoja.preguntar.escribiendo::backdrop { background: rgba(4, 3, 6, 0.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 899px), (max-height: 500px) { .hoja.preguntar.escribiendo { max-height: 46dvh; } }
/* la demo, destacada en la hoja */
.demo-boton { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(243, 209, 142, 0.35); border-radius: 16px; text-align: left;
  background: linear-gradient(135deg, rgba(212, 166, 86, 0.14), rgba(212, 166, 86, 0.04)); color: var(--tinta); transition: border-color 0.25s, background 0.25s; }
.demo-boton:hover, .demo-boton:focus-visible { border-color: var(--oro-claro); background: linear-gradient(135deg, rgba(212, 166, 86, 0.22), rgba(212, 166, 86, 0.06)); }
.demo-icono { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbe3ad, var(--oro) 60%, var(--oro-hondo)); }
.demo-icono svg { width: 20px; height: 20px; fill: none; stroke: #1a1206; stroke-width: 1.8; stroke-linejoin: round; }
.demo-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demo-texto b { font-size: 15px; font-weight: 700; }
.demo-texto small { font-size: 12.5px; color: var(--suave); }

/* =========================================================== colgar: el marco se contrae al retrato y queda detrás */
/* el nombre que comparten el marco (en la llamada) y el retrato de la tarjeta (al final): View Transition */
body:not([data-estado="fin"]) .marco { view-transition-name: aura-marco; }
body[data-estado="fin"] .final-retrato { view-transition-name: aura-marco; }
::view-transition-group(aura-marco) { animation-duration: 0.82s; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); overflow: clip; }
::view-transition-old(aura-marco), ::view-transition-new(aura-marco) { width: 100%; height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.6s; }
/* al final: la llamada sigue ahí detrás, a pantalla completa, desenfocada y muda (salida-1: vuelve a su trabajo) */
body[data-estado="fin"] .escena { opacity: 1; pointer-events: none; }
body[data-estado="fin"] .llamada { top: 0; padding: 0; }
body[data-estado="fin"] .marco-envoltura { position: fixed; inset: 0; width: auto; max-width: none; }
body[data-estado="fin"] .marco { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; filter: blur(16px) brightness(0.4) saturate(0.85); transform: scale(1.08); transition: filter 1s ease; }
body[data-estado="fin"] .marco > :not(.presencia), body[data-estado="fin"] #habla, body[data-estado="fin"] .mandos, body[data-estado="fin"] #voz, body[data-estado="fin"] .orbita { display: none !important; }
@media (pointer: coarse) { body[data-estado="fin"] .marco { filter: blur(12px) brightness(0.4); } }
/* el retrato de la tarjeta: con su voz cuando dice «¡Listo!» */
.final-retrato { position: relative; }
.final-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.9); transform-origin: 50% 30%; opacity: 0; transition: opacity 0.35s ease; }
.final-retrato.habla .final-video { opacity: 1; }
.final-retrato.habla { box-shadow: 0 0 0 1px var(--oro-claro), 0 0 0 9px rgba(212, 166, 86, 0.14), 0 0 40px rgba(212, 166, 86, 0.35); transition: box-shadow 0.4s ease; }
.final-voz { min-height: 1.4em; margin: 10px auto 0; max-width: 30em; font-size: 14.5px; line-height: 1.4; color: var(--tinta); text-wrap: balance; }
.final-voz:empty { min-height: 0; margin: 0; }
/* ya enviada: el renglón de su voz reservado (lo que dice no empuja la tarjeta) */
.final.enviada .final-voz { min-height: 2.8em; margin: 10px auto 0; }
.final .acceso-listo { gap: 14px; }
.final .acceso-listo h2 { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; max-width: 20em; }
/* el sello dorado del éxito: el aro se dibuja, se rellena de oro y la marca entra encima */
.final .listo-marca, .acceso .listo-marca { width: 80px; height: 80px; overflow: visible; filter: drop-shadow(0 0 18px rgba(212, 166, 86, 0.45)); }
.listo-marca circle { fill: rgba(212, 166, 86, 0); transition: fill 0.5s ease 0.8s; }
.acceso-listo:not([hidden]) .listo-marca circle { animation: dibujar 0.9s var(--curva) forwards 0.15s, sello-oro 0.6s ease forwards 0.9s; }
@keyframes sello-oro { to { fill: rgba(212, 166, 86, 0.2); } }

/* =========================================================== celular y tableta en vertical */
/* (también cualquier pantalla vertical de menos de 1200 px: un Android con «sitio de escritorio» o con el zoom de la
   página tiene 980 px de ancho y recibía el marco 3:2 chico en medio de una pantalla negra; director.js, RETRATO) */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1199px) {
  :root { --barra-h: 56px; --radio: 16px; }
  .barra { padding-left: max(16px, var(--sl)); padding-right: max(16px, var(--sr)); }
  .llamada { gap: 14px; padding: 6px max(16px, var(--sr)) max(14px, calc(var(--sb) + 8px)) max(16px, var(--sl)); }
  .marco-envoltura { width: auto; max-width: 100%; }
  #voz { display: none; }
  /* el marco 4:5 a todo el ancho (márgenes de 16 px), sin pasar de calc(100dvh - 210px): la barra de botones siempre cabe */
  .marco { width: auto; max-width: 100%; aspect-ratio: 4 / 5; height: min(calc((100vw - 32px) * 1.25), calc(100dvh - 210px - var(--st) - var(--sb))); }
  .marco video { object-position: 49% 30%; }
  .zona-arriba { padding: 12px 12px 0; gap: 8px; }
  .chip-rol { display: none; }
  /* (en la presentación el HUD suma «siguiente» y «salir»: sin «· GRABADA» cabe entero, también con «Salir» de la
     pantalla completa; antes el botón de pantalla completa quedaba fuera del marco) */
  body.presentando .grabada, body.completa .grabada { display: none; }
  .hud { min-width: 0; }
  .tu { width: 64px; aspect-ratio: 3 / 4; top: 50px; right: 12px; font-size: 12px; padding: 4px; }
  .tu span { display: none; }
  body.con-rotulo .tu { opacity: 0; }
  .rotulo { max-width: 100%; padding: 0 2px; }
  .rotulo-ojo { display: none; }
  .rotulo-titulo { margin-top: 0 !important; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rotulo-punto { margin-top: 4px !important; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rotulo-punto b { margin-right: 6px; font-size: 15px; }
  .subtitulo { left: 4%; right: 4%; bottom: 14px; }
  .globo { right: 10px; bottom: calc(14px + 3.3em); max-width: 76%; font-size: 14.5px; }
  .subtitulo .linea { font-size: 16px; line-height: 1.35; }
  /* la fila de 5 botones redondos, en la zona del pulgar */
  .mandos { gap: 12px; padding: 0; background: none; box-shadow: none; }
  .m { width: 54px; height: 54px; }
  .m.pild { width: 54px; padding: 0; justify-content: center; }
  .m.pild .pild-texto, .m.pild kbd { display: none; }
  #m-preguntar svg { width: 22px; height: 22px; }
  #m-conoceme .cm-icono { width: 54px; height: 54px; background: rgba(242, 236, 224, 0.09); }
  #m-conoceme { background: none; }
  #m-conoceme .cm-icono svg { width: 20px; height: 20px; fill: var(--tinta); }
  #m-conoceme .cm-icono .i-pausa { fill: none; stroke: var(--tinta); stroke-width: 2.2; }
  #m-conoceme.invita .cm-icono { background: radial-gradient(circle at 35% 30%, #fbe3ad, var(--oro) 60%, var(--oro-hondo)); }
  #m-conoceme.invita .cm-icono svg { fill: #1a1206; }
  .m.colgar { width: 54px; }
  .acceso[open] { grid-template-columns: 1fr; }
  .acceso-arte { min-height: 0; height: 120px; }
  .acceso-arte::after { background: linear-gradient(0deg, rgba(14, 12, 17, 1), rgba(14, 12, 17, 0.1) 70%); }
}
@media (max-width: 599px) {
  .marca-texto { display: none; }
  .acceso-boton { height: 40px; padding: 0 14px; gap: 8px; font-size: 12.5px; }
  .portada-marca { gap: 10px; letter-spacing: 0.3em; }
  .portada-marca img { height: 20px; }
  .intro-presenta { flex-direction: column; gap: 8px; }
  .intro-presenta i, .intro-presenta .tenue::before { display: none; }
  /* las hojas suben desde abajo, con el botón de enviar fijo al pie */
  .hoja, .acceso { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 92dvh; }
  .hoja[open], .acceso[open] { animation: hoja-sube 0.4s var(--curva); }
  @keyframes hoja-sube { from { transform: translateY(40px); opacity: 0; } }
  .hoja-cuerpo, .acceso-cuerpo { padding-bottom: max(16px, var(--sb)); }
  .acceso-arte { display: none; }
  .acceso-cuerpo { padding: 22px 18px 0; }
  .acceso-pie { position: sticky; bottom: 0; margin: 0 -18px; padding: 10px 18px max(12px, var(--sb)); background: linear-gradient(180deg, rgba(11, 10, 13, 0), rgba(11, 10, 13, 0.97) 14px); }
  .final .acceso-pie { margin: 0 -4px; padding: 10px 4px max(10px, var(--sb)); background: linear-gradient(180deg, rgba(7, 6, 10, 0), rgba(7, 6, 10, 0.97) 14px); }
  .acceso h2 { font-size: 30px; padding-right: 48px; }
  .temas-rejilla { gap: 12px 2px; }
  .final h2 { font-size: 32px; }
  .final-retrato { width: 72px; height: 72px; }
}
/* «Habla con AURA en vivo» entero desde 380 px (José: la cabecera con el logo, ES/EN y el botón completo); más angosto, «En vivo» */
@media (max-width: 379px) {
  .acceso-boton .largo { display: none; }
  .acceso-boton .corto { display: inline; }
}
@media (max-width: 374px) {
  .botones-fila { gap: 48px; }
  .mandos { gap: 8px; }
  .m, .m.pild, .m.colgar, #m-conoceme .cm-icono { width: 50px; height: 50px; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .entrante { padding: 8px 0; }
  .entrante-rotulo { margin-top: 14px; }
  .nombre { font-size: 52px; }
}

/* =========================================================== horizontal en el teléfono (alto ≤ 500 px) */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --barra-h: 0px; }
  /* la portada en dos columnas: el retrato y el nombre a un lado, los botones al otro (nada tapa Contestar) */
  .portada { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "cabeza cabeza" "entrante botones"; align-items: center; column-gap: 24px; }
  .portada-cabeza { grid-area: cabeza; }
  .entrante { grid-area: entrante; padding: 0; }
  .retrato { width: clamp(84px, 24vh, 112px); }
  .entrante-rotulo { margin-top: 12px; }
  .nombre { font-size: clamp(40px, 12vh, 56px); margin-top: 4px; }
  .llama { font-size: 20px; margin-top: 2px; }
  .portada-lema { display: none; }
  .portada-botones { grid-area: botones; }
  /* la llamada: el marco 3:2 a todo el alto y un riel vertical de botones que se oculta solo a los 3 s */
  body:not([data-estado="intro"]):not([data-estado="portada"]) .barra { display: none; }
  .llamada { top: 0; flex-direction: row; gap: 14px; padding: max(8px, var(--st)) max(12px, var(--sr)) max(8px, var(--sb)) max(12px, var(--sl)); }
  .marco-envoltura { width: auto; }
  .marco { width: auto; aspect-ratio: 3 / 2; height: calc(100dvh - 16px - var(--st) - var(--sb)); max-width: calc(100vw - 96px - var(--sl) - var(--sr)); }
  .marco video { object-position: 50% 32%; }
  .tu { width: 84px; aspect-ratio: 3 / 2; top: 50px; }
  .tu span { display: none; }
  .rotulo { max-width: 60%; }
  .rotulo-ojo { display: none; }
  .rotulo-titulo { font-size: 20px; }
  .rotulo-punto { font-size: 13px; }
  .subtitulo .linea { font-size: 15px; }
  .mandos { flex-direction: column; gap: 8px; padding: 6px; border-radius: 30px; transition: opacity 0.5s var(--curva), transform 0.5s var(--curva); }
  body.riel-oculto.mandos-listos .mandos { opacity: 0; transform: translateX(8px); }
  .m, .m.pild, .m.colgar, #m-conoceme .cm-icono { width: 46px; height: 46px; }
  .m.pild { padding: 0; justify-content: center; }
  .m.pild .pild-texto, .m.pild kbd { display: none; }
  #m-conoceme { background: none; }
  #m-conoceme .cm-icono { background: rgba(242, 236, 224, 0.09); }
  #m-conoceme .cm-icono svg { fill: var(--tinta); width: 18px; height: 18px; }
  #m-conoceme .cm-icono .i-pausa { fill: none; stroke: var(--tinta); stroke-width: 2.2; }
  .hoja { max-height: 92dvh; }
  .acceso-pie { position: sticky; bottom: 0; z-index: 1; padding: 10px 0 max(10px, var(--sb)); background: linear-gradient(180deg, rgba(11, 10, 13, 0), rgba(11, 10, 13, 0.97) 14px); }
  .acceso[open] { grid-template-columns: 1fr; width: min(560px, calc(100% - 32px)); }
  .acceso-arte { display: none; }
  /* la tarjeta final en dos columnas: ella y el título a la izquierda, el formulario a la derecha y sin pie fijo
     (QA r1, 844x390: el «Solicitar acceso» fijo tapaba WhatsApp y el correo, y no se veía ningún campo) */
  .final { align-items: flex-start; padding-top: max(12px, var(--st)); padding-bottom: max(12px, var(--sb)); }
  .final-tarjeta { width: min(780px, 100%); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-rows: 1fr repeat(6, auto) 1fr; column-gap: 28px; text-align: left; }
  .final-tarjeta > * { grid-column: 1; }
  .final-retrato { grid-row: 2; }
  .final-voz { grid-row: 3; }
  .final-ojo { grid-row: 4; }
  .final h2 { grid-row: 5; }
  .final-texto { grid-row: 6; }
  .final-otras { grid-row: 7; }
  .final-form { grid-column: 2; grid-row: 1 / -1; align-self: center; margin-top: 0; }
  .final-retrato { width: 56px; height: 56px; margin: 0; }
  .final-voz { margin: 8px 0 0; }
  .final-ojo { margin-top: 10px; }
  .final h2 { font-size: 28px; margin-top: 6px; }
  .final-texto { font-size: 13.5px; line-height: 1.45; margin-top: 8px; }
  .final-otras { justify-content: flex-start; margin-top: 10px; }
  .final .acceso-pie { position: static; margin: 0; padding: 10px 0 0; background: none; }
}

/* =========================================================== pantalla completa (app.js: la API o, en el iPhone, CSS) */
/* El botón: un ícono en el HUD; en pantalla completa, «Salir» con su ícono, bien visible. */
.completa-btn .i-salir, .completa-btn .completa-texto:empty { display: none; }
body.completa .completa-btn { width: auto; padding: 0 14px 0 11px; gap: 7px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(7, 6, 10, 0.72); box-shadow: inset 0 0 0 1px rgba(242, 236, 224, 0.28); font-size: 13px; font-weight: 700; color: var(--tinta); }
body.completa .completa-btn .i-entrar { display: none; }
body.completa .completa-btn .i-salir { display: block; }
/* La llamada ocupa la pantalla entera: el marco sin bordes y todo lo demás encima (HUD arriba, subtítulos y botones
   abajo, en la zona del pulgar), respetando las zonas seguras; sin la cabecera, la constelación ni el anillo. */
body.completa .barra, body.completa .orbita, body.completa #voz { display: none; }
body.completa .escena { position: fixed; inset: 0; z-index: 30; background: #000; }
body.completa .llamada { position: fixed; inset: 0; top: 0; padding: 0; gap: 0; overflow: hidden; }
body.completa .marco-envoltura { position: absolute; inset: 0; width: auto; max-width: none; }
body.completa .marco { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
body.completa .marco video { object-position: 50% 30%; }
body.completa .zona-arriba { padding: max(14px, var(--st)) max(14px, var(--sr)) 0 max(14px, var(--sl)); }
body.completa .tu { top: calc(max(14px, var(--st)) + 44px); right: max(14px, var(--sr)); }
body.completa .subtitulo { bottom: calc(max(16px, var(--sb)) + 86px); }
body.completa .globo { bottom: calc(max(16px, var(--sb)) + 86px + 3.4em); }
body.completa .mandos { position: absolute; z-index: 5; left: 50%; bottom: max(16px, var(--sb)); transform: translateX(-50%); background: rgba(20, 18, 24, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 8px; }
body.completa .vineta { background: linear-gradient(180deg, rgba(7, 6, 10, 0.55) 0%, rgba(7, 6, 10, 0) 18%, rgba(7, 6, 10, 0) 58%, rgba(7, 6, 10, 0.8) 100%); }
.llamada:fullscreen { background: #000; }
/* el celular tumbado en pantalla completa: la barra en riel a la derecha, como fuera de ella */
@media (orientation: landscape) and (max-height: 500px) {
  body.completa .mandos { left: auto; right: max(10px, var(--sr)); top: 50%; bottom: auto; transform: translateY(-50%); }
  body.completa.riel-oculto.mandos-listos .mandos { transform: translate(8px, -50%); }
  body.completa .subtitulo { bottom: max(14px, var(--sb)); right: 90px; }
  body.completa .tu { display: none; }
}

/* pantallas táctiles: nada de lo que se toca baja de 44 px; sin capas pesadas */
@media (pointer: coarse) {
  .segmentos { height: 20px; margin: -10px 0 -6px; }
  .hud-btn { width: 40px; height: 40px; }
  .rotulo-btn { height: 44px; }
}

/* movimiento reducido: sin Ken Burns, sin barras ni halos; solo fundidos de 200 ms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; transition-delay: 0s !important; }
  .fondo-img { animation: none !important; }
  .ondas, .intro-raya { display: none; }
  .cine { transition: none !important; }
  .intro.abierta { opacity: 0; transition: opacity 0.2s ease; }
  .redondo.si .redondo-circulo, .redondo.si svg { animation: none !important; }
}
