/* =========================================================
   LFM — versión escritorio
   Coordenadas de la foto base: 1229 × 848 px. Todo lo que va
   encima de la foto se ubica en % de ese tamaño.
   ========================================================= */
:root {
    --ink: #f1ebff;
    --muted: #a597cf;
    --lilac: #c77dff;
    --violet: #a448c5;
    --deep: #140e30;
    --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);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #060411; color: var(--ink); font-family: var(--sans); overflow: 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); }

.grain {
    position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
    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 e índice ============ */
.hud { position: fixed; inset: 0 0 auto 0; z-index: 70; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud__brand { display: flex; align-items: center; gap: 10px; }
.hud__logo { width: 42px; height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }
.hud__brand span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.hud__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
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: 12px; }
.hud__listen { font-weight: 700; font-size: .9rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.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; }
.index {
    position: fixed; inset: 0; z-index: 65; 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); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s;
}
body.menu-open .index { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
body.menu-open .hud { color: var(--paper-ink); }
body.menu-open .hud__brand span, body.menu-open .hud__listen { text-shadow: none; }
.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.4rem, 9vw, 6rem); line-height: 1.05; transition: transform .5s var(--ease), color .3s; }
.index a:hover { transform: translateX(14px); color: var(--violet); font-style: italic; }
.index a span { font-family: var(--mono); font-size: .8rem; color: #8a7a96; }
.index__foot { position: absolute; bottom: 24px; left: 8vw; right: 8vw; font-family: var(--mono); font-size: .72rem; }
.index__foot a { display: inline; font-family: var(--mono); font-size: inherit; color: var(--violet); }

/* ============ Escritorio ============ */
.desk { position: fixed; inset: 0; overflow: hidden; }
.desk__blur {   /* relleno arriba/abajo en celular: la misma foto, desenfocada */
    position: absolute; inset: -40px; background: url(../img/escritorio.webp) center / cover;
    filter: blur(28px) brightness(.55) saturate(1.2);
}
.desk__stage {
    position: absolute; left: 0; top: 0; width: 1229px; height: 848px;   /* el JS lo escala */
    transform-origin: 50.2% 43%;   /* centro de la pantalla del monitor: la cámara se acerca aquí */
    transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
    will-change: transform;
}
body.is-loading .desk__stage { transform: scale(1.12); filter: blur(10px) brightness(.4); }
body.win-open .desk__stage { transform: scale(1.5); filter: brightness(.5); }
.desk__base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.desk__stage { -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
@media (orientation: portrait) { .desk__stage { -webkit-mask: linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent); } }

/* luces y vapor */
.fx { position: absolute; pointer-events: none; }
.fx--lamp { left: 81%; top: 62%; width: 12%; height: 22%; background: radial-gradient(closest-side, rgba(255, 120, 240, .55), transparent); mix-blend-mode: screen; animation: breathe 3.2s ease-in-out infinite alternate; }
.fx--neon { left: 90%; top: 22%; width: 9%; height: 60%; background: radial-gradient(closest-side, rgba(120, 200, 255, .35), transparent); mix-blend-mode: screen; animation: breathe 4.4s ease-in-out infinite alternate-reverse; }
body.is-playing .fx--lamp { animation-duration: .65s; }
@keyframes breathe { from { opacity: .35; } to { opacity: 1; } }
.fx--steam { left: 14.5%; top: 60%; width: 8%; height: 18%; }
.fx--steam i {
    position: absolute; bottom: 0; left: 40%; width: 34%; height: 70%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
    filter: blur(4px); animation: steam 4s ease-in infinite; opacity: 0;
}
.fx--steam i:nth-child(2) { left: 20%; animation-delay: 1.3s; }
.fx--steam i:nth-child(3) { left: 55%; animation-delay: 2.6s; }
@keyframes steam { 0% { transform: translateY(20%) scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-80%) scale(1.4) rotate(12deg); opacity: 0; } }

