/* AURA te recibe — /bienvenida. Oscuro, cálido, de cine: negro tinta, oro y ámbar; serif de título + sans limpia. */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --negro: #07060a;
  --noche: #0e0c11;
  --tinta: #f2ece0;
  --suave: rgba(242, 236, 224, 0.68);
  --tenue: rgba(242, 236, 224, 0.58);
  --linea: rgba(242, 236, 224, 0.12);
  --linea-fuerte: rgba(242, 236, 224, 0.22);
  --oro: #d4a656;
  --oro-claro: #f3d18e;
  --oro-hondo: #8a6326;
  --ambar: #eaa441;
  --jade: #3ed69c;
  --rojo: #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: 72px;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
  --curva-fuerte: cubic-bezier(0.76, 0, 0.24, 1);
  /* el ancho del marco en escritorio: caben la llamada, el mando, el panel y la caja de preguntas sin encimarse */
  --mw: clamp(380px, min(44vw, (100svh - 540px) * 1.5), 640px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--negro); color: var(--tinta); font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 36%, rgba(212, 166, 86, 0.07), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(234, 164, 65, 0.06), transparent 60%),
    var(--negro);
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -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; }
#estrellas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grano {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.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); } }

/* =========================================================== barra */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8; height: calc(var(--barra-h) + env(safe-area-inset-top));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: env(safe-area-inset-top) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
  transition: opacity 0.9s var(--curva) 0.5s, transform 0.9s var(--curva) 0.5s;
}
.marca { display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.34em; 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)); }
.estado { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tenue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.estado .sep { opacity: 0.5; }
.acciones { justify-self: end; display: flex; align-items: center; gap: 10px; }
.idiomas { position: relative; display: flex; padding: 3px; margin-right: 4px; border: 1px solid var(--linea); border-radius: 3px; background: rgba(14, 12, 17, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.idiomas button { position: relative; z-index: 1; border: 0; background: none; width: 40px; height: 30px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--tenue); transition: color 0.35s var(--curva); border-radius: 2px; }
.idiomas button[aria-pressed="true"] { color: var(--oro-claro); }
.idiomas button:hover:not([aria-pressed="true"]) { color: var(--tinta); }
.idiomas-fondo { position: absolute; top: 3px; left: 3px; width: 40px; height: 30px; border-radius: 2px; background: rgba(243, 209, 142, 0.12); box-shadow: inset 0 0 0 1px rgba(243, 209, 142, 0.5); transition: transform 0.45s var(--curva); }
.idiomas[data-l="en"] .idiomas-fondo { transform: translateX(40px); }
.unete-boton {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 3px;
  color: var(--suave); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  transition: color 0.35s var(--curva);
}
.unete-boton::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px; background: var(--oro-claro); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--curva); }
.unete-boton:hover, .unete-boton:focus-visible { color: var(--oro-claro); }
.unete-boton:hover::after, .unete-boton:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.acceso-boton {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px 0 15px; border: 0; border-radius: 3px; overflow: hidden; isolation: isolate; white-space: nowrap;
  background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: #1a1206; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 8px 26px -6px rgba(212, 166, 86, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.3s var(--curva), box-shadow 0.3s var(--curva);
}
.acceso-boton::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-120%); animation: barrido 6s var(--curva) infinite 3s; }
.acceso-boton .led { background: #0d5a3a; box-shadow: 0 0 0 3px rgba(13, 90, 58, 0.18); }
.acceso-boton .corto { display: none; }
.acceso-boton:active { transform: scale(0.97); }
.acceso-boton:hover, .acceso-boton:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 34px -6px rgba(212, 166, 86, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.menu-boton { width: 40px; height: 40px; border: 1px solid var(--linea-fuerte); border-radius: 3px; background: rgba(14, 12, 17, 0.5); display: grid; place-items: center; color: var(--tinta); }
.menu-boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* =========================================================== escena (escritorio) */
.escena { position: fixed; inset: 0; z-index: 2; transition: opacity 0.8s var(--curva); }
.llamada { position: absolute; left: 50%; top: calc(var(--barra-h) + env(safe-area-inset-top) + 18px); width: var(--mw); transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; gap: 12px; }
.marco-envoltura { position: relative; margin-bottom: 16px; }
#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: 6px; overflow: hidden; background: #0c0a0d; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(243, 209, 142, 0.2), 0 40px 100px -20px rgba(0, 0, 0, 0.85), 0 0 140px -30px rgba(212, 166, 86, 0.28);
}
.marco video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
#habla { opacity: 0; transition: opacity 0.55s 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;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.45) 0%, rgba(7, 6, 10, 0) 22%, rgba(7, 6, 10, 0) 52%, rgba(7, 6, 10, 0.82) 100%), radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(7, 6, 10, 0.5) 100%); }
.esquina { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(243, 209, 142, 0.7); pointer-events: none; }
.e1 { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.e2 { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.e3 { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.e4 { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.placa { position: absolute; top: 24px; left: 26px; display: flex; align-items: baseline; gap: 10px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.placa .pulso { align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 10px var(--jade); animation: led 2.2s ease-in-out infinite; }
.placa-nombre { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.22em; color: var(--tinta); }
.placa-rol { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--suave); }
.sello-cap { position: absolute; top: 26px; right: 30px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--oro-claro); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); font-variant-numeric: tabular-nums; animation: sello 0.7s var(--curva) both; }
@keyframes sello { from { opacity: 0; transform: translateX(10px); letter-spacing: 0.5em; } }
.cargando { position: absolute; top: 28px; right: 28px; display: flex; gap: 5px; }
.sello-cap:not([hidden]) ~ .cargando { top: 50px; }
.cargando span { width: 5px; height: 5px; border-radius: 50%; background: var(--oro-claro); animation: punto 1s infinite ease-in-out; }
.cargando span:nth-child(2) { animation-delay: 0.15s; } .cargando span:nth-child(3) { animation-delay: 0.3s; }
@keyframes punto { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.carga-linea { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 2; }
.carga-linea::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--oro-claro), transparent); box-shadow: 0 0 12px var(--oro); animation: carga 1.3s var(--curva-fuerte) infinite; }
.cargando:not([hidden]) + .carga-linea { opacity: 1; transition-delay: 0.25s; }
@keyframes carga { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.cargando { opacity: 0; animation: aparecer 0.3s ease 0.25s forwards; }
@keyframes aparecer { to { opacity: 1; } }

/* subtítulos karaoke */
.subtitulo { position: absolute; left: 7%; right: 7%; bottom: clamp(18px, 3.2vw, 32px); display: flex; justify-content: center; align-items: flex-end; min-height: 3em; text-align: center; pointer-events: none; }
.subtitulo .linea {
  display: block; max-width: 34em; font-size: clamp(15px, 1.3vw, 19.5px); font-weight: 500; line-height: 1.45; letter-spacing: 0.005em; 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.42s 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.5); transition: color 0.22s ease, text-shadow 0.22s ease; }
.subtitulo .w.dicha { color: var(--tinta); }
.subtitulo .w.ahora { color: var(--oro-claro); text-shadow: 0 0 18px rgba(243, 209, 142, 0.55), 0 1px 2px rgba(0, 0, 0, 0.9); }
.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); padding: 10px 18px; border-radius: 3px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }

