/* Propuesta D, «El núcleo»: tokens, letra, cabecera, portada e historia 3D. */
:root { --fondo: #040506; --tinta: #f3ecea; --suave: #aaa09d; --rojo: #ff3b30; --brasa: #ff8a5b; --rosa: #ffb3c1;
  --vidrio: rgba(255, 255, 255, 0.045); --borde: rgba(255, 255, 255, 0.1); --ancho: min(1240px, 100% - 32px); color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--fondo); }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 17px/1.6 "Mona Sans", system-ui, sans-serif; font-stretch: 100%; }
h1, h2, h3 { font-stretch: 125%; letter-spacing: -0.035em; line-height: 0.98; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 16px; }
a { color: var(--rojo); }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 3px; border-radius: 6px; }
.rotulo, .ante, .medidor, .num-paso, .nota-voz, .sellos, .cab nav, .pie-nota, .fase-titulo, th {
  font-family: "Geist Mono", monospace; font-stretch: 100%; }
.rotulo { margin: 0 0 16px; color: var(--rojo); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.entrada { max-width: 60ch; color: var(--suave); font-size: 1.12rem; }
.nota { color: var(--suave); font-size: 0.92rem; max-width: 70ch; margin-top: 16px; }
.boton { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--borde); background: var(--vidrio); color: var(--tinta); text-decoration: none; font-weight: 600;
  font-stretch: 110%; backdrop-filter: blur(14px); transition: background 0.3s, transform 0.3s; }
.boton:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.boton-principal { background: var(--rojo); color: #1a0503; border-color: transparent; }
.boton-principal:hover { background: var(--brasa); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cab { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 12px max(16px, 3vw);
  background: rgba(4, 5, 6, 0.55); backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--borde); }
.marca { color: var(--tinta); font-weight: 800; font-stretch: 125%; font-size: 1.35rem; letter-spacing: -0.04em; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; }
.cab nav { margin-left: auto; font-size: 13px; }
.cab nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cab nav a, .cab nav span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--suave); text-decoration: none; }
.cab nav a:hover { color: var(--tinta); }
.cab .boton { min-height: 44px; }
.hero { position: relative; min-height: calc(100svh - 110px); display: grid; grid-template-rows: auto 1fr auto auto; gap: 24px;
  padding: 40px max(16px, 3vw) 24px; overflow: hidden; isolation: isolate; }
.lienzo-burbuja { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sin-3d .lienzo-burbuja, .espera-3d .lienzo-burbuja { background: radial-gradient(closest-side at 60% 45%, rgba(255, 59, 48, 0.35), transparent 70%); }
.ante { color: var(--suave); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
h1 { font-size: clamp(3.2rem, 11.5vw, 11rem); font-weight: 850; line-height: 0.88; letter-spacing: -0.055em; margin: 0; }
h1 span { display: block; overflow: hidden; padding-bottom: 0.06em; }
.h1-b { color: transparent; -webkit-text-stroke: 1.5px var(--tinta); font-weight: 600; }
.hero-abajo { grid-row: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.hero-texto { max-width: 560px; padding: 24px; border-radius: 24px; background: var(--vidrio); border: 1px solid var(--borde);
  backdrop-filter: blur(22px); }
.hero-texto .entrada { color: var(--tinta); margin: 0; }
.hero-voz { display: grid; gap: 12px; justify-items: end; max-width: 320px; }
.boton-voz { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 59, 48, 0.5); background: rgba(255, 59, 48, 0.08); color: var(--tinta);
  font: 700 1.1rem/1 "Mona Sans", sans-serif; font-stretch: 115%; backdrop-filter: blur(14px); }
.boton-voz[aria-pressed="true"] { background: var(--rojo); color: #1a0503; }
.ondas { display: inline-flex; gap: 3px; align-items: center; height: 22px; }
.ondas i { width: 3px; height: 40%; border-radius: 2px; background: currentColor; animation: onda 1.1s ease-in-out infinite; }
.ondas i:nth-child(2) { animation-delay: 0.15s; } .ondas i:nth-child(3) { animation-delay: 0.3s; } .ondas i:nth-child(4) { animation-delay: 0.45s; }
@keyframes onda { 50% { height: 100%; } }
.nota-voz { margin: 0; color: var(--suave); font-size: 12px; line-height: 1.5; text-align: right; }
.medidor { margin: 0; color: var(--suave); font-size: 12px; letter-spacing: 0.2em; }
.medidor b { color: var(--brasa); font-size: 22px; font-weight: 400; }
.sellos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.sellos li { padding: 8px 14px; border: 1px solid var(--borde); border-radius: 999px; color: var(--suave); }
.historia { position: relative; height: 420vh; }
.escenario { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.lienzo-historia { position: absolute; inset: 0; width: 100%; height: 100%; }
.historia.viva .historia-quieta { display: none; }
.pasos-historia { position: absolute; left: max(16px, 5vw); top: 50%; translate: 0 -50%; width: min(440px, 100% - 32px); margin: 0; padding: 0; list-style: none; }
.paso-historia { position: absolute; inset: auto 0 auto 0; translate: 0 -50%; opacity: 0; filter: blur(10px); transform: translateY(30px);
  transition: opacity 0.6s, filter 0.6s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); padding: 24px; border-radius: 24px;
  background: var(--vidrio); border: 1px solid var(--borde); backdrop-filter: blur(18px); }
.paso-historia.activo { opacity: 1; filter: none; transform: none; }
.paso-historia p { color: var(--suave); margin: 0; }
.num-paso { display: block; color: var(--rojo); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 16px; }
.sin-3d .historia { height: auto; }
.sin-3d .escenario { position: static; height: auto; display: grid; gap: 24px; padding: 64px max(16px, 3vw); justify-items: center; }
.sin-3d .historia-quieta { width: min(300px, 70vw); height: auto; border-radius: 32px; }
.sin-3d .lienzo-historia { display: none; }
.sin-3d .pasos-historia { position: static; translate: none; display: grid; gap: 16px; width: min(640px, 100%); }
.sin-3d .paso-historia { position: static; translate: none; opacity: 1; filter: none; transform: none; }
@media (max-width: 760px) {
  .cab nav { display: none; } .cab .boton { margin-left: auto; }
  .hero-voz { justify-items: start; } .nota-voz { text-align: left; }
  .pasos-historia { top: auto; bottom: 24px; translate: none; left: 16px; }
  .paso-historia { inset: auto 0 0 0; translate: none; }
  .paso-historia h2 { font-size: 1.9rem; }
}
