/* =========================================================
   LFM — estilo editorial por escenas
   Todo lo que se anima usa solo transform y opacity (rápido).
   ========================================================= */
:root {
    --bg: #060411;
    --wall: #231745;
    --wall-2: #140e30;
    --floor: #0a061d;
    --ink: #f1ebff;
    --muted: #9d8fc4;
    --lilac: #c77dff;
    --magenta: #a448c5;
    --gold: #f0b429;
    --paper: #efe4d4;
    --paper-ink: #1c1222;

    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Space Mono', ui-monospace, Menlo, monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --hy: 66%;   /* altura del horizonte (pared / piso) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lilac); }

/* grano de película fijo encima de todo */
.grain {
    position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* ============ HUD ============ */
.hud {
    position: fixed; inset: 0 0 auto 0; z-index: 60;
    display: flex; justify-content: space-between; align-items: center; padding: 18px 22px;
}
.hud__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .95rem; }
.hud__logo { width: 44px; height: auto; filter: drop-shadow(0 0 10px rgba(199, 125, 255, .35)); }
.hud__brand span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; }
.hud__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); }
body.is-playing .hud__dot { animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.8); opacity: .5; } }
.hud__right { display: flex; align-items: center; gap: 14px; }
.hud__listen { font-weight: 700; font-size: .9rem; }
.hud__listen[aria-pressed="true"] { color: var(--lilac); }
.hud__pill {
    display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
    background: var(--lilac); color: var(--paper-ink); font-weight: 700; font-size: .9rem;
    transition: transform .4s var(--ease);
}
.hud__pill:hover { transform: scale(1.05); }
.hud__burger, .hud__burger::before { display: block; width: 14px; height: 2px; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.hud__burger { background: none; }
.hud__burger::before { content: ''; top: -3px; box-shadow: 0 6px 0 currentColor; }
body.menu-open .hud__burger::before { transform: translateY(3px) rotate(45deg); box-shadow: none; }

.scene-label {
    position: fixed; left: 22px; bottom: 18px; z-index: 60;
    font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .05em;
}
.scene-label__num { color: var(--lilac); }

/* sobre fondos claros (las reglas) el HUD se oscurece */
.hud, .scene-label { transition: color .4s; }
body.on-paper .hud, body.on-paper .scene-label { color: var(--paper-ink); }
body.on-paper .scene-label__num { color: var(--magenta); }

/* menú índice */
.index {
    position: fixed; inset: 0; z-index: 55; background: var(--paper); color: var(--paper-ink);
    display: flex; flex-direction: column; justify-content: center; padding: 0 8vw;
    clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
body.menu-open .index { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open .hud { color: var(--paper-ink); }
.index ol { list-style: none; }
.index a {
    display: flex; align-items: baseline; gap: 1.2rem; padding: .3rem 0;
    font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 5.5rem); line-height: 1.05;
    transition: transform .5s var(--ease), color .3s;
}
.index a:hover { transform: translateX(14px); color: var(--magenta); font-style: italic; }
.index a span { font-family: var(--mono); font-size: .8rem; color: #8a7a96; }
.index__foot { position: absolute; bottom: 24px; left: 8vw; font-family: var(--mono); font-size: .72rem; }

/* ============ Capas ============ */
.track { width: 1px; }
.L { position: fixed; inset: 0; overflow: hidden; visibility: hidden; }
.L.is-on { visibility: visible; }

/* palabras con máscara: el JS o el CSS las sube desde abajo */
.m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w { display: inline-block; transform: translateY(140%); will-change: transform; }


/* ============ 00 · Bienvenida ============ */
.L-hola {
    background:
        radial-gradient(ellipse 60% 50% at 50% 62%, rgba(164, 72, 197, .45), transparent 70%),
        radial-gradient(ellipse 90% 40% at 50% 110%, rgba(80, 42, 127, .6), transparent 70%);
}
.hola__rings {
    position: absolute; left: 50%; top: 62%; width: 190vmax; height: 190vmax; translate: -50% -50%;
    background: repeating-radial-gradient(circle, rgba(199, 125, 255, .07) 0 1px, transparent 1px 46px);
    animation: spin 90s linear infinite;
}
/* logo: entra grande al centro y sube a su lugar */
.hola__logo-wrap { position: absolute; left: 50%; top: 10vh; translate: -50% 0; z-index: 1; will-change: transform, opacity; }
.hola__logo {
    display: block; width: clamp(150px, 16vw, 220px); height: auto;
    filter: drop-shadow(0 0 24px rgba(199, 125, 255, .55)) drop-shadow(0 10px 30px rgba(0, 0, 0, .6));
    animation: logo-in 1.6s var(--ease) both;
}
@keyframes logo-in {
    0% { opacity: 0; transform: translateY(26vh) scale(1.8); filter: blur(12px) drop-shadow(0 0 0 transparent); }
    45% { opacity: 1; transform: translateY(26vh) scale(1.8); filter: blur(0) drop-shadow(0 0 40px #d36bff); }
    100% { opacity: 1; transform: none; }
}

/* el productor: 3 capas apiladas (cuerpo, mano que saluda, mano "L") */
.hola__crew { --pw: min(96vw, 116vh); position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: 2; will-change: transform; pointer-events: none; }
.hola__prod {
    position: absolute; left: 50%; width: var(--pw); translate: -50% 0;
    bottom: calc(var(--pw) * -0.062);            /* la imagen trae 10% extra abajo para que no se vea el corte */
    pointer-events: auto; cursor: pointer; padding: 0;
    animation: pop-up 1.1s cubic-bezier(.34, 1.4, .64, 1) 1.1s both;
}
@keyframes pop-up { from { transform: translateY(105%); } to { transform: none; } }
.prod {
    position: relative; display: block; transform-origin: 50% 100%;
    filter: drop-shadow(0 -10px 40px rgba(164, 72, 197, .35));
    animation: idle-body 4s ease-in-out 2.4s infinite;
}
.prod img { display: block; width: 100%; height: auto; }
.prod__hand { position: absolute; inset: 0; }
.prod__hand--wave { transform-origin: 12.4% 90%; }
.prod__hand--l { transform-origin: 84.4% 90%; animation: l-idle 3.2s ease-in-out 3s infinite; }
@keyframes idle-body {
    0%, 100% { transform: rotate(0) translateY(0); }
    30% { transform: rotate(-.8deg) translateY(-6px); }
    65% { transform: rotate(.6deg) translateY(-2px); }
}
@keyframes l-idle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg) translateY(-4px); } }

/* saludo: la mano abierta va y viene; la "L" se marca dos veces */
.L-hola.is-waving .prod__hand--wave { animation: wave .8s ease-in-out 3; }
@keyframes wave {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(6deg); }
}
.L-hola.is-waving .prod__hand--l { animation: l-pump .6s cubic-bezier(.34, 1.56, .64, 1) .9s 2; }
@keyframes l-pump { 0%, 100% { transform: none; } 45% { transform: rotate(-6deg) translateY(-14px) scale(1.04); } }

/* mientras "habla", rebota con cada sílaba */
.hola__prod.is-talking .prod { animation: talk .16s ease-in-out infinite alternate; }
@keyframes talk { from { transform: translateY(0); } to { transform: translateY(-5px) rotate(-.4deg); } }

/* globo de diálogo */
.hola__bubble-wrap { position: absolute; z-index: 3; right: 6vw; top: 40vh; will-change: opacity; }
.hola__bubble {
    position: relative; background: var(--paper); color: var(--paper-ink);
    padding: 1rem 1.4rem 1.1rem; border-radius: 26px; min-width: 230px;
    box-shadow: 10px 12px 0 rgba(0, 0, 0, .35);
    transform-origin: 0% 100%; transform: scale(0) rotate(-8deg); opacity: 0;
    transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
}
.hola__bubble::after {   /* colita del globo, apunta a la boca */
    content: ''; position: absolute; left: 18px; bottom: -18px; width: 34px; height: 30px;
    background: var(--paper); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.L-hola.is-talking-in .hola__bubble { transform: rotate(-3deg); opacity: 1; }
.hola__say { font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1; min-height: 1em; }
.hola__say::after { content: '|'; margin-left: 2px; color: var(--magenta); animation: blink .8s steps(2) infinite; }
.hola__sub { font-family: var(--mono); font-size: .85rem; margin-top: .4rem; opacity: 0; transition: opacity .5s .2s; }
.hola__sub b { color: var(--magenta); }
.hola__tap { font-family: var(--mono); font-size: .65rem; color: #7a6a86; margin-top: .5rem; opacity: 0; transition: opacity .5s .5s; }
.L-hola.is-said .hola__sub, .L-hola.is-said .hola__tap { opacity: 1; }

.hola__hint {
    position: absolute; z-index: 3; right: 6vw; bottom: 5vh;
    font-family: var(--mono); font-size: .8rem; color: var(--ink);
    padding: .55rem 1rem; border-radius: 999px; background: rgba(20, 10, 28, .7); border: 1px solid #4a3560;
    opacity: 0; transition: opacity .6s;
}
.hola__hint span { display: inline-block; animation: bob 1.2s ease-in-out infinite; }
.L-hola.is-said .hola__hint { opacity: 1; }

@media (min-width: 761px) {
    .hola__bubble-wrap { right: auto; left: calc(50% + 14vw); top: 28vh; }
}
@media (max-width: 760px) {
    .hola__logo-wrap { top: 15vh; }
    .hola__logo { width: 46vw; }
    .hola__bubble-wrap { right: auto; left: 10vw; top: 45vh; }
    .hola__bubble { min-width: 0; }
    .hola__hint { right: 4vw; bottom: 1.6vh; padding: .4rem .8rem; font-size: .72rem; }
    .hola__crew { --pw: 116vw; }
}



/* ============ Fondo material ============ */
body { background: #000; }
.material { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.material svg { position: absolute; inset: -6%; width: 112%; height: 112%; will-change: transform; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-2.5%, 2%, 0) scale(1.05) rotate(.6deg); } }
.layers { position: relative; z-index: 1; }

/* ============ POV · Escritorio ============ */
.L-pov { background: radial-gradient(ellipse 80% 60% at 50% 35%, rgba(164, 72, 197, .18), transparent 70%); }
.pov__cam { position: absolute; inset: 0; transform-origin: 50% 36%; will-change: transform; }
.pov__head {
    position: absolute; left: 0; right: 0; top: 9vh; z-index: 3; text-align: center;
    font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1;
}
.pov__head b { font-family: var(--mono); font-weight: 400; font-size: .5em; color: var(--muted); vertical-align: middle; margin-right: .3em; }

/* monitor */
.pov__monitor { position: absolute; left: 50%; top: 15vh; translate: -50% 0; width: min(74vw, 58vh * 1.7); z-index: 2; }
.pov__bezel {
    position: relative; padding: 10px; border-radius: 16px;
    background: linear-gradient(160deg, #2a2148, #0c0818 60%);
    box-shadow: 0 0 0 1px rgba(199, 125, 255, .25), 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 90px rgba(164, 72, 197, .35);
}
.pov__neck { position: absolute; left: 50%; top: 100%; width: 9%; height: 2.2vh; translate: -50% 0; background: linear-gradient(90deg, #120c24, #2a2148, #120c24); }
.pov__foot { position: absolute; left: 50%; top: calc(100% + 2.2vh); width: 24%; height: 10px; translate: -50% 0; border-radius: 6px 6px 2px 2px; background: #1b1236; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }

.pov__screen {
    container-type: inline-size; position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; border-radius: 8px;
    background: linear-gradient(180deg, #0f0a22, #07040f);
    display: grid; grid-template-rows: auto 1fr auto; font-family: var(--mono); color: #c9bde6;
}
.daw__top { display: flex; align-items: center; gap: 2.2cqw; padding: 1.4cqw 2cqw; border-bottom: 1px solid #231745; font-size: 1.5cqw; }
.daw__dots { display: flex; gap: .7cqw; }
.daw__dots i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #502a7f; }
.daw__dots i:first-child { background: #c77dff; }
.daw__search {
    flex: 1; display: flex; align-items: center; gap: 1cqw; padding: .9cqw 1.6cqw; border-radius: 99px;
    background: #140e30; border: 1px solid #3b2a63; color: #e9defc; min-width: 0;
}
.daw__search svg { width: 1.8cqw; height: 1.8cqw; color: #c77dff; flex: none; }
.daw__query { white-space: nowrap; overflow: hidden; }
.daw__caret { width: 2px; height: 1.8cqw; background: #c77dff; animation: blink .9s steps(2) infinite; }
.daw__time { color: #c77dff; font-weight: 700; }

.daw__body { position: relative; overflow: hidden; }
.daw__ruler { position: absolute; left: 0; right: 0; top: 0; height: 4.5%; display: flex; border-bottom: 1px solid #231745; font-size: 1.1cqw; color: #5f5287; }
.daw__ruler span { flex: 1; padding-left: .5cqw; border-left: 1px solid #1b1236; }
.daw__lanes { position: absolute; inset: 4.5% 0 0 0; display: grid; grid-template-rows: repeat(4, 1fr); }
.daw__lanes i { border-bottom: 1px solid #170f30; }
.daw__lanes i:nth-child(odd) { background: rgba(35, 23, 69, .25); }
.daw__wave { position: absolute; left: 0; right: 0; top: 18%; height: 70%; width: 100%; filter: drop-shadow(0 0 6px rgba(199, 125, 255, .6)); }
.daw__playhead { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: #fff; box-shadow: 0 0 10px #c77dff; animation: playhead 8s linear infinite; }
@keyframes playhead { from { left: 0; } to { left: 100%; } }

.clip {
    position: absolute; z-index: 2; display: flex; flex-direction: column; justify-content: center;
    padding: 1cqw 1.8cqw; min-width: 17cqw; border-radius: 1.2cqw;
    background: linear-gradient(160deg, rgba(91, 46, 137, .95), rgba(40, 26, 77, .95));
    border: 1px solid rgba(199, 125, 255, .55);
    box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .5);
    transition: transform .4s var(--ease), box-shadow .4s, background .4s;
    overflow: hidden;
}
.clip__name { font-family: var(--sans); font-weight: 800; font-size: 2.6cqw; color: #fff; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.clip__sub { font-size: 1.15cqw; color: #d9c9ff; margin-top: .4cqw; }
.clip__bars {
    position: absolute; inset: auto 0 0 0; height: 30%; opacity: .35;
    background: repeating-linear-gradient(90deg, #c77dff 0 2px, transparent 2px 5px);
    -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000);
}
.clip:hover, .clip.is-hover {
    transform: translateY(-.6cqw) scale(1.06);
    background: linear-gradient(160deg, #a448c5, #5b2e89);
    box-shadow: 0 0 0 2px #fff, 0 1.5cqw 4cqw rgba(164, 72, 197, .7);
}
.clip--cita       { left: 6%;  top: 12%; }
.clip--artista    { left: 41%; top: 9%; }
.clip--plugin     { left: 9%;  top: 58%; }
.clip--portafolio { left: 50%; top: 52%; }
/* el bloque "artista" va encerrado en un círculo, como en el boceto */
.clip--artista { overflow: visible; }
.clip--artista::after {
    content: ''; position: absolute; inset: -2.2cqw -3cqw; border: 2px solid #fff; border-radius: 50%;
    opacity: .85; transform: rotate(-6deg); animation: ring-pulse 2.4s ease-in-out infinite;
}
@keyframes ring-pulse { 50% { transform: rotate(-3deg) scale(1.05); opacity: .4; } }

.daw__cursor { position: absolute; z-index: 4; left: 70%; top: 40%; width: 2.6cqw; height: 2.6cqw; transition: left 1.1s var(--ease), top 1.1s var(--ease); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); pointer-events: none; }
.daw__bottom { display: flex; justify-content: space-between; gap: 2cqw; padding: 1cqw 2cqw; border-top: 1px solid #231745; font-size: 1.2cqw; color: #7f70a8; }
.daw__transport b { color: #ff4d6d; }
.daw__brand { color: #c77dff; font-weight: 700; }

/* escritorio en perspectiva */
.pov__desk { position: absolute; left: -12vw; right: -12vw; bottom: -4vh; height: 46vh; perspective: 900px; perspective-origin: 50% -30%; z-index: 1; }
.pov__desk svg { width: 100%; height: 100%; transform: rotateX(50deg); transform-origin: 50% 100%; }
.L-pov .key { transition: fill .15s; }
.L-pov .key.on { fill: #c77dff; }
.L-pov .pad { transition: fill .2s; }
.L-pov .pad.on { fill: #c77dff; }
.hand-l { transition: transform .2s ease-out; }
.mouse-rig { transition: transform 1.1s var(--ease); }

@media (max-width: 899px) {
    .pov__head { top: 10vh; padding: 0 6vw; }
    .pov__monitor { top: 17vh; width: 94vw; }
    .pov__screen { aspect-ratio: 4 / 5.2; }
    .daw__top { font-size: 2.8cqw; padding: 2.4cqw 3cqw; }
    .daw__search svg { width: 3.4cqw; height: 3.4cqw; }
    .daw__caret { height: 3.4cqw; }
    .daw__dots { display: none; }
    .daw__ruler { font-size: 2.2cqw; }
    .daw__ruler span:nth-child(n+9) { display: none; }
    .clip { min-width: 40cqw; padding: 2.4cqw 3.4cqw; border-radius: 2.6cqw; }
    .clip__name { font-size: 6cqw; }
    .clip__sub { font-size: 2.8cqw; }
    .clip--cita       { left: 5%;  top: 10%; }
    .clip--artista    { left: 46%; top: 27%; }
    .clip--plugin     { left: 6%;  top: 52%; }
    .clip--portafolio { left: 44%; top: 72%; }
    .clip--artista::after { inset: -3cqw -4cqw; }
    .daw__cursor { width: 5.5cqw; height: 5.5cqw; }
    .daw__bottom { font-size: 2.4cqw; padding: 2cqw 3cqw; }
    .daw__brand { display: none; }
    .pov__neck { height: 3vh; }
    .pov__foot { top: calc(100% + 3vh); }
    .pov__desk { left: -40vw; right: -40vw; height: 34vh; bottom: -3vh; }
}

/* ============ Planes: cartas de producción ============ */
.L-planes {
    background:
        radial-gradient(ellipse 70% 55% at 50% 60%, rgba(80, 42, 127, .45), transparent 70%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 14px),
        rgba(20, 14, 48, .55);   /* paño morado translúcido */
    perspective: 1400px;
}
.L-planes::after {   /* viñeta para que el paño no compita con las cartas */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(6, 4, 17, .8) 100%);
}
.planes__head {
    position: absolute; left: 0; right: 0; top: 11vh; z-index: 5; text-align: center;
    font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1;
}
.planes__head b { font-family: var(--mono); font-weight: 400; font-size: .45em; color: var(--muted); vertical-align: middle; margin-right: .3em; }
.planes__head em { display: inline-block; }
.planes__table { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding-top: 12vh; }
.pcard {
    grid-area: 1 / 1; width: min(340px, 80vw); aspect-ratio: 5 / 7.4;
    will-change: transform; perspective: 1400px;
}
.pcard__flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); }
.pcard__face {
    position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 255, 255, .08) inset;
}
.pcard__back {
    transform: rotateY(180deg); display: grid; place-items: center;
    background:
        repeating-linear-gradient(45deg, rgba(199, 125, 255, .12) 0 6px, transparent 6px 12px),
        repeating-linear-gradient(-45deg, rgba(199, 125, 255, .12) 0 6px, transparent 6px 12px),
        #1a0a26;
    border: 8px solid #efe4d4;
}
.pcard__back img { width: 46%; height: auto; filter: drop-shadow(0 0 16px rgba(199, 125, 255, .6)); }
.pcard__front {
    background: var(--paper); color: var(--paper-ink);
    padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column;
    border: 2px solid #d9ccb9;
}
.pcard--featured .pcard__front { border: 3px solid var(--magenta); box-shadow: 0 30px 70px -20px rgba(164, 72, 197, .7); }
.pcard__corner { position: absolute; top: .7rem; right: .9rem; font-size: 1.3rem; color: #c0392b; }
.pcard:nth-child(1) .pcard__corner, .pcard:nth-child(3) .pcard__corner { color: var(--paper-ink); }
.pcard__corner--br { top: auto; right: auto; bottom: .7rem; left: .9rem; transform: rotate(180deg); }
.pcard__ribbon {
    position: absolute; top: -12px; left: 50%; translate: -50% 0;
    background: var(--magenta); color: #fff; font-family: var(--mono); font-size: .68rem; font-weight: 700;
    padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; letter-spacing: .04em;
}
.pcard__rank { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7a6a86; }
.pcard__name { font-family: var(--serif); font-weight: 400; font-size: 2.3rem; line-height: 1; margin: .2rem 0 .3rem; }
.pcard__price { font-family: var(--sans); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.03em; }
.pcard__price sup { font-size: .45em; vertical-align: top; margin-right: 2px; position: relative; top: .35em; }
.pcard__price small { font-family: var(--mono); font-size: .25em; font-weight: 400; color: #7a6a86; margin-left: 4px; }
.pcard--featured .pcard__price { color: var(--magenta); }
.pcard__pitch { font-size: .88rem; line-height: 1.35; color: #4a3a55; margin: .5rem 0 .9rem; }
.pcard__items { list-style: none; display: grid; gap: .6rem; margin-bottom: auto; }
.pcard__items li { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; line-height: 1.3; color: #3b2d45; }
.pcard__items b { display: block; font-size: .9rem; color: var(--paper-ink); }
.pcard__icon { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #1c1222; color: var(--lilac); }
.pcard__icon svg { width: 17px; height: 17px; }
.pcard__cta {
    margin-top: 1rem; align-self: stretch; text-align: center; padding: .75rem 1rem; border-radius: 999px;
    background: var(--paper-ink); color: var(--paper); font-weight: 700; font-size: .9rem;
    transition: background .3s, transform .3s var(--ease);
}
.pcard__cta:hover { background: var(--magenta); transform: translateY(-2px); }
.pcard--featured .pcard__cta { background: var(--magenta); color: #fff; }
.planes__dots { position: absolute; z-index: 5; bottom: 3.5vh; left: 50%; translate: -50% 0; display: none; gap: .5rem; }
.planes__dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: all .4s var(--ease); }
.planes__dots i.is-on { width: 24px; background: var(--lilac); }

@media (max-height: 760px) and (min-width: 900px) {
    .pcard { width: min(300px, 80vw); }
    .pcard__pitch { display: none; }
}
@media (max-width: 899px) {
    .planes__dots { display: flex; }
    .planes__head { top: 10vh; padding: 0 6vw; }
    .pcard { width: min(320px, 78vw); }
}
@media (max-width: 899px) and (max-height: 760px) {
    .pcard__pitch { display: none; }
    .pcard { width: min(290px, 74vw); }
}

/* ============ 01 · Apertura ============ */
.room { position: absolute; inset: 0; transform-origin: 76% 70%; will-change: transform; }
.room__wall {
    position: absolute; left: 0; right: 0; top: 0; height: var(--hy);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 90px),
        linear-gradient(180deg, var(--wall-2), var(--wall) 85%);
}
.room__floor {
    position: absolute; left: 0; right: 0; bottom: 0; top: var(--hy);
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 12vw),
        linear-gradient(180deg, #1a0c26, var(--floor));
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, .05);
}
.room__lampglow {
    position: absolute; right: -10vw; top: 10%; width: 60vw; height: 70%;
    background: radial-gradient(ellipse at 70% 60%, rgba(240, 180, 41, .16), transparent 60%);
}
.frames { position: absolute; right: 6vw; top: 17%; display: flex; gap: 2vw; }
.frame { width: clamp(46px, 7vw, 110px); box-shadow: 8px 12px 0 rgba(0, 0, 0, .3); }
.frame:nth-child(2) { margin-top: 3vw; }
.neon {
    position: absolute; left: 46vw; top: 30%;
    font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 5vw, 4.4rem); color: #ffd6ff;
    text-shadow: 0 0 6px #ff6bf5, 0 0 18px var(--magenta), 0 0 42px var(--magenta);
    animation: flicker 6s infinite;
}
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .35; } }

.prop { position: absolute; height: auto; }
.prop--plant   { left: 1vw;   bottom: 15%; width: clamp(90px, 17vw, 230px); }
.prop--deck    { left: 15vw;  bottom: 13%; width: clamp(150px, 30vw, 380px); }
.prop--mic     { left: 48vw;  bottom: 11%; width: clamp(70px, 11vw, 150px); }
.prop--speaker { right: 17vw; bottom: 12%; width: clamp(90px, 15vw, 200px); }
.prop--lamp    { right: 3vw;  bottom: 14%; width: clamp(56px, 9vw, 120px); }
.leaves { animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { to { transform: rotate(2deg); } }
.spin { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cone { animation: thump .9s ease-in-out infinite alternate; }
body.is-playing .cone { animation-duration: .357s; }
@keyframes thump { to { transform: scale(1.05); } }
.led { animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.open__text { position: absolute; left: 6vw; top: 17vh; max-width: 560px; will-change: transform, opacity; }
.open__title { display: flex; align-items: flex-start; }
.ot-logo { width: clamp(120px, 20vw, 230px); height: auto; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .5)); }
.ot-rec { font-family: var(--mono); font-size: clamp(.9rem, 1.8vw, 1.3rem); margin: .4em 0 0 .6em; color: var(--lilac); }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } }
.open__quote { margin: 1.6rem 0 1.4rem; font-family: var(--mono); font-size: clamp(.78rem, 1.6vw, .95rem); line-height: 1.9; color: #d9cbe3; }
.open__quote p { animation: rise 1.2s var(--ease) both; }
.open__quote p:nth-child(1) { animation-delay: .45s; } .open__quote p:nth-child(2) { animation-delay: .55s; } .open__quote p:nth-child(3) { animation-delay: .65s; }
.open__quote b { color: var(--lilac); margin-right: .4rem; }
.open__quote em { font-size: 1.25em; }
.open__byline { display: flex; gap: 1.5rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--muted); animation: rise 1.2s var(--ease) .8s both; }
.hint {
    position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
    font-family: var(--mono); font-size: .75rem; color: var(--muted); animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ============ 02 · Manifiesto ============ */
.L-mani { background: rgba(6, 4, 17, .35); }
.mani__vinyl { position: absolute; right: -22vmin; bottom: -26vmin; width: 78vmin; opacity: .9; will-change: transform; }
.mani__blocks { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 7vw; }
.mani__block {
    grid-area: 1 / 1; max-width: 15em; text-align: center;
    font-family: var(--serif); font-size: clamp(2.3rem, 7.4vw, 6.4rem); line-height: 1.02; letter-spacing: -.01em;
}

/* ============ 03 · El motor ============ */
.L-motor { background: transparent; }
.motor__cam { position: absolute; left: 0; right: 0; top: 0; height: 190vh; will-change: transform; }
.motor__surface { position: absolute; left: 0; right: 0; top: 0; height: 52vh; background: linear-gradient(180deg, var(--wall-2), var(--wall)); display: flex; align-items: flex-end; }
.motor__surface svg { width: 100%; height: 22vh; }
.motor__ground {
    position: absolute; left: 0; right: 0; top: 52vh; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, .25) 0 2px, transparent 3px) 0 0 / 34px 34px,
        linear-gradient(180deg, #231745, #140e30 60%, #0a061d);
    border-top: 10px solid #060411;
}
.motor__cellar {
    position: absolute; left: 6vw; right: 6vw; top: 16vh; height: 92vh;
    background: linear-gradient(180deg, #1b1236, #0c0818); border-radius: 6px;
    box-shadow: inset 0 0 0 6px #120610, inset 0 30px 60px rgba(0, 0, 0, .5);
    display: grid; place-items: end center; padding: 4vh 3vw;
}
.motor__machine { width: 100%; max-width: 1000px; max-height: 80vh; }
.motor__text {
    position: absolute; left: 7vw; right: 7vw; bottom: 9vh; text-align: center;
    font-family: var(--serif); font-size: clamp(1.6rem, 4.4vw, 3.4rem); line-height: 1.08;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .8);
}

/* ============ 04 · Las armas ============ */
.L-armas { background: linear-gradient(180deg, rgba(20, 14, 48, .35) 0, rgba(35, 23, 69, .55) 64%, rgba(10, 6, 29, .85) 64%, rgba(6, 4, 17, .95)); }
.armas__head, .reglas__head {
    position: absolute; left: 6vw; top: 12vh; z-index: 2;
    font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1;
}
.armas__head b, .reglas__head b { font-family: var(--mono); font-weight: 400; font-size: .45em; color: var(--muted); vertical-align: middle; margin-right: .3em; }
.armas__track {
    position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: flex-end;
    padding: 0 30vw 0 40vw; gap: 14vw; will-change: transform;
}
.armas__table { position: absolute; left: 10vw; right: 6vw; bottom: 22vh; height: 1px; }
.armas__top { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: #3b2a63; border-radius: 3px; box-shadow: 0 6px 0 #231745, 0 30px 40px rgba(0, 0, 0, .4); }
.armas__leg { position: absolute; top: 18px; width: 14px; height: 24vh; background: #231745; }
.armas__leg:nth-of-type(2) { left: 3%; } .armas__leg:nth-of-type(3) { left: 50%; } .armas__leg:nth-of-type(4) { right: 3%; }
.weapon { position: relative; flex: 0 0 auto; width: clamp(150px, 18vw, 210px); margin-bottom: calc(22vh - 4px); }
.pedal { display: block; width: 100%; height: auto; }
.pled { transition: fill .3s; }
.weapon.is-active .pled { fill: #ff3b5c; filter: drop-shadow(0 0 6px #ff3b5c); }
.tag {
    position: absolute; left: 50%; bottom: calc(100% + 28px); width: clamp(220px, 26vw, 300px);
    background: var(--paper); color: var(--paper-ink); padding: 1.1rem 1.2rem 1rem; border-radius: 3px;
    box-shadow: 10px 14px 0 rgba(0, 0, 0, .3);
    transform: translate(-50%, -30px) rotate(-6deg); opacity: 0;
    transition: transform .8s var(--ease), opacity .5s;
}
.weapon:nth-child(odd) .tag { transform: translate(-50%, -30px) rotate(5deg); }
.weapon.is-active .tag { transform: translate(-50%, 0) rotate(-2deg); opacity: 1; }
.weapon:nth-child(odd).is-active .tag { transform: translate(-50%, 0) rotate(2deg); }
.tag__string { position: absolute; left: 50%; top: 100%; width: 1px; height: 28px; background: #a28fb3; }
.tag__type { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #6b5a78; }
.tag__name { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; margin: .3rem 0 .4rem; }
.tag__desc { font-size: .9rem; line-height: 1.35; color: #3b2d45; }
.tag__foot { display: flex; justify-content: space-between; margin-top: .8rem; font-family: var(--mono); font-size: .8rem; font-weight: 700; }
.tag__foot a { color: var(--magenta); }

/* ============ 05 · Las reglas ============ */
.L-reglas { background: linear-gradient(160deg, rgba(35, 23, 69, .55), rgba(6, 4, 17, .75)); color: var(--ink); }
.L-reglas em { color: var(--lilac); }
.L-reglas .reglas__head b { color: var(--muted); }
.reglas__nums { position: absolute; left: 6vw; top: 34vh; list-style: none; font-family: var(--mono); font-size: .85rem; line-height: 2.1; color: #5f5287; }
.reglas__nums li { transition: color .3s, transform .5s var(--ease); }
.reglas__nums li.is-on { color: var(--ink); transform: translateX(10px); }
.reglas__nums li.is-on::before { content: '→ '; color: var(--lilac); }
.reglas__stage { position: absolute; left: 22vw; right: 7vw; top: 30vh; bottom: 12vh; }
.rule { position: absolute; inset: 0; pointer-events: none; }
.rule__num { font-family: var(--mono); font-size: .75rem; color: var(--muted); opacity: 0; transition: opacity .4s; }
.rule__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1; margin: .6rem 0 1.2rem; }
.rule__body { font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 34ch; color: #c9bde6; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.rule .w { transition: transform .9s var(--ease); }
.rule.is-on .w { transform: translateY(0); }
.rule.is-out .w { transform: translateY(-140%); transition-duration: .5s; }
.rule.is-on .rule__num, .rule.is-on .rule__body { opacity: 1; transform: none; transition-delay: .25s; }

/* ============ 06 · Firma ============ */
.L-firma { background: transparent; display: grid; place-items: center; padding: 0 7vw; }
.firma__inner { width: min(760px, 100%); }
.firma__inner > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.L-firma.is-in .firma__inner > * { opacity: 1; transform: none; }
.L-firma.is-in .firma__inner > *:nth-child(2) { transition-delay: .1s; }
.L-firma.is-in .firma__inner > *:nth-child(3) { transition-delay: .2s; }
.L-firma.is-in .firma__inner > *:nth-child(4) { transition-delay: .3s; }
.L-firma.is-in .firma__inner > *:nth-child(n+5) { transition-delay: .4s; }
.firma__line { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; }
.firma__sign { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4.5vw, 3.2rem); color: var(--lilac); margin: .4rem 0 1.4rem; }
.firma__meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.firma__mail { display: inline-block; margin: 2rem 0; font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.6rem); border-bottom: 2px solid var(--lilac); }
.firma__form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.firma__form input { grid-column: span 1; background: transparent; border: 0; border-bottom: 1px solid #4a3560; color: var(--ink); font: inherit; padding: .7rem 0; }
.firma__form input[name="message"] { grid-column: 1 / -1; }
.firma__form input:focus { outline: none; border-color: var(--lilac); }
.firma__form button { justify-self: start; margin-top: .6rem; padding: .7rem 1.4rem; border-radius: 999px; background: var(--lilac); color: var(--paper-ink); font-weight: 700; }
.form-status { margin-bottom: 1rem; font-family: var(--mono); font-size: .85rem; color: var(--lilac); }
.form-status--error { color: #ff6b81; }
.firma__legal { margin-top: 2.4rem; font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* ============ Móvil ============ */
@media (max-width: 760px) {
    :root { --hy: 70%; }
    .hud { padding: 14px 16px; }
    .hud__brand span { display: none; }
    .open__text { top: 14vh; left: 7vw; right: 7vw; }
    .frames { top: 49%; right: 4vw; gap: 3vw; }
    .neon { top: 57%; right: auto; left: 8vw; }
    .prop--plant { left: -4vw; bottom: 17%; }
    .prop--deck { left: 12vw; bottom: 14%; }
    .prop--mic { left: 43vw; bottom: 11%; width: 18vw; }
    .prop--speaker { right: 12vw; bottom: 13%; }
    .prop--lamp { right: -2vw; }
    .motor__cellar { left: 3vw; right: 3vw; padding: 3vh 2vw; }
    .armas__track { padding: 0 20vw 0 50vw; gap: 30vw; }
    .weapon { width: 42vw; }
    .tag { width: 76vw; }
    .reglas__nums { top: 24vh; left: 7vw; display: flex; gap: .9rem; line-height: 1; }
    .reglas__nums li.is-on { transform: translateY(-4px); }
    .reglas__nums li.is-on::before { content: ''; }
    .reglas__stage { left: 7vw; top: 32vh; }
    .firma__form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}