/* =========================================================== el mando: «Conóceme en 4 minutos» y la presentación */
.mando { display: flex; justify-content: center; min-height: 52px; animation: subir 0.8s var(--curva) both; }
@keyframes subir { from { opacity: 0; transform: translateY(10px); } }
.conoceme {
  --ang: 0deg; position: relative; display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px 0 5px; border-radius: 999px; border: 1px solid transparent; text-align: left;
  background: linear-gradient(180deg, rgba(30, 25, 26, 0.92), rgba(12, 10, 14, 0.92)) padding-box, conic-gradient(from var(--ang), rgba(243, 209, 142, 0.2) 0deg, rgba(243, 209, 142, 0.2) 220deg, var(--oro-claro) 290deg, rgba(243, 209, 142, 0.2) 340deg) border-box;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9); animation: borde-gira 5s linear infinite; transition: transform 0.35s var(--curva), box-shadow 0.35s var(--curva);
}
.conoceme:hover, .conoceme:focus-visible { transform: translateY(-2px); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.95), 0 0 40px -10px rgba(212, 166, 86, 0.5); }
.conoceme:active { transform: scale(0.97); }
/* tras el saludo: el siguiente paso evidente (más alto, más luz, un pulso que se apaga solo) */
.conoceme.invita {
  height: 58px; padding-right: 30px; gap: 16px;
  background: linear-gradient(180deg, rgba(58, 44, 24, 0.96), rgba(22, 17, 13, 0.96)) padding-box, conic-gradient(from var(--ang), rgba(243, 209, 142, 0.35) 0deg, rgba(243, 209, 142, 0.35) 200deg, #fff1cf 290deg, rgba(243, 209, 142, 0.35) 340deg) border-box;
  animation: borde-gira 3s linear infinite, invita 2.4s ease-out 0.5s 4;
}
.conoceme.invita .cm-icono { width: 46px; height: 46px; }
.conoceme.invita .cm-icono::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--oro-claro); animation: ping 2.4s ease-out 0.5s 4 both; pointer-events: none; }
.conoceme.invita .cm-texto b { font-size: 16.5px; color: #fff3d6; }
@keyframes invita { 0% { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), 0 0 0 0 rgba(243, 209, 142, 0.42); } 70%, 100% { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), 0 0 0 18px rgba(243, 209, 142, 0); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.55); opacity: 0; } }
.cm-icono { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbe3ad, var(--oro) 55%, var(--oro-hondo)); box-shadow: 0 6px 18px rgba(212, 166, 86, 0.4); }
.cm-aro { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); overflow: visible; }
.cm-aro circle { fill: none; stroke: rgba(243, 209, 142, 0.18); stroke-width: 1.2; }
.cm-aro .cm-avance { stroke: var(--oro-claro); stroke-dasharray: 1 1; stroke-dashoffset: var(--off, 1); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--curva); }
.cm-play { width: 15px; height: 15px; margin-left: 2px; fill: #1a1206; transition: transform 0.35s var(--curva); }
.conoceme:hover .cm-play { transform: scale(1.15); }
.cm-texto { display: flex; flex-direction: column; gap: 1px; }
.cm-texto b { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.cm-texto small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro); font-variant-numeric: tabular-nums; }
.pres { display: flex; align-items: center; gap: 14px; width: 100%; animation: subir 0.6s var(--curva) both; }
.pres-barra { flex: 1; min-width: 0; display: flex; gap: 4px; height: 36px; align-items: center; }
.pres-barra button { position: relative; flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; }
.pres-barra button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(242, 236, 224, 0.14); transition: height 0.3s var(--curva), margin 0.3s var(--curva), background 0.3s; }
.pres-barra button i { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--oro-hondo), var(--oro-claro)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 8px rgba(212, 166, 86, 0.6); transition: height 0.3s var(--curva), margin 0.3s var(--curva); }
.pres-barra button:hover::before, .pres-barra button:focus-visible::before { height: 7px; margin-top: -3.5px; background: rgba(242, 236, 224, 0.26); }
.pres-barra button:hover i, .pres-barra button:focus-visible i { height: 7px; margin-top: -3.5px; }
.pres-barra button.hecho i { --p: 1; }
.pres-barra button:focus-visible { outline-offset: 1px; }
.pres-barra button span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 11px; padding: 5px 9px; border-radius: 3px; background: rgba(14, 12, 17, 0.95); border: 1px solid var(--linea-fuerte); color: var(--tinta); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--curva); z-index: 5; }
.pres-barra button:hover span, .pres-barra button:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.pres-barra button:first-child span { left: 0; transform: translate(0, 4px); }
.pres-barra button:first-child:hover span, .pres-barra button:first-child:focus-visible span { transform: none; }
.pres-barra button:last-child span { left: auto; right: 0; transform: translate(0, 4px); }
.pres-barra button:last-child:hover span, .pres-barra button:last-child:focus-visible span { transform: none; }
.pres-botones { display: flex; align-items: center; gap: 8px; flex: none; }
.pres-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea-fuerte); background: rgba(14, 12, 17, 0.6); display: grid; place-items: center; color: var(--tinta); transition: border-color 0.3s, background 0.3s, transform 0.2s; }
.pres-btn:hover { border-color: var(--oro-claro); background: rgba(40, 30, 18, 0.7); }
.pres-btn:active { transform: scale(0.94); }
.pres-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pres-btn .i-play, #pres-sig svg { fill: currentColor; stroke-width: 1.2; }
#pres-pausa .i-play { display: none; }
.pres.pausada #pres-pausa .i-play { display: block; }
.pres.pausada #pres-pausa .i-pausa { display: none; }
.pres.pausada #pres-pausa { border-color: var(--oro-claro); color: var(--oro-claro); animation: oyendo 1.6s ease-out infinite; }
.pres-cuenta { min-width: 46px; text-align: center; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--oro-claro); font-variant-numeric: tabular-nums; }
.pres-salir { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--linea-fuerte); border-radius: 3px; background: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--suave); transition: color 0.3s, border-color 0.3s; }
.pres-salir svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pres-salir:hover { color: var(--tinta); border-color: var(--oro); }
body.presentando .orbita .tema { opacity: 0.38 !important; }
body.presentando .orbita .tema:hover, body.presentando .orbita .tema:focus-visible { opacity: 1 !important; }