/* manos */
.hand-keys { position: absolute; left: 33.28%; top: 85.26%; width: 15.7%; height: auto; transform-origin: 50% 100%; animation: play 1.8s ease-in-out infinite; }
body.is-playing .hand-keys { animation-duration: .65s; }
@keyframes play { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5%, -1.2%) rotate(-.6deg); } 60% { transform: translate(1.8%, .4%) rotate(.5deg); } }
.hand-mouse { position: absolute; left: 73.15%; top: 72.64%; width: 33.93%; aspect-ratio: 298 / 263; transition: transform .5s var(--ease); filter: drop-shadow(-6px 10px 12px rgba(0, 0, 0, .45)); }
.hand-mouse img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hand-mouse img.is-on { opacity: 1; }

/* ============ La pantalla ============ */
.screen {
    position: absolute; left: 19.2%; top: 10.6%; width: 65.9%; height: 65.35%;
    border-radius: .6%; overflow: hidden; container-type: inline-size;
    box-shadow: 0 0 40px rgba(164, 72, 197, .35);
}
.screen__in {
    position: absolute; inset: 0; display: grid; grid-template-rows: 13% 10.5% 1fr 6%;
    background: radial-gradient(ellipse 90% 70% at 50% 40%, #2e1c5c, #150d2e 70%, #0d0820);
    font-family: var(--mono); color: #d6c9f5;
}
.screen__in::after {   /* reflejo del vidrio */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0 18%, transparent 18% 60%, rgba(255, 255, 255, .03) 60% 70%, transparent 70%);
}
.sc__title {
    display: flex; align-items: center; justify-content: center; white-space: nowrap; font-family: var(--serif); font-size: 3.4cqw; color: #f1e9ff;
    background: linear-gradient(180deg, #3a2470, #2c1a5a); border-bottom: 1px solid rgba(199, 125, 255, .3);
}
.sc__title b { font-family: var(--mono); font-weight: 400; font-size: .45em; color: #b48ce6; margin-right: .3em; letter-spacing: .2em; }
.sc__title em { color: #d9a8ff; margin-left: .3em; }
.sc__bar { display: flex; align-items: center; gap: 2.4cqw; padding: 0 2.2cqw; font-size: 1.5cqw; border-bottom: 1px solid rgba(199, 125, 255, .15); }
.sc__dots { display: flex; gap: .7cqw; }
.sc__dots i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #5b3a91; }
.sc__dots i:first-child { background: #c77dff; }
.sc__search { flex: 1; display: flex; align-items: center; gap: 1cqw; height: 58%; padding: 0 1.8cqw; border-radius: 99px; background: rgba(20, 12, 46, .8); border: 1px solid #4b3388; color: #eee3ff; min-width: 0; }
.sc__search svg { width: 1.8cqw; height: 1.8cqw; color: #c79bff; flex: none; }
.sc__query { white-space: nowrap; overflow: hidden; }
.sc__caret { width: 1.5px; height: 1.9cqw; background: #c77dff; animation: blink .9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sc__time { color: #c79bff; font-weight: 700; }

.sc__body { position: relative; overflow: hidden; }
.sc__ruler { position: absolute; left: 0; right: 0; top: 0; height: 5%; display: flex; border-bottom: 1px solid rgba(199, 125, 255, .15); font-size: 1cqw; color: #7d6bb0; }
.sc__ruler span { flex: 1; padding-left: .5cqw; border-left: 1px solid rgba(199, 125, 255, .08); }
.sc__lanes { position: absolute; inset: 5% 0 0 0; display: grid; grid-template-rows: 1fr 1.3fr 1fr; }
.sc__lanes i { border-bottom: 1px solid rgba(199, 125, 255, .07); }
.sc__lanes i:nth-child(2) { background: rgba(10, 6, 24, .25); }
.sc__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc__wave { position: absolute; left: 0; width: 100%; top: 34%; height: 44%; filter: drop-shadow(0 0 .6cqw rgba(217, 160, 255, .8)); }
.sc__playhead { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: linear-gradient(#fff, #e7d3ff); box-shadow: 0 0 1cqw #d9a0ff; animation: playhead 9s 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.6cqw; min-width: 16.5cqw; border-radius: 1cqw;
    background: linear-gradient(160deg, rgba(112, 66, 178, .92), rgba(66, 40, 128, .92));
    border: 1px solid rgba(206, 160, 255, .55);
    box-shadow: 0 .8cqw 2.4cqw rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.clip__name { font-family: var(--sans); font-weight: 800; font-size: 2.4cqw; color: #fff; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.clip__sub { font-size: 1.05cqw; color: #e2d3ff; margin-top: .45cqw; }
.clip:hover, .clip.is-hover, .clip:focus-visible {
    transform: translateY(-.5cqw) scale(1.07);
    background: linear-gradient(160deg, #b578f0, #7c46c9);
    box-shadow: 0 0 0 .25cqw #fff, 0 0 3cqw rgba(217, 160, 255, .9);
    outline: none;
}
.clip.is-click { transform: scale(.96); transition-duration: .1s; }
.clip--cita       { left: 6.3%;  top: 12.7%; }
.clip--artista    { left: 40.4%; top: 9.9%; }
.clip--plugin     { left: 8.6%;  top: 55.6%; }
.clip--portafolio { left: 50.2%; top: 52.1%; }
.clip--artista::after {   /* destello como en la imagen */
    content: '✦'; position: absolute; right: -.8cqw; top: -1.6cqw; font-size: 2cqw; color: #fff;
    text-shadow: 0 0 1cqw #fff, 0 0 2cqw #d9a0ff; animation: twinkle 2s ease-in-out infinite;
}
@keyframes twinkle { 50% { transform: scale(.5) rotate(45deg); opacity: .4; } }

.sc__cursor { position: absolute; z-index: 5; left: 70%; top: 40%; width: 2.4cqw; height: 2.4cqw; pointer-events: none; transition: left .9s var(--ease), top .9s var(--ease); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.sc__cursor.is-live { transition: none; }
.sc__foot { display: flex; justify-content: space-between; align-items: center; padding: 0 2cqw; font-size: 1.15cqw; color: #9585c4; border-top: 1px solid rgba(199, 125, 255, .15); }
.sc__transport b { color: #ff5c86; }
.sc__brand { color: #d9b8ff; font-weight: 700; }

/* videollamada de bienvenida */
.call {
    position: absolute; z-index: 3; right: 2.2%; bottom: 4%; width: 22%; padding: 0;
    border-radius: 1cqw; overflow: hidden; text-align: left;
    background: #0d0820; border: 1px solid rgba(206, 160, 255, .5);
    box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .6);
    transform-origin: 100% 100%; transform: scale(0); opacity: 0;
    transition: transform .8s var(--spring), opacity .4s;
}
body.call-on .call { transform: none; opacity: 1; }
.call__bar { display: flex; align-items: center; gap: .6cqw; padding: .6cqw 1cqw; font-size: .95cqw; color: #e2d3ff; background: rgba(58, 36, 112, .9); }
.call__bar i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #ff5c86; animation: blink 1.2s steps(2) infinite; }
.call__video { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 50% 70%, #5b2e89, #140e30); }
.call__video .prod { position: absolute; left: -12%; width: 124%; bottom: -14%; }
.call__say { position: absolute; left: 6%; top: 22%; padding: .4cqw 1cqw; border-radius: 1cqw; background: var(--paper); color: var(--paper-ink); font-family: var(--serif); font-size: 1.9cqw; min-height: 1em; opacity: 0; transition: opacity .3s; }
.call__say.is-on { opacity: 1; }

/* el productor en 3 capas (se usa en la llamada y en la ventana artista) */
.prod { position: relative; display: block; transform-origin: 50% 100%; animation: idle-body 4s ease-in-out 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 infinite; }
.is-waving .prod__hand--wave { animation: wave .8s ease-in-out 3; }
.is-waving .prod__hand--l { animation: l-pump .6s var(--spring) .9s 2; }
.is-talking .prod { animation: talk .16s ease-in-out infinite alternate; }
@keyframes idle-body { 0%, 100% { transform: none; } 30% { transform: rotate(-.8deg) translateY(-1.5%); } 65% { transform: rotate(.6deg); } }
@keyframes l-idle { 0%, 100% { transform: none; } 50% { transform: rotate(-2.5deg) translateY(-1%); } }
@keyframes wave { 0%, 100% { transform: none; } 25% { transform: rotate(-8deg); } 75% { transform: rotate(6deg); } }
@keyframes l-pump { 0%, 100% { transform: none; } 45% { transform: rotate(-6deg) translateY(-3%) scale(1.04); } }
@keyframes talk { to { transform: translateY(-1.2%) rotate(-.4deg); } }

.desk__hint {
    position: fixed; z-index: 5; left: 50%; bottom: 18px; translate: -50% 0;
    font-family: var(--mono); font-size: .75rem; padding: .5rem 1rem; border-radius: 999px;
    background: rgba(6, 4, 17, .7); border: 1px solid #4b3388; white-space: nowrap;
    transition: opacity .5s;
}
.desk__hint span { display: inline-block; animation: bob 1.3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
body.win-open .desk__hint, body.is-loading .desk__hint { opacity: 0; }

/* celular vertical: logo arriba y botones grandes abajo */
.desk__intro, .desk__quick { display: none; }
@media (orientation: portrait) {
    .desk__intro {
        display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
        position: fixed; left: 8vw; right: 8vw; top: max(70px, 9vh); z-index: 4; transition: opacity .6s, transform .8s var(--ease);
    }
    .desk__intro img { width: min(30vw, 150px); height: auto; filter: drop-shadow(0 0 20px rgba(199, 125, 255, .5)); }
    .desk__intro p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; color: #e6dbff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
    .desk__quick {
        display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
        position: fixed; left: 5vw; right: 5vw; bottom: 64px; z-index: 4; transition: opacity .6s, transform .8s var(--ease);
    }
    .desk__quick a {
        padding: .9rem 1rem; border-radius: 16px; text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
        background: linear-gradient(160deg, rgba(112, 66, 178, .92), rgba(66, 40, 128, .92)); border: 1px solid rgba(206, 160, 255, .55);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
    }
    .desk__quick a:active { transform: scale(.96); }
    body.is-loading .desk__intro, body.is-loading .desk__quick { opacity: 0; transform: translateY(16px); }
    body.win-open .desk__intro, body.win-open .desk__quick { opacity: 0; pointer-events: none; }
}

/* ============ Ventanas ============ */
.win {
    position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr;
    background:
        radial-gradient(ellipse 70% 50% at 80% 0%, rgba(164, 72, 197, .25), transparent 70%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(91, 46, 137, .3), transparent 70%),
        linear-gradient(180deg, #1a1038, #0b0718);
    clip-path: inset(var(--t, 20%) var(--r, 20%) var(--b, 20%) var(--l, 20%) round 12px);
    visibility: hidden; opacity: 0;
    transition: clip-path .8s var(--ease), opacity .4s, visibility 0s .8s;
}
.win.is-open { clip-path: inset(0 0 0 0 round 0); visibility: visible; opacity: 1; transition: clip-path .8s var(--ease), opacity .3s; }
.win__bar { display: flex; align-items: center; gap: 14px; padding: 76px 22px 12px; border-bottom: 1px solid rgba(199, 125, 255, .18); font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.win__bar .sc__dots i { width: 9px; height: 9px; }
.win__path b { color: var(--lilac); }
.win__close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(199, 125, 255, .15); font-size: 1.5rem; line-height: 1; color: var(--ink); transition: background .3s, transform .3s var(--ease); }
.win__close:hover { background: var(--lilac); color: var(--paper-ink); transform: rotate(90deg); }
.win__body { overflow-y: auto; overscroll-behavior: contain; padding: 6vh 7vw 10vh; -webkit-overflow-scrolling: touch; }
.win__body > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.win .reveal { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + .25s); }
.win.is-open .reveal { opacity: 1; translate: 0 0; }

.w-eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-top: 2.5rem; }
.w-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1; margin-block: .6rem 1rem; }
.w-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; color: #d4c7f0; }
.win__next { display: inline-block; margin-top: 4rem; font-family: var(--mono); font-size: .9rem; padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid #4b3388; transition: background .3s, color .3s; }
.win__next:hover { background: var(--lilac); color: var(--paper-ink); }
.win__next b { color: var(--lilac); }
.win__next:hover b { color: inherit; }

/* artista */
.art__hero { position: relative; display: flex; justify-content: center; margin-top: 0; }
.art__prod { width: min(560px, 100%); border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 75%, #5b2e89, #1a1038 70%); }
.art__prod .prod { margin-bottom: -6%; }
.bubble {
    position: absolute; right: max(0px, calc(50% - 400px)); top: 8%;
    background: var(--paper); color: var(--paper-ink); padding: .9rem 1.3rem 1rem; border-radius: 22px;
    box-shadow: 8px 10px 0 rgba(0, 0, 0, .35); transform: rotate(-3deg);
}
.bubble::after { content: ''; position: absolute; left: 16px; bottom: -16px; width: 30px; height: 26px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble__say { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; min-height: 1em; }
.bubble__say::after { content: '|'; color: var(--violet); animation: blink .8s steps(2) infinite; }
.bubble__sub { font-family: var(--mono); font-size: .8rem; margin-top: .3rem; }
.bubble__sub b { color: var(--violet); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stats div { padding: 1.2rem; border-radius: 16px; background: rgba(199, 125, 255, .08); border: 1px solid rgba(199, 125, 255, .18); }
.stats b { display: block; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.stats span { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.rules { list-style: none; counter-reset: r; display: grid; gap: 1rem; margin-top: 1rem; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 3.2rem 1fr; gap: .2rem 1rem; font-size: 1rem; color: #cfc2ec; line-height: 1.45; padding: 1rem 0; border-top: 1px solid rgba(199, 125, 255, .15); }
.rules li::before { content: counter(r, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); color: var(--lilac); }
.rules li b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--ink); line-height: 1.05; }

/* portafolio: cartas */
.deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; margin-top: 2.5rem; align-items: start; }
.pcard { opacity: 0; transform: translateY(80px) rotate(calc((var(--i) - 1) * 8deg)); transition: transform 1s var(--spring), opacity .5s; transition-delay: calc(var(--i) * 120ms + .35s); }
.win.is-open .pcard { opacity: 1; transform: rotate(calc((var(--i) - 1) * 1.5deg)); }
.pcard--featured { z-index: 1; }
.win.is-open .pcard--featured { transform: translateY(-10px); }
.pcard__front { position: relative; background: var(--paper); color: var(--paper-ink); padding: 1.5rem 1.4rem 1.3rem; border-radius: 18px; border: 2px solid #d9ccb9; display: flex; flex-direction: column; min-height: 100%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.pcard--featured .pcard__front { border: 3px solid var(--violet); box-shadow: 0 30px 70px -20px rgba(164, 72, 197, .8); }
.pcard__corner { position: absolute; top: .7rem; right: .9rem; font-size: 1.3rem; }
.pcard--featured .pcard__corner { color: #c0392b; }
.pcard__ribbon { position: absolute; top: -12px; left: 50%; translate: -50% 0; background: var(--violet); color: #fff; font-family: var(--mono); font-size: .68rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.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-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.03em; }
.pcard__price sup { font-size: .45em; position: relative; top: .35em; vertical-align: top; margin-right: 2px; }
.pcard__price small { font-family: var(--mono); font-size: .25em; font-weight: 400; color: #7a6a86; margin-left: 4px; }
.pcard--featured .pcard__price { color: var(--violet); }
.pcard__pitch { font-size: .9rem; line-height: 1.35; color: #4a3a55; margin: .5rem 0 1rem; }
.pcard__items { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.pcard__items li { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; line-height: 1.3; color: #3b2d45; }
.pcard__items b { display: block; font-size: .92rem; 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: auto; text-align: center; padding: .8rem 1rem; border-radius: 999px; background: var(--paper-ink); color: var(--paper); font-weight: 700; transition: background .3s, transform .3s var(--ease); }
.pcard__cta:hover { background: var(--violet); transform: translateY(-2px); }
.pcard--featured .pcard__cta { background: var(--violet); color: #fff; }

/* plugin: pedales */
.pedals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.pedal { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem; border-radius: 20px; background: rgba(199, 125, 255, .07); border: 1px solid rgba(199, 125, 255, .18); opacity: 0; transform: translateY(40px); transition: transform .9s var(--ease), opacity .5s, background .3s; transition-delay: calc(var(--i) * 90ms + .3s); }
.win.is-open .pedal { opacity: 1; transform: none; }
.pedal:hover { background: rgba(199, 125, 255, .14); }
.pedal svg { width: 100%; height: auto; }
.pedal .pknob { transition: transform .8s var(--spring); }
.pedal:hover .pknob { transform: rotate(110deg); }
.pedal__type { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; color: var(--muted); }
.pedal__name { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; margin: .25rem 0 .4rem; }
.pedal__desc { font-size: .9rem; color: #cfc2ec; line-height: 1.4; }
.pedal__foot { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; font-family: var(--mono); font-size: .85rem; }
.pedal__foot a { color: var(--lilac); }

/* cita */
.cita { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin-top: 2rem; }
.cita__plans { grid-column: 1 / -1; border: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.cita__plans legend { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: .7rem; }
.cita__plans label { cursor: pointer; }
.cita__plans input { position: absolute; opacity: 0; pointer-events: none; }
.cita__plans span { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1px solid #4b3388; font-size: .9rem; transition: all .25s; }
.cita__plans input:checked + span { background: var(--lilac); color: var(--paper-ink); border-color: var(--lilac); font-weight: 700; }
.cita__plans input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cita > label { display: grid; gap: .4rem; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.cita small { color: #6f61a0; }
.cita input:not([type=radio]), .cita textarea {
    width: 100%; background: rgba(20, 12, 46, .7); border: 1px solid #3b2a63; border-radius: 12px;
    color: var(--ink); font: inherit; font-family: var(--sans); font-size: 1rem; padding: .8rem 1rem; color-scheme: dark;
}
.cita input:focus, .cita textarea:focus { outline: none; border-color: var(--lilac); }
.cita__msg { grid-column: 1 / -1; }
.cita button { grid-column: 1 / -1; justify-self: start; padding: .9rem 1.6rem; border-radius: 999px; background: var(--lilac); color: var(--paper-ink); font-weight: 700; transition: transform .3s var(--ease); }
.cita button:hover { transform: translateY(-2px); }
.form-status { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(199, 125, 255, .14); color: var(--lilac); }
.form-status--error { background: rgba(255, 92, 134, .14); color: #ff8aa8; }

@media (max-width: 700px) {
    .hud { padding: 12px 14px; }
    .hud__brand span { display: none; }
    .win__bar { padding-top: 70px; }
    .stats { grid-template-columns: 1fr; }
    .cita { grid-template-columns: 1fr; }
    .pedal { grid-template-columns: 88px 1fr; }
    .bubble { right: 0; top: 4%; }
}
@container (max-width: 520px) {
    .clip { min-width: 21cqw; padding: 1.4cqw 2cqw; }
    .clip__name { font-size: 3.4cqw; }
    .clip__sub { font-size: 1.8cqw; }
    .sc__bar { font-size: 2.2cqw; }
    .call__bar { font-size: 1.6cqw; }
    .call__say { font-size: 2.8cqw; }
    .call { width: 25%; }
    .clip--portafolio { left: 43%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}