/* =========================================================== panel de puntos (temas) y rótulo de capítulo */
.panel {
  position: relative; display: flex; gap: 22px; padding: 16px 22px 18px;
  background: linear-gradient(180deg, rgba(18, 15, 20, 0.82), rgba(12, 10, 14, 0.66)); border: 1px solid var(--linea); border-top-color: rgba(243, 209, 142, 0.35); border-radius: 4px;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  animation: panel-entra 0.7s var(--curva) both;
}
@keyframes panel-entra { from { opacity: 0; transform: translateY(10px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.panel-cuerpo { flex: 1; min-width: 0; }
.panel-numero { display: none; }
.panel-cabeza { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.panel-ojo { font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--oro); font-variant-numeric: tabular-nums; }
.panel h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 25px; line-height: 1.1; color: var(--tinta); }
.panel-barra { height: 1px; margin: 12px 0; background: var(--linea); overflow: hidden; }
.panel-barra i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--oro-hondo), var(--oro-claro)); box-shadow: 0 0 10px var(--oro); }
.panel ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; counter-reset: p; }
.panel li { counter-increment: p; position: relative; padding-left: 30px; font-size: 13.5px; line-height: 1.45; color: var(--suave); opacity: 0.4; transform: translateY(5px); transition: opacity 0.6s var(--curva), transform 0.6s var(--curva), color 0.6s var(--curva); }
.panel li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: -1px; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--oro); }
.panel li.visto { opacity: 1; transform: none; color: var(--tinta); }
.panel .entrar {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; height: 42px; padding: 0 20px; border-radius: 3px; text-decoration: none;
  background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: #1a1206; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(212, 166, 86, 0.32); transition: transform 0.3s var(--curva), box-shadow 0.3s var(--curva);
}
.panel .entrar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel .entrar:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212, 166, 86, 0.45); }

/* el rótulo de capítulo: número grande, título que entra por palabras, puntos escalonados al ritmo de la voz */
.panel.capitulo .panel-numero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 86px; padding-right: 20px; border-right: 1px solid var(--linea);
  font-family: var(--display); line-height: 0.85; overflow: hidden;
}
.panel-numero b { font-size: 62px; font-weight: 500; background: linear-gradient(180deg, #fff1cf, var(--oro) 70%, var(--oro-hondo)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: numero 0.9s var(--curva) both 0.1s; font-variant-numeric: tabular-nums; }
.panel-numero small { margin-top: 6px; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; color: var(--tenue); animation: numero 0.9s var(--curva) both 0.2s; }
@keyframes numero { from { transform: translateY(70%); opacity: 0; filter: blur(4px); } }
/* la firma de la casa en el rótulo del capítulo: el OG pequeño, a la derecha */
.panel.capitulo .panel-cabeza { padding-right: 40px; }
.panel.capitulo::after { content: ""; position: absolute; top: 15px; right: 18px; width: 28px; height: 15px; background: url("/bienvenida/og-logo.png") center / contain no-repeat; opacity: 0.6; pointer-events: none; }
.panel.capitulo h2 .pal { display: inline-block; animation: palabra 0.7s var(--curva) both; animation-delay: calc(0.18s + var(--k) * 0.06s); }
@keyframes palabra { from { opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(4px); } }
.panel.capitulo .panel-barra i { transition: transform 0.25s linear; }
.panel.capitulo li { transform: translateX(-10px); }
.panel.capitulo li.visto { transform: none; }
.panel.capitulo li.visto::before { animation: brillo-num 1.2s var(--curva) 1; }
@keyframes brillo-num { 0% { text-shadow: 0 0 0 transparent; } 30% { text-shadow: 0 0 14px var(--oro-claro); color: var(--oro-claro); } 100% { text-shadow: none; } }

/* cap-camino: una línea de tiempo que se ilumina etapa por etapa */
.panel.camino ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; position: relative; padding-top: 30px; margin-top: -2px; }
.panel.camino ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 1px; background: var(--linea-fuerte); }
.panel.camino ol::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 1px; background: linear-gradient(90deg, var(--oro-hondo), var(--oro-claro)); box-shadow: 0 0 10px var(--oro); transform-origin: left; transform: scaleX(var(--tl, 0)); transition: transform 0.4s linear; }
.panel.camino li, .panel.camino li.visto { padding-left: 0; transform: none; }
.panel.camino li::before { content: ""; position: absolute; left: 0; top: -26px; width: 13px; height: 13px; border-radius: 50%; background: var(--negro); border: 1px solid var(--linea-fuerte); transition: background 0.5s, border-color 0.5s, box-shadow 0.5s; }
.panel.camino li.visto::before { background: var(--oro-claro); border-color: var(--oro-claro); box-shadow: 0 0 0 4px rgba(243, 209, 142, 0.16), 0 0 16px var(--oro); animation: etapa 1.4s var(--curva); }
.panel.camino li:last-child.visto::before { background: radial-gradient(circle, #fff, var(--oro-claro)); box-shadow: 0 0 0 5px rgba(243, 209, 142, 0.2), 0 0 26px var(--ambar); }
@keyframes etapa { 0% { transform: scale(0.4); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
.panel.camino .etapa { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oro); margin-bottom: 4px; }
.panel.camino .que { display: block; font-size: 13px; line-height: 1.4; }
.panel.camino .panel-numero { display: none; }

/* cap-habilidades: rótulo especial «En camino a la AGI» (fuera del video: nada tapa la cara ni las manos) */
.panel.habilidades { border-top-color: var(--ambar); }
.panel.habilidades .panel-ojo { background: linear-gradient(100deg, var(--oro) 0%, #fff3d6 50%, var(--oro) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo-nombre 3.5s ease-in-out infinite; }
.panel.habilidades ol { display: flex; flex-wrap: wrap; gap: 8px; }
.panel.habilidades li { padding: 7px 12px 7px 30px; border: 1px solid var(--linea); border-radius: 3px; background: rgba(255, 255, 255, 0.02); }
.panel.habilidades li::before { left: 10px; top: 6px; font-size: 14px; }
.panel.habilidades li.visto { border-color: rgba(243, 209, 142, 0.45); background: rgba(212, 166, 86, 0.08); }

/* =========================================================== órbita de temas (escritorio) */
.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.24); 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; filter: drop-shadow(0 0 4px var(--oro)); animation: cometa 9s linear infinite; opacity: 0.8; }
@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: 14px; 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: 4px;
}
.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%); }
.tema:focus-visible { outline-offset: 0; }
.nodo { position: relative; flex: none; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(40, 33, 30, 0.9), rgba(12, 10, 14, 0.92)); 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.32), 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; filter: drop-shadow(0 0 3px var(--oro)); transition: stroke-dashoffset 0.25s linear; }
.nodo .icono { position: relative; width: 30px; height: 30px; 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; }
.rotulo { display: flex; flex-direction: column; gap: 3px; max-width: 168px; }
.rotulo .num { font-size: 10px; font-weight: 700; letter-spacing: 0.26em; color: var(--oro); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.tema.izq .rotulo .num { justify-content: flex-end; }
.rotulo .num::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.6; transition: width 0.5s var(--curva); }
.tema.izq .rotulo .num::after { order: -1; }
.rotulo .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; }
.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 .rotulo .num::after, .tema.activo .rotulo .num::after { width: 28px; }
.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.activo .nodo::before { animation: halo 2.4s ease-in-out infinite; }
.tema.visto:not(.activo) .aro .pista { stroke: rgba(243, 209, 142, 0.42); }
@keyframes dibujar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes halo { 50% { transform: scale(1.18); opacity: 0.6; } }

/* =========================================================== preguntar */
.pregunta {
  position: fixed; z-index: 9; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); width: min(680px, calc(100% - 32px)); transform: translateX(-50%) translateY(14px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; opacity: 0; pointer-events: none; transition: opacity 0.8s var(--curva), transform 0.8s var(--curva);
}
.pregunta.visible { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.sugerencias { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 8px; min-height: 36px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sugerencias::-webkit-scrollbar { display: none; }
.sugerencias button { flex: none; }
@media (min-width: 900px) { .sugerencias { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); padding: 2px 16px; } }
.sugerencias button {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; border: 1px solid var(--linea-fuerte); background: rgba(14, 12, 17, 0.66); border-radius: 3px; padding: 8px 14px 8px 12px;
  font-size: 13px; color: var(--suave); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s var(--curva), border-color 0.3s var(--curva), background 0.3s var(--curva), transform 0.3s var(--curva);
  animation: chip 0.6s var(--curva) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms);
}
.sugerencias button::before { content: ""; width: 5px; height: 5px; flex: none; transform: rotate(45deg); background: var(--oro); box-shadow: 0 0 6px var(--oro); }
.sugerencias button.cap { color: var(--oro-claro); border-color: rgba(243, 209, 142, 0.32); font-family: var(--display); font-style: italic; font-size: 15px; padding-top: 6px; padding-bottom: 6px; }
.sugerencias button.cap::before { width: 0; height: 0; transform: none; background: none; box-shadow: none; border-left: 7px solid var(--oro-claro); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.sugerencias button:hover, .sugerencias button:focus-visible { color: var(--tinta); border-color: rgba(243, 209, 142, 0.6); background: rgba(40, 30, 18, 0.72); transform: translateY(-2px); }
@keyframes chip { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.caja {
  position: relative; display: flex; align-items: center; gap: 6px; height: 60px; padding: 8px; border-radius: 5px;
  background: linear-gradient(180deg, rgba(24, 20, 24, 0.86), rgba(13, 11, 15, 0.86)); border: 1px solid var(--linea-fuerte);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.35s var(--curva), box-shadow 0.35s var(--curva);
}
.caja:focus-within { border-color: rgba(243, 209, 142, 0.6); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8), 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); }
.caja button { flex: none; width: 44px; height: 44px; border-radius: 3px; border: 0; display: grid; place-items: center; background: transparent; transition: background 0.3s var(--curva), transform 0.2s var(--curva); }
.caja button:active { transform: scale(0.94); }
.caja button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.faq-abrir, .mic { color: var(--suave); }
.faq-abrir:hover, .mic:hover { background: rgba(255, 255, 255, 0.06); color: var(--tinta); }
.faq-abrir { box-shadow: 1px 0 0 var(--linea); border-radius: 3px 0 0 3px !important; }
.enviar { background: linear-gradient(135deg, var(--oro-claro), var(--oro)) !important; color: #1a1206; box-shadow: 0 6px 20px rgba(212, 166, 86, 0.3); }
.enviar svg { transition: transform 0.3s var(--curva); stroke-width: 2 !important; }
.enviar:hover svg { transform: translateX(2px); }
.mic.oyendo { color: #1a1206; background: var(--ambar) !important; animation: oyendo 1.3s ease-out infinite; }
@keyframes oyendo { 0% { box-shadow: 0 0 0 0 rgba(234, 164, 65, 0.6); } 100% { box-shadow: 0 0 0 14px rgba(234, 164, 65, 0); } }
.aviso { margin: 0; text-align: center; font-size: 10.5px; letter-spacing: 0.12em; color: rgba(242, 236, 224, 0.55); }
/* con texto escrito, la flecha de enviar se enciende */
.caja:has(input:not(:placeholder-shown)) .enviar { box-shadow: 0 0 0 4px rgba(243, 209, 142, 0.16), 0 8px 24px rgba(212, 166, 86, 0.45); }

/* =========================================================== hojas: preguntas frecuentes y menú */
dialog { color: var(--tinta); }
dialog::backdrop { background: rgba(4, 3, 6, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hoja {
  width: min(760px, calc(100% - 32px)); max-height: min(80svh, 720px); padding: 0; border: 1px solid var(--linea-fuerte); border-top-color: rgba(243, 209, 142, 0.4); border-radius: 5px;
  background: linear-gradient(180deg, rgba(22, 18, 22, 0.97), rgba(10, 9, 12, 0.97)); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); overflow: hidden;
}
.hoja[open] { display: flex; flex-direction: column; animation: hoja-entra 0.5s 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: 20px 24px 14px; border-bottom: 1px solid var(--linea); }
.hoja h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 28px; }
.hoja-cerrar { flex: none; width: 40px; height: 40px; border: 1px solid var(--linea-fuerte); border-radius: 3px; background: none; display: grid; place-items: center; color: var(--suave); transition: color 0.25s, border-color 0.25s; }
.hoja-cerrar:hover { color: var(--tinta); border-color: var(--oro); }
.hoja-cerrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.faq-cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 18px; }
.faq-cuerpo h3 { margin: 16px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--oro); }
.faq-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.faq-lista button { width: 100%; display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 11px 10px; border: 0; border-bottom: 1px solid var(--linea); background: none; font-size: 14px; color: var(--suave); transition: color 0.25s, background 0.25s, padding 0.35s var(--curva); }
.faq-lista button span { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--oro); font-variant-numeric: tabular-nums; flex: none; }
.faq-lista button:hover, .faq-lista button:focus-visible { color: var(--tinta); background: rgba(212, 166, 86, 0.07); padding-left: 16px; }
.menu { width: min(420px, calc(100% - 24px)); margin: auto auto max(12px, env(safe-area-inset-bottom)); }
.menu[open] { animation: menu-entra 0.5s var(--curva); }
@keyframes menu-entra { from { opacity: 0; transform: translateY(40px); } }
.menu-lista { display: grid; padding: 10px 16px 18px; }
.menu-lista button { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--linea); background: none; text-align: left; font-family: var(--display); font-size: 22px; color: var(--tinta); }
.menu-lista .menu-num { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--oro); }
.menu-lista .menu-acceso { justify-content: center; margin-bottom: 8px; border: 0; border-radius: 3px; background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: #1a1206; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.menu-lista .menu-acceso .led { background: #0d5a3a; box-shadow: none; }

/* =========================================================== solicitar acceso en vivo */
.acceso {
  width: min(860px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--linea-fuerte); border-top-color: rgba(243, 209, 142, 0.5); border-radius: 6px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 18, 22, 0.97), rgba(10, 9, 12, 0.98)); box-shadow: 0 50px 140px rgba(0, 0, 0, 0.85), 0 0 120px -40px rgba(212, 166, 86, 0.4);
}
.acceso[open] { display: grid; grid-template-columns: 0.85fr 1fr; animation: acceso-entra 0.7s var(--curva); }
@keyframes acceso-entra { from { opacity: 0; transform: translateY(20px) scale(0.97); clip-path: inset(10% 0 10% 0 round 6px); } to { clip-path: inset(0 0 0 0 round 6px); } }
.acceso.exito::backdrop { background: linear-gradient(180deg, transparent 40%, rgba(4, 3, 6, 0.7)); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* al terminar, el panel baja: AURA da las gracias en el video, a la vista */
.acceso.exito[open] { grid-template-columns: 1fr; width: min(560px, calc(100% - 32px)); margin: auto auto max(24px, env(safe-area-inset-bottom)); animation: hoja-entra 0.6s var(--curva); }
.acceso.exito .acceso-arte { display: none; }
.acceso.exito .acceso-cuerpo { padding: 26px 28px; }
.acceso.exito .acceso-listo { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.acceso.exito .listo-marca { width: 56px; height: 56px; }
.acceso.exito .acceso-listo h2 { flex: 1; min-width: 220px; font-size: 26px; padding-right: 36px; }
.acceso-cerrar { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(10, 9, 12, 0.6); }
.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.15); animation: arte 14s ease-in-out infinite alternate; }
@keyframes arte { to { transform: scale(1.25) translate(-1.5%, 1%); } }
.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: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tinta); }
.acceso-cuerpo { position: relative; padding: 38px 40px 34px 30px; overflow-y: auto; }
.acceso-ojo { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--oro); }
.acceso h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.02; text-wrap: balance; }
.acceso-marca { position: absolute; z-index: 1; left: 22px; top: 22px; display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em; color: var(--tinta); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
.acceso-marca img { position: static; width: auto; height: 18px; transform: none; animation: none; object-fit: contain; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.7)); }
.acceso-texto { margin: 12px 0 22px; font-size: 14px; line-height: 1.55; color: var(--suave); max-width: 34em; }
.campo { position: relative; margin-bottom: 12px; }
.campo input {
  width: 100%; height: 56px; padding: 22px 14px 6px; border: 1px solid var(--linea-fuerte); border-radius: 4px; background: rgba(255, 255, 255, 0.03); color: var(--tinta); font: inherit; font-size: 16px; outline: none;
  transition: border-color 0.3s var(--curva), background 0.3s var(--curva), box-shadow 0.3s var(--curva);
}
.campo label { position: absolute; left: 15px; top: 18px; font-size: 15px; color: var(--tenue); pointer-events: none; transform-origin: left top; transition: transform 0.3s var(--curva), color 0.3s; }
.campo input:focus { border-color: var(--oro-claro); background: rgba(212, 166, 86, 0.05); box-shadow: 0 0 0 4px rgba(212, 166, 86, 0.12); }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.72); color: var(--oro); letter-spacing: 0.06em; }
.campo input[aria-invalid="true"] { border-color: var(--rojo); }
.trampa { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.acceso-error { min-height: 1.4em; margin: 2px 0 10px; font-size: 13.5px; color: var(--rojo); }
.acceso-error:empty { min-height: 0; margin: 0 0 6px; }
.acceso-enviar {
  position: relative; width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 4px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: #1a1206; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 14px 34px -8px rgba(212, 166, 86, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.3s var(--curva), box-shadow 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 { transform: translateY(-1px); box-shadow: 0 20px 44px -8px rgba(212, 166, 86, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.acceso-enviar:hover svg { transform: translateX(3px); }
.acceso-enviar .giro { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(26, 18, 6, 0.25); border-top-color: #1a1206; animation: girar 0.8s linear infinite; }
.acceso-enviar.enviando { pointer-events: none; opacity: 0.85; }
.acceso-enviar.enviando .giro { display: block; }
.acceso-enviar.enviando svg { display: none; }
.acceso-listo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; gap: 18px; outline: none; animation: subir 0.7s var(--curva) both; }
.listo-marca { width: 74px; height: 74px; fill: none; stroke: var(--oro-claro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(212, 166, 86, 0.6)); }
.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(28px, 3.2vw, 36px); }
.acceso-volver {
  height: 50px; padding: 0 24px; border: 1px solid rgba(243, 209, 142, 0.6); border-radius: 4px; background: none; color: var(--oro-claro); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.acceso-volver:hover, .acceso-volver:focus-visible { background: var(--oro-claro); color: #1a1206; }

/* =========================================================== portada: la llamada entrante */
.portada {
  position: fixed; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(84px, calc(env(safe-area-inset-bottom) + 72px));
  background: radial-gradient(60% 50% at 50% 40%, rgba(212, 166, 86, 0.09), transparent 70%), radial-gradient(100% 100% at 50% 50%, rgba(7, 6, 10, 0.2), rgba(7, 6, 10, 0.75));
  transition: opacity 0.8s var(--curva), visibility 0.8s;
}
.portada.fuera { opacity: 0; visibility: hidden; pointer-events: none; }
.entrante { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(18px, 3.5vh, 34px); font-size: 11px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--suave); }
.tenue { color: var(--tenue); font-weight: 500; }
.timbre { position: relative; width: clamp(200px, 30vh, 270px); aspect-ratio: 1; display: grid; place-items: center; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial circle { fill: none; transform-origin: 100px 100px; }
.dial-ticks { stroke: rgba(243, 209, 142, 0.35); stroke-width: 3; stroke-dasharray: 0.6 4.4; animation: girar 60s linear infinite; }
.dial-arco { stroke: var(--oro-claro); stroke-width: 1.2; stroke-dasharray: 18 82; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--oro)); animation: girar 3.2s var(--curva-fuerte) infinite; }
.dial-fino { stroke: rgba(243, 209, 142, 0.18); stroke-width: 1; }
@keyframes girar { to { transform: rotate(360deg); } }
.ondas { position: absolute; inset: 18%; }
.ondas i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243, 209, 142, 0.6); animation: onda 3.2s 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; } .ondas i:nth-child(4) { animation-delay: 2.4s; }
@keyframes onda { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.75); opacity: 0; } }
.cara { position: absolute; inset: 18%; border-radius: 50%; overflow: hidden; background: #1a1512; box-shadow: 0 0 0 1px rgba(243, 209, 142, 0.7), 0 0 0 6px rgba(7, 6, 10, 0.7), 0 0 0 7px rgba(243, 209, 142, 0.18), 0 30px 80px -10px rgba(0, 0, 0, 0.9), 0 0 90px rgba(212, 166, 86, 0.35); animation: respirar 3.2s ease-in-out infinite; }
.cara img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 38%; transform: scale(1.6); transform-origin: 49% 40%; display: block; }
@keyframes respirar { 50% { transform: scale(1.025); } }
.nombre {
  margin: clamp(18px, 3.4vh, 30px) 0 0; padding-left: 0.32em; font-family: var(--display); font-weight: 500; font-size: clamp(64px, 10vh, 112px); line-height: 0.9; letter-spacing: 0.32em;
  background: linear-gradient(100deg, #b98a40 0%, #f6dfaa 30%, #fff3d6 45%, #e9c27a 60%, #b98a40 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brillo-nombre 6s ease-in-out infinite;
}
@keyframes brillo-nombre { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.llama { margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.llama span:first-child { font-family: var(--display); font-style: italic; font-size: clamp(22px, 3vh, 28px); color: var(--tinta); }
.llama .tenue { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.contestar { display: flex; gap: 16px; margin-top: clamp(26px, 5vh, 46px); flex-wrap: wrap; justify-content: center; }
.contestar-boton {
  --mx: 50%; --my: 50%; --tx: 0px; --ty: 0px;
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 272px; height: 74px; padding: 0 22px 0 11px; border-radius: 999px; text-align: left;
  border: 1px solid transparent; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 25, 26, 0.92), rgba(12, 10, 14, 0.94)) padding-box, conic-gradient(from var(--ang), rgba(243, 209, 142, 0.18) 0deg, rgba(243, 209, 142, 0.18) 220deg, var(--oro-claro) 290deg, rgba(243, 209, 142, 0.18) 340deg) border-box;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate(var(--tx), var(--ty)); transition: transform 0.35s var(--curva), box-shadow 0.4s var(--curva);
  animation: borde-gira 4.5s linear infinite;
}
.contestar-boton:nth-child(2) { animation-delay: -2.25s; }
@keyframes borde-gira { to { --ang: 360deg; } }
.cb-brillo { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(180px circle at var(--mx) var(--my), rgba(243, 209, 142, 0.2), transparent 60%); opacity: 0; transition: opacity 0.4s var(--curva); }
.contestar-boton::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 210, 0.13) 50%, transparent 65%); transform: translateX(-120%); animation: barrido 5s var(--curva) infinite 1.4s; }
.contestar-boton:nth-child(2)::after { animation-delay: 2.1s; }
@keyframes barrido { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.cb-icono { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #7af0c2, var(--jade) 45%, #17946a); box-shadow: 0 0 0 0 rgba(62, 214, 156, 0.5), 0 8px 22px rgba(62, 214, 156, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); animation: llamar-halo 2.2s ease-out infinite; }
.cb-icono svg { width: 22px; height: 22px; fill: #06261a; animation: timbrar 2.2s ease-in-out infinite; }
@keyframes llamar-halo { 0% { box-shadow: 0 0 0 0 rgba(62, 214, 156, 0.45), 0 8px 22px rgba(62, 214, 156, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); } 70%, 100% { box-shadow: 0 0 0 14px rgba(62, 214, 156, 0), 0 8px 22px rgba(62, 214, 156, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); } }
@keyframes timbrar { 0%, 40%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20%, 30% { transform: rotate(14deg); } }
.cb-texto { display: flex; flex-direction: column; gap: 2px; }
.cb-texto b { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; color: var(--tinta); }
.cb-texto small { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--oro-claro); }
.cb-flecha { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linea-fuerte); color: var(--suave); transition: transform 0.4s var(--curva), background 0.4s var(--curva), color 0.4s var(--curva), border-color 0.4s; }
.cb-flecha svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contestar-boton:hover, .contestar-boton:focus-visible { box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.95), 0 0 50px -10px rgba(212, 166, 86, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.contestar-boton:hover .cb-brillo, .contestar-boton:focus-visible .cb-brillo { opacity: 1; }
.contestar-boton:hover .cb-flecha, .contestar-boton:focus-visible .cb-flecha { transform: translateX(4px); background: var(--oro-claro); color: #1a1206; border-color: var(--oro-claro); }
.contestar-boton:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 5px; }
.contestar-boton:active { transform: translate(var(--tx), var(--ty)) scale(0.97); }
.aviso-portada { position: absolute; left: 16px; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0; font-size: 10.5px; line-height: 1.7; letter-spacing: 0.1em; color: rgba(242, 236, 224, 0.56); }

/* la firma arriba de la portada: «Orden Global» sobre la llamada entrante (ahí aterriza el logo de la entrada) */
.portada-marca { position: absolute; top: max(26px, calc(env(safe-area-inset-top) + 14px)); left: 50%; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 12px; font-size: 11px; 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)); }
.portada-marca span { transition: opacity 0.8s var(--curva) 0.5s, letter-spacing 1s var(--curva) 0.5s; }
/* la portada entra escalonada cuando se va la marca */
.portada > :not(.portada-marca) { transition: opacity 0.9s var(--curva), transform 0.9s var(--curva); }
.portada > .entrante { transition-delay: 0.1s; } .portada > .timbre { transition-delay: 0.18s; } .portada > .nombre { transition-delay: 0.3s; }
.portada > .llama { transition-delay: 0.4s; } .portada > .contestar { transition-delay: 0.52s; } .portada > .aviso-portada { transition-delay: 0.7s; }
body.en-intro .portada > :not(.portada-marca) { opacity: 0; transform: translateY(16px); }
body.en-intro .portada-marca span { opacity: 0; letter-spacing: 0.6em; }

/* =========================================================== entrada de marca: Orden Global primero, siempre */
.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; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 36% at 50% 46%, rgba(212, 166, 86, 0.12), transparent 72%), var(--negro); transition: opacity 0.9s var(--curva); }
.intro.saliendo::before { opacity: 0; }
.intro.saliendo .intro-nombre, .intro.saliendo .intro-presenta, .intro.saliendo .intro-saltar { opacity: 0 !important; transform: translateY(-6px); transition: opacity 0.35s ease, transform 0.5s var(--curva); animation: none; }
@keyframes intro-red { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro-centro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.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); } }
/* el brillo recorre solo el trazo del logo: un degradado enmascarado con el mismo PNG */
.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: 10px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }
.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; left: 0; right: 0; bottom: max(26px, calc(env(safe-area-inset-bottom) + 16px)); margin: 0; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tenue); animation: aparecer 0.8s ease both 1.3s; opacity: 0; }
/* versión corta (de vuelta en la misma sesión): todo junto y rápido */
.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; }

/* la cara que vuela de la portada al marco */
.vuelo { position: fixed; z-index: 14; overflow: hidden; pointer-events: none; background: #1a1512; }
.vuelo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }

/* entrada de la escena */
body.en-portada .barra { opacity: 0; transform: translateY(-10px); }
body.en-portada .escena { opacity: 0; }

/* =========================================================== apilado: tableta vertical, celular, ventanas bajas */
@media (max-width: 899px), (max-width: 1099px) and (max-height: 799px), (max-height: 639px) {
  :root { --barra-h: 60px; }
  body { overflow-x: hidden; overflow-y: auto; }
  .barra { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); gap: 8px;
    background: linear-gradient(180deg, rgba(7, 6, 10, 0.94), rgba(7, 6, 10, 0.7) 70%, transparent); grid-template-columns: auto 1fr auto; }
  .estado { justify-self: center; font-size: 10px; letter-spacing: 0.14em; }
  .estado-texto, .estado .sep { display: none; }
  .escena { position: relative; inset: auto; min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 26px;
    padding: calc(var(--barra-h) + env(safe-area-inset-top) + 10px) max(16px, env(safe-area-inset-right)) calc(176px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .llamada { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: 640px; }
  #voz { left: -14px; top: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }
  .marco { aspect-ratio: 4 / 3; }
  .orbita { position: relative; inset: auto; width: 100%; max-width: 640px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; pointer-events: auto; }
  .orbita-traza { display: none; }
  .tema, .tema.izq { position: relative; left: auto; top: auto; flex-direction: column; text-align: center; gap: 9px; padding: 4px 2px; transform: translateY(10px); }
  .orbita.visible .tema, .orbita.visible .tema.izq { transform: none; }
  .nodo { width: 58px; height: 58px; }
  .rotulo { align-items: center; max-width: 100% !important; }
  .rotulo .num { display: none; }
  .rotulo .titulo { font-size: 15.5px; overflow-wrap: anywhere; }
  .pregunta { width: calc(100% - 24px); bottom: max(10px, env(safe-area-inset-bottom)); }
  .sugerencias { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); }
  .sugerencias::-webkit-scrollbar { display: none; }
  .sugerencias button { flex: none; }
  .caja { height: 56px; padding: 6px; }
  /* lo que pasa por debajo de la caja fija se apaga: nada se encima a la vista */
  .pregunta::before { content: ""; position: absolute; z-index: -1; left: -12px; right: -12px; top: -34px; bottom: calc(-1 * max(10px, env(safe-area-inset-bottom))); background: linear-gradient(180deg, transparent, rgba(7, 6, 10, 0.98) 30px, var(--negro)); pointer-events: none; }
  .faq-lista { grid-template-columns: 1fr; }
  .unete-boton { display: none; }
  .menu-boton:not([hidden]) { display: grid; }
  /* durante la presentación, la caja de preguntas se retira para dejar ver el capítulo (vuelve en pausa o al salir) */
  .pregunta { transition: opacity 0.6s var(--curva), transform 0.6s var(--curva); }
  body.presentando:not(.pres-pausada) .pregunta.visible { opacity: 0; transform: translateX(-50%) translateY(24px); pointer-events: none; }
  body.presentando:not(.pres-pausada) .escena { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1100px) and (min-height: 640px), (min-width: 900px) and (min-height: 800px) { .menu-boton { display: none !important; } }
/* escritorios anchos y bajos (1366×768, 1280×720…): los arcos se quedan; el marco pasa a 16:9 y todo se compacta */
@media (min-width: 1100px) and (min-height: 640px) and (max-height: 799px) {
  :root { --barra-h: 60px; --mw: clamp(380px, min(42vw, (100svh - 440px) * 16 / 9), 600px); }
  .barra { padding-left: 24px; padding-right: 24px; }
  .llamada { top: calc(var(--barra-h) + 8px); gap: 10px; }
  .marco { aspect-ratio: 16 / 9; }
  .marco video { object-position: 50% 30%; }
  .marco-envoltura { margin-bottom: 12px; }
  .placa { top: 18px; left: 22px; }
  .placa-nombre { font-size: 19px; }
  .sello-cap { top: 20px; right: 24px; }
  .e1, .e2 { top: 10px; } .e3, .e4 { bottom: 10px; } .e1, .e3 { left: 10px; } .e2, .e4 { right: 10px; }
  .subtitulo { bottom: 16px; }
  .subtitulo .linea { font-size: 16px; }
  .mando { min-height: 46px; }
  .conoceme { height: 46px; }
  .conoceme.invita { height: 50px; }
  .cm-icono, .conoceme.invita .cm-icono { width: 38px; height: 38px; }
  .pres-barra { height: 32px; }
  .pres-btn { width: 36px; height: 36px; }
  .pres-salir { height: 36px; }
  .panel { padding: 11px 18px 12px; gap: 16px; }
  .panel h2 { font-size: 20px; }
  .panel-barra { margin: 8px 0; }
  .panel ol { gap: 4px 22px; }
  .panel li { font-size: 12.5px; line-height: 1.35; }
  .panel li::before { font-size: 14px; }
  .panel.capitulo .panel-numero { width: 62px; padding-right: 14px; }
  .panel-numero b { font-size: 42px; }
  .panel.camino ol { padding-top: 24px; }
  .panel-ojo { font-size: 10px; letter-spacing: 0.2em; }
  .panel-cabeza { gap: 10px; }
  .panel.camino .que { font-size: 12px; }
  .panel .entrar { margin-top: 10px; height: 38px; }
  .nodo { width: 56px; height: 56px; }
  .rotulo .titulo { font-size: 17.5px; }
  .pregunta { bottom: max(10px, env(safe-area-inset-bottom)); gap: 8px; }
  .sugerencias { min-height: 32px; }
  .sugerencias button { padding-top: 6px; padding-bottom: 6px; }
  .caja { height: 54px; padding: 6px; }
}
/* escritorios bajos (800–899 px de alto): el panel se compacta para no tocar la caja de preguntas */
@media (min-width: 900px) and (min-height: 800px) and (max-height: 899px) {
  :root { --mw: clamp(380px, min(44vw, (100svh - 500px) * 1.5), 600px); }
  .llamada { top: calc(var(--barra-h) + 10px); gap: 12px; }
  .marco-envoltura { margin-bottom: 12px; }
  .panel { padding: 12px 18px 13px; }
  .panel h2 { font-size: 21px; }
  .panel-barra { margin: 9px 0; }
  .panel ol { gap: 5px 22px; }
  .panel li { font-size: 12.5px; line-height: 1.35; }
  .panel.capitulo .panel-numero { width: 66px; padding-right: 16px; }
  .panel-numero b { font-size: 46px; }
  .panel.camino ol { padding-top: 26px; }
  .panel-ojo { font-size: 10px; letter-spacing: 0.2em; }
  .panel-cabeza { gap: 10px; }
  .panel.camino .que { font-size: 12.5px; }
}
@media (max-width: 760px) {
  .acceso[open] { grid-template-columns: 1fr; }
  .acceso-arte { min-height: 0; height: 120px; }
  .acceso-arte img { object-position: 48% 26%; }
  .acceso-arte::after { background: linear-gradient(0deg, rgba(14, 12, 17, 1), rgba(14, 12, 17, 0.1) 70%); }
  .acceso-vivo { bottom: 14px; left: 20px; }
  .acceso-cuerpo { padding: 18px 20px 22px; }
  .acceso-texto { margin: 8px 0 16px; font-size: 13.5px; }
}
@media (max-width: 599px) {
  .marca-texto { display: none; }
  .marco { aspect-ratio: 4 / 5; max-height: 58svh; transition: max-height 0.7s var(--curva); }
  /* en la presentación el marco cede un poco de alto: el capítulo se lee entero sin tapar la cara */
  body:has(#panel:not([hidden])) .marco { max-height: 52svh; }
  body.presentando:has(#panel) .marco { max-height: 46svh; }
  .marco video { object-position: 49% 30%; }
  .placa { top: 20px; left: 22px; }
  .placa-rol { display: none; }
  .sello-cap { top: 22px; right: 22px; font-size: 10px; letter-spacing: 0.2em; }
  .esquina { width: 14px; height: 14px; }
  .e1, .e2 { top: 10px; } .e3, .e4 { bottom: 10px; } .e1, .e3 { left: 10px; } .e2, .e4 { right: 10px; }
  .subtitulo { left: 5%; right: 5%; bottom: 20px; }
  .subtitulo .linea { font-size: 16px; }
  .conoceme { width: 100%; }
  .pres { flex-direction: column; align-items: stretch; gap: 2px; }
  .pres-botones { justify-content: space-between; }
  .pres-cuenta { flex: 1; text-align: left; padding-left: 6px; }
  .pres-barra button span { display: none; }
  .panel { padding: 14px 16px 16px; gap: 14px; }
  .panel h2 { font-size: 22px; }
  .panel ol { grid-template-columns: 1fr; gap: 8px; }
  .panel.capitulo .panel-numero { display: none; }
  .acceso.exito .acceso-listo { flex-direction: column; align-items: flex-start; }
  .acceso.exito .acceso-listo h2 { padding-right: 0; font-size: 24px; }
  .acceso.exito .acceso-cerrar { top: 10px; right: 10px; }
  .panel.camino { flex-direction: column; }
  .panel.camino .panel-numero { display: none; }
  .panel.camino ol { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 12px; }
  .panel.camino ol::before, .panel.camino ol::after { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .panel.camino ol::after { transform-origin: top; transform: scaleY(var(--tl, 0)); }
  .panel.camino li::before { left: -28px; top: 3px; }
  .orbita { gap: 16px 2px; }
  .nodo { width: 54px; height: 54px; }
  .nodo .icono { width: 26px; height: 26px; }
  .rotulo .titulo { font-size: 14px; }
  .acciones { gap: 8px; }
  /* toques de 44 px: el idioma, el acceso y el menú */
  .idiomas { padding: 0; margin-right: 0; }
  .idiomas button { width: 42px; height: 42px; }
  .idiomas-fondo { top: 5px; left: 5px; width: 32px; height: 32px; }
  .idiomas[data-l="en"] .idiomas-fondo { transform: translateX(42px); }
  .acceso-boton { height: 44px; padding: 0 13px; font-size: 10.5px; letter-spacing: 0.1em; gap: 8px; }
  .acceso-boton .largo { display: none; }
  .acceso-boton .corto { display: inline; }
  .menu-boton { width: 44px; height: 44px; }
  .marca-logo { height: 20px; }
  .portada-marca { gap: 10px; font-size: 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; }
  .contestar { flex-direction: column; align-items: center; width: 100%; gap: 12px; }
  .contestar-boton { width: min(320px, 100%); height: 70px; }
  .entrante { letter-spacing: 0.22em; font-size: 10px; }
  .hoja-cabeza { padding: 16px 16px 12px; }
}
@media (max-width: 429px) {
  .estado { display: none; }
  .barra { grid-template-columns: auto 1fr; }
}
@media (max-width: 374px) {
  .acceso-boton .led { display: none; }
  .idiomas button { width: 40px; }
  .idiomas-fondo { width: 30px; }
  .idiomas[data-l="en"] .idiomas-fondo { transform: translateX(40px); }
}
/* pantallas táctiles: todo lo que se toca mide al menos 44 px */
@media (max-width: 599px), (pointer: coarse) {
  .sugerencias button { min-height: 44px; }
  .pres-barra { height: 44px; }
  .pres-btn { width: 44px; height: 44px; }
  .pres-salir { height: 44px; }
  .hoja-cerrar { width: 44px; height: 44px; }
  .faq-lista button { min-height: 48px; align-items: center; }
  .acceso-volver { height: 50px; }
}
@media (max-height: 700px) { .portada { padding-top: 64px; } }
@media (max-height: 720px) and (max-width: 599px) {
  .timbre { width: 180px; }
  .nombre { font-size: 58px; margin-top: 14px; }
  .contestar { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.12s !important; transition-delay: 0s !important; }
  .ondas, .contestar-boton::after, .acceso-boton::after { display: none; }
}
