/* ============================================================
   Detalles — "Papel y rubor"
   Sistema de diseño: papel marfil, tinta berenjena, rosa
   frambuesa y el hilo rojo del destino.
   ============================================================ */

:root {
    --paper: #FBF6EF; --paper-2: #F4EADF; --card: #FFFDF9;
    --ink: #2A1A2E; --ink-2: #5E4B63; --ink-3: #9A8A9C;
    --line: rgba(42,26,46,.10); --line-2: rgba(42,26,46,.16);
    --rose: #CF3562; --rose-bright: #F0567E; --rose-deep: #A8244B;
    --blush: #FFE0E6; --peach: #FFD0B5; --lilac: #E2D4FF;
    --butter: #FFEDB0; --mint: #CDEFE0; --gold: #C9A15B;
    --night: #1A1024; --night-2: #2A1838;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-hand: "Caveat", cursive;
    --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-xl: 36px; --r-pill: 999px;
    --shadow-1: 0 1px 2px rgba(42,26,46,.06), 0 4px 14px -6px rgba(42,26,46,.10);
    --shadow-2: 0 2px 6px rgba(42,26,46,.06), 0 18px 40px -14px rgba(42,26,46,.22);
    --shadow-rose: 0 10px 30px -10px rgba(207,53,98,.55);
    --ease-out: cubic-bezier(.22,1,.36,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}
body {
    overflow-x: clip;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; }
a { color: var(--rose-deep); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--blush); }
:focus-visible { outline: 3px solid rgba(207,53,98,.45); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0 0; scroll-margin-top: 90px; }

/* ---------- Fondo vivo: aurora + grano ---------- */

.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; opacity: .7; will-change: transform; }
.aurora .a1 { width: 62vmax; height: 62vmax; left: -18vmax; top: -20vmax;
    background: radial-gradient(circle, var(--peach) 0%, transparent 65%);
    animation: aur1 34s ease-in-out infinite alternate; }
.aurora .a2 { width: 56vmax; height: 56vmax; right: -16vmax; top: -14vmax;
    background: radial-gradient(circle, var(--blush) 0%, transparent 65%);
    animation: aur2 40s ease-in-out infinite alternate; }
.aurora .a3 { width: 50vmax; height: 50vmax; left: -14vmax; top: 34vh;
    background: radial-gradient(circle, var(--lilac) 0%, transparent 65%);
    animation: aur3 30s ease-in-out infinite alternate; }
.aurora .a4 { width: 58vmax; height: 58vmax; right: -20vmax; bottom: -24vmax;
    background: radial-gradient(circle, var(--butter) 0%, transparent 65%);
    animation: aur4 28s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(9vmax, 6vmax) scale(1.1); } }
@keyframes aur2 { to { transform: translate(-8vmax, 9vmax) scale(.92); } }
@keyframes aur3 { to { transform: translate(10vmax, -7vmax) scale(1.08); } }
@keyframes aur4 { to { transform: translate(-9vmax, -8vmax) scale(1.12); } }

.grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.10 0 0 0 0 0.18 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía ---------- */

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 480; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0; }
h3 { font-size: 1.45rem; font-weight: 550; line-height: 1.25; }
h2 em, .hero-title em {
    font-style: italic; color: var(--rose);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
p { color: var(--ink-2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--rose-deep);
}
.eyebrow .ic { width: 15px; height: 15px; color: var(--gold); }

.ic { width: 1.15em; height: 1.15em; flex: none; }
.ta { display: inline-block; width: 1px; height: 1em; }

/* ---------- Botones ---------- */

.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill);
    font-family: var(--font-body); font-size: .98rem; font-weight: 600;
    text-decoration: none; color: var(--ink); background: var(--card);
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out),
                background .25s, color .25s;
    overflow: hidden; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 19px; height: 19px; transition: transform .3s var(--ease-spring); }

.btn-primary { background: var(--rose); color: #fff; box-shadow: var(--shadow-rose); }
.btn-primary::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-110%); transition: transform .6s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--rose-deep); }
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary:hover .ic { transform: translateX(4px); }

.btn-ghost { border: 1.5px solid var(--line-2); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-3); background: var(--card); }

.btn-soft { background: var(--blush); color: var(--rose-deep); }
.btn-soft:hover { transform: translateY(-2px); }

/* ---------- Chips, badges, toast ---------- */

.chip {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
    border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--card);
    font-size: .88rem; font-weight: 600; color: var(--ink-2);
    transition: all .25s var(--ease-out);
}
.chip b { font-size: .72rem; font-weight: 700; color: var(--ink-3); background: var(--paper-2);
    border-radius: var(--r-pill); padding: 1px 8px; transition: all .25s; }
.chip:hover { border-color: var(--line-2); transform: translateY(-1px); }
.chip.is-on { background: var(--night); color: var(--paper); border-color: var(--night); }
.chip.is-on b { background: rgba(255,255,255,.14); color: var(--paper); }

.badge {
    display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px;
    border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase;
}
.badge-new { background: var(--butter); color: #7a5a12; border: 1px solid var(--gold); }

.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 90;
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    background: var(--night); color: var(--paper); border-radius: var(--r-pill);
    padding: 12px 22px; font-size: .9rem; font-weight: 500;
    box-shadow: var(--shadow-2); transition: opacity .3s, transform .3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Nav ---------- */

.nav { position: sticky; top: 0; z-index: 40; height: 76px; }
.nav-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav::before {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: rgba(251,246,239,.78);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1);
    transition: opacity .3s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav-in > * { position: relative; }

.brand {
    font-family: var(--font-display); font-style: italic; font-weight: 600;
    font-size: 1.55rem; color: var(--ink); text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px; letter-spacing: -0.01em; white-space: nowrap;
}
.brand-tt { height: 18px; width: auto; display: block; margin-top: 2px; }
.brand-heart { color: var(--rose-bright); display: inline-flex; }
.brand-heart .ic { width: .62em; height: .62em; animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat {
    0%, 28%, 100% { transform: scale(1); }
    7% { transform: scale(1.28); } 14% { transform: scale(1); } 21% { transform: scale(1.18); }
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
    color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.btn-nav { height: 44px; padding: 0 20px; font-size: .9rem; }

/* ---------- Hilo rojo ---------- */

.thread { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--rose-bright); stroke-width: 2px;
    stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.thread-pen { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    color: var(--rose); pointer-events: none; }

/* ---------- Hero ---------- */

.hero {
    display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px;
    align-items: center; padding-top: 64px; padding-bottom: 40px;
    position: relative; z-index: 2;
}
.hero-title {
    font-size: clamp(2.45rem, 5.2vw, 4.6rem); font-weight: 480; line-height: 1;
    letter-spacing: -0.025em; margin: 22px 0 26px;
    font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}
.rotator {
    position: relative; display: inline-block; vertical-align: bottom;
    white-space: nowrap; transition: width .38s var(--ease-out);
}
.rotator-cur {
    display: inline-block; will-change: transform, filter, opacity;
    font-style: italic; color: var(--rose);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.rotator-cur.out { transition: transform .38s var(--ease-out), opacity .38s, filter .38s;
    transform: translateY(-0.55em); opacity: 0; filter: blur(6px); }
.rotator-cur.in { animation: rotIn .45s var(--ease-out); }
@keyframes rotIn { from { transform: translateY(.6em); opacity: 0; filter: blur(6px); } }
.rotator-line {
    position: absolute; left: -2%; right: -2%; bottom: -0.14em; width: 104%; height: .22em;
}
.rotator-line path {
    fill: none; stroke: var(--gold); stroke-width: 3px; stroke-linecap: round;
    stroke-dasharray: 600; stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.1s var(--ease-out) .45s;
}
.hero-sub { font-size: 1.15rem; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta {
    list-style: none; padding: 0; margin-top: 26px;
    display: flex; gap: 22px; flex-wrap: wrap;
    font-size: .9rem; color: var(--ink-2);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { width: 16px; height: 16px; color: var(--rose); }

/* --- Visual del hero --- */

.hero-visual { position: relative; height: 540px; z-index: 2; }
.hv-par {
    position: absolute;
    transform: translate3d(calc(var(--px, 0) * var(--fx, 0) * 1px),
                          calc(var(--py, 0) * var(--fy, 0) * 1px), 0);
    will-change: transform;
}
.bob { animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 0%,100% { transform: rotate(var(--r,0deg)) translateY(0); }
    50% { transform: rotate(var(--r,0deg)) translateY(-9px); } }

.hv-phonew { --fx: -9; --fy: -7; left: 50%; top: 50%; margin: -302px 0 0 -145px; z-index: 3; }
.phone {
    position: relative; width: 290px;
    background: var(--night); border: 10px solid var(--night); border-radius: 46px;
    box-shadow: var(--shadow-2), 0 30px 60px -20px rgba(26,16,36,.45);
}
.phone-island {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 26px; border-radius: var(--r-pill); background: var(--night);
    z-index: 4;
}
.phone-screen { position: relative; width: 100%; aspect-ratio: 390 / 844; border-radius: 36px; overflow: hidden; background: var(--night-2); }
.phone-screen iframe, .frame-live iframe {
    position: absolute; left: 0; top: 0; border: 0; pointer-events: none;
    transform-origin: 0 0; opacity: 0; transition: opacity .25s;
}
.phone-screen iframe.on, .frame-live iframe.on { opacity: 1; }

.hv-envw { --fx: 14; --fy: 10; left: -4%; top: 2%; z-index: 2; }
.env {
    position: relative; width: 230px; height: 150px;
    background: var(--card); border-radius: 10px;
    box-shadow: var(--shadow-2);
}
.env::before {
    content: ""; position: absolute; inset: 0; border-radius: 10px;
    background: linear-gradient(160deg, rgba(42,26,46,.05), transparent 55%);
}
.env-flap {
    position: absolute; left: 0; top: 0; width: 100%; height: 58%;
    background: var(--paper-2); border-radius: 10px 10px 0 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    box-shadow: inset 0 -2px 0 rgba(42,26,46,.06);
}
.env-seal {
    position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%);
    width: 44px; height: 44px; border-radius: 50%; background: var(--rose);
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,.22), 0 2px 6px rgba(207,53,98,.4);
}
.env-seal .ic { width: 19px; height: 19px; }
.env-note {
    position: absolute; left: 18px; bottom: 12px;
    font-family: var(--font-hand); font-size: 1.5rem; font-weight: 600;
    color: var(--rose-deep); transform: rotate(-4deg);
}

.hv-polaroidw { --fx: 20; --fy: 15; right: -2%; bottom: 0; z-index: 2; }
.polaroid {
    width: 170px; height: 205px; background: var(--card); border-radius: 6px;
    padding: 12px 12px 0; box-shadow: var(--shadow-2);
    display: flex; flex-direction: column;
}
.polaroid-img {
    height: 140px; border-radius: 3px;
    background: linear-gradient(150deg, var(--lilac), var(--peach) 55%, var(--blush));
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9);
}
.polaroid-img .ic { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(207,53,98,.4)); }
.polaroid-cap {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-hand); font-size: 1.45rem; font-weight: 600; color: var(--ink-2);
    transform: rotate(-3deg);
}

.hv-spark { position: absolute; fill: var(--rose-bright); opacity: .8; animation: twk 3.2s ease-in-out infinite; }
.hv-spark.s1 { width: 22px; left: 6%; bottom: 18%; animation-delay: -.6s; }
.hv-spark.s2 { width: 15px; right: 12%; top: 6%; animation-delay: -1.4s; }
.hv-spark.s3 { width: 18px; left: 38%; top: -2%; animation-delay: -2.2s; fill: var(--gold); }
.hv-spark.s4 { width: 13px; right: -2%; top: 42%; animation-delay: -.9s; }
.hv-spark.s5 { width: 16px; left: 0; top: 55%; animation-delay: -2.8s; fill: var(--peach); }
@keyframes twk { 0%,100% { transform: scale(.65) rotate(-8deg); opacity: .35; }
    50% { transform: scale(1.1) rotate(8deg); opacity: .9; } }

.hv-note { position: absolute; left: -9%; bottom: 6%; width: 120px; text-align: center; }
.hv-note svg { width: 110px; height: 82px; }
.hv-note path { stroke: var(--rose-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hv-note span {
    display: block; margin-top: -12px; font-family: var(--font-hand);
    font-size: 1.5rem; font-weight: 600; color: var(--rose-deep); transform: rotate(-4deg);
}
.hv-exit { position: absolute; right: -4%; top: 46%; }

/* ---------- Cintas ---------- */

.ribbons { position: relative; z-index: 2; margin: 70px 0 0; height: 150px; overflow: hidden; }
.ribbon {
    position: absolute; left: -4vw; right: -4vw; overflow: hidden;
    padding: 15px 0;
}
.ribbon-front { background: var(--rose); transform: rotate(-2.2deg); top: 34px;
    box-shadow: var(--shadow-rose); }
.ribbon-back { background: var(--butter); transform: rotate(2deg); top: 40px; }
.ribbon-track { display: flex; width: max-content; animation: mq 57s linear infinite; }
.ribbon-back .ribbon-track { animation: mq 82s linear infinite reverse; }
.ribbons:hover .ribbon-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.ribbon-seq {
    display: flex; align-items: center; gap: 34px; padding-right: 34px;
    font-family: var(--font-display); font-style: italic; font-size: 1.6rem;
    white-space: nowrap; color: var(--paper);
}
.ribbon-seq .ic { width: 19px; height: 19px; color: var(--butter); }
.ribbon-back .ribbon-seq { color: rgba(42,26,46,.3); }
.ribbon-back .ribbon-seq .ic { color: rgba(201,161,91,.5); }

/* ---------- Cómo funciona ---------- */

.section-head { position: relative; z-index: 2; margin-bottom: 54px; }
.how { position: relative; }
.section-head .eyebrow { margin-bottom: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.ta-steps-out { position: absolute; right: -3%; top: 66px; }
.step { display: flex; flex-direction: column; }
.step-num {
    position: relative; z-index: 2; display: inline-block; align-self: flex-start; margin: 0 0 10px 30px;
    font-family: var(--font-display); font-style: italic; font-size: 4.2rem; line-height: .9;
    color: transparent; -webkit-text-stroke: 1.5px var(--gold);
}
.step-card {
    position: relative; z-index: 2; flex: 1;
    background: var(--card); border-radius: var(--r-lg); padding: 30px;
    box-shadow: var(--shadow-1); border: 1px solid var(--line);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-ic {
    width: 56px; height: 56px; border-radius: 50%; background: var(--blush); flex: none;
    display: flex; align-items: center; justify-content: center; color: var(--rose);
}
.step-ic .ic { width: 24px; height: 24px; }
.step-card:hover .step-ic { animation: wig .5s var(--ease-spring); }
@keyframes wig { 25% { transform: rotate(-9deg); } 60% { transform: rotate(7deg); } }
.step-card p { font-size: .96rem; }

/* ---------- Galería ---------- */

.gallery { position: relative; }
.gallery-head {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(320px, 1fr) auto; gap: 30px;
    align-items: end; margin-bottom: 46px;
}
.gallery-head .eyebrow { margin-bottom: 14px; }
.gallery-head h2 em { position: relative; }
.gallery-head p { margin-top: 16px; max-width: 46ch; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    grid-auto-flow: dense; padding-bottom: 120px;
}
.dcard {
    --accent-soft: color-mix(in srgb, var(--accent, #cf3562) 38%, transparent);
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-1);
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
    transform-style: preserve-3d;
}
.dcard::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255,255,255,.5), transparent 65%);
    transition: opacity .3s; z-index: 3;
}
.dcard:hover { transform: translateY(-6px); box-shadow: 0 2px 6px rgba(42,26,46,.05), 0 24px 48px -14px var(--accent-soft); }
@media (hover: hover) and (pointer: fine) {
    .dcard:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
    .dcard:hover::after { opacity: 1; }
}

.dcard-frame {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--night); border-radius: 22px; margin: 10px 10px 0;
}
.dcard-skel {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(80% 90% at 50% 40%, var(--accent-soft) 0%, var(--night) 75%);
    color: var(--rose-bright);
}
.dcard-skel .ic { width: 34px; height: 34px; animation: heartbeat 2.4s ease-in-out infinite; }
.dcard-frame iframe {
    position: absolute; left: 0; top: 0; border: 0; pointer-events: none;
    transform-origin: 0 0; opacity: 0; transition: opacity .25s;
}
.dcard-frame iframe.on { opacity: 1; }
.dcard .badge { position: absolute; top: 20px; left: 20px; z-index: 4; box-shadow: var(--shadow-1); }

.dcard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.dcard-cat {
    font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--rose-deep); margin-bottom: 8px;
}
.dcard-title { margin-bottom: 8px; }
.dcard-desc {
    font-size: .92rem; line-height: 1.55; color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dcard-foot { display: flex; align-items: center; margin-top: auto; padding-top: 18px; }
.feats { display: flex; gap: 8px; flex-wrap: wrap; }
.feat {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 600; color: var(--ink-2);
    background: var(--paper-2); border-radius: var(--r-pill); padding: 4px 11px;
}
.feat .ic { width: 13px; height: 13px; color: var(--rose); }
.dcard-arrow {
    margin-left: auto; width: 42px; height: 42px; border-radius: 50%; flex: none;
    border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center;
    color: var(--ink); transition: all .35s var(--ease-spring);
}
.dcard-arrow .ic { width: 17px; height: 17px; transition: transform .35s var(--ease-spring); }
.dcard:hover .dcard-arrow { background: var(--rose); border-color: var(--rose); color: #fff; }
.dcard:hover .dcard-arrow .ic { transform: rotate(-45deg); }
.dcard[hidden] { display: none; }

/* Paginación de la colección */
/* solo con JS: sin él se ve todo y no hay botón */
.js .cards:not(.show-all):not(.is-filtered) > .dcard:nth-child(n+11) { display: none; }
.cards-more { grid-column: 1 / -1; display: none; justify-content: center; position: relative; z-index: 2; }
.js .cards:not(.show-all):not(.is-filtered) > .cards-more { display: flex; }

/* Tarjeta destacada */
@media (min-width: 1100px) {
    .dcard.is-featured { grid-column: span 2; flex-direction: row; }
    .dcard.is-featured .dcard-frame { flex: 0 0 58%; aspect-ratio: auto; min-height: 330px; margin: 10px 0 10px 10px; }
    .dcard.is-featured .dcard-body { flex: 1; justify-content: center; padding: 30px 30px; }
    .dcard.is-featured .dcard-title { font-size: 2.2rem; }
    .dcard.is-featured .dcard-desc { font-size: 1rem; -webkit-line-clamp: 3; line-clamp: 3; }
}

/* ---------- Footer ---------- */

.footer { position: relative; }
.footer-wave { display: block; width: 100%; height: 80px; margin-bottom: -1px; }
.footer-night { position: relative; background: var(--night); padding: 30px 0 46px; overflow: hidden; }
.ta-foot-in { position: absolute; left: 1%; top: 16px; }
.footer-stars { position: absolute; inset: 0; opacity: .8; }
.footer-stars::before, .footer-stars::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.85), transparent 100%),
        radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.6), transparent 100%),
        radial-gradient(1.5px 1.5px at 56% 18%, rgba(255,255,255,.9), transparent 100%),
        radial-gradient(1px 1px at 72% 55%, rgba(255,255,255,.55), transparent 100%),
        radial-gradient(1px 1px at 88% 30%, rgba(255,255,255,.8), transparent 100%),
        radial-gradient(1.5px 1.5px at 20% 82%, rgba(255,237,176,.7), transparent 100%),
        radial-gradient(1px 1px at 45% 42%, rgba(255,255,255,.5), transparent 100%),
        radial-gradient(1px 1px at 64% 80%, rgba(255,255,255,.65), transparent 100%),
        radial-gradient(1.5px 1.5px at 82% 74%, rgba(240,86,126,.8), transparent 100%),
        radial-gradient(1px 1px at 8% 52%, rgba(255,255,255,.5), transparent 100%);
    animation: stw 4.6s ease-in-out infinite alternate;
}
.footer-stars::after { animation-delay: -2.3s; animation-duration: 6s; transform: scaleY(-1); }
@keyframes stw { from { opacity: .35; } to { opacity: .9; } }

.footer-in { position: relative; z-index: 2; text-align: center; padding-top: 30px; }
.footer-quote {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.25;
    color: var(--paper); max-width: 24ch; margin: 0 auto;
}
.footer-quote2 {
    position: relative;
    margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    color: var(--rose-bright); font-weight: 500;
}
.footer-quote2 em { font-style: italic; }
.footer-quote2 .ta { height: .9em; }
.ta-knot { margin-left: 50px; }
.footer-bottom {
    position: relative; z-index: 2; margin-top: 70px; padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.brand-light { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; padding: 8px 0; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,.45); font-size: .84rem; display: inline-flex; align-items: center; gap: 5px; }
.footer-heart { color: var(--rose-bright); display: inline-flex; }
.footer-heart .ic { width: 13px; height: 13px; }
.footer-brand { color: rgba(255,255,255,.4); font-size: .76rem; display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; }
.footer-brand img { height: 16px; width: auto; opacity: .8; }

/* ---------- Página de error ---------- */

.error-main { text-align: center; padding: 110px 24px 130px; }
.error-art { width: 150px; margin: 0 auto 26px; }
.error-sway { transform-origin: 60px 96px; animation: sway 4.5s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.error-title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
.error-msg { max-width: 44ch; margin: 0 auto 30px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in {
    opacity: 1; transform: none;
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
}
/* la galería llega a 37 tarjetas: el escalonado se topa en la 3ª para no demorar el scroll */
.js .cards .reveal.in { transition-delay: calc(min(var(--i, 0), 3) * 80ms); }

/* ---------- Utilidades ---------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.btn-mini {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--card);
    font-size: .82rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
    white-space: nowrap; transition: all .25s var(--ease-out);
}
.btn-mini:hover { border-color: var(--rose); color: var(--rose-deep); transform: translateY(-1px); }
.btn-mini .ic { width: 14px; height: 14px; }
.nav-back { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-back:hover { color: var(--rose-deep); }
.nav-back .ic { width: 15px; height: 15px; }

/* ---------- Estudio (detalle.php) ---------- */

.studio {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: 56px; row-gap: 0; grid-template-rows: repeat(5, auto) 1fr;
    padding-top: 46px; padding-bottom: 110px; align-items: start;
}
.studio > * { min-width: 0; }
.pv { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 100px; z-index: 2; }
.studio > :not(.pv) { grid-column: 2; position: relative; z-index: 2; }

.pv-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.seg {
    display: inline-flex; gap: 2px; padding: 4px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
.seg-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
    border: 0; border-radius: var(--r-pill); background: transparent;
    color: var(--ink-2); font-size: .85rem; font-weight: 600;
}
.seg-btn .ic { width: 15px; height: 15px; }
.seg-btn.is-on { background: var(--night); color: var(--paper); }
.pv-replay {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2);
    display: flex; align-items: center; justify-content: center;
    transition: all .3s var(--ease-out);
}
.pv-replay:hover { color: var(--rose); border-color: var(--rose); transform: rotate(-40deg); }
.pv-replay .ic { width: 18px; height: 18px; }
.pv-status {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    font-size: .82rem; font-weight: 600; color: var(--ink-2);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 14px;
}
.pv-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fbf8f; animation: pulse 2s ease-in-out infinite; }
.pv-status.is-busy .pv-dot { background: var(--gold); }
.pv-status.is-err .pv-dot { background: var(--rose); }
@keyframes pulse { 50% { opacity: .3; } }

.pv-stage {
    position: relative; margin: 0 auto; width: 290px;
    background: var(--night); border: 10px solid var(--night); border-radius: 46px;
    box-shadow: var(--shadow-2), 0 30px 60px -20px rgba(26,16,36,.45);
    transition: border-radius .3s;
}
.pv-view { position: relative; aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; background: var(--night-2); }
.pv-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .3s; }
.pv-frame.is-front { opacity: 1; }
.pv-island {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 26px; border-radius: var(--r-pill); background: var(--night); z-index: 4;
}
.pv-bbar { display: none; }
.pv-stage.dev-desktop { width: 100%; max-width: 640px; border-radius: 16px; border-width: 8px; }
.pv-stage.dev-desktop .pv-island { display: none; }
.pv-stage.dev-desktop .pv-bbar {
    display: flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 14px; background: var(--night);
}
.pv-bbar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.pv-stage.dev-desktop .pv-view { aspect-ratio: 1280 / 800; border-radius: 7px; }
.pv-close {
    display: none; position: absolute; top: 18px; right: 18px; z-index: 5;
    align-items: center; gap: 8px; height: 42px; padding: 0 18px;
    border: 0; border-radius: var(--r-pill); background: var(--night); color: var(--paper);
    font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-2);
}
.pv.is-full {
    position: fixed; inset: 0; z-index: 80; margin: 0;
    background: rgba(251,246,239,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.pv.is-full .pv-close { display: inline-flex; }
.pv-fab {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70;
    display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px;
    border: 0; border-radius: var(--r-pill); background: var(--night); color: var(--paper);
    font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-2);
}
.pv-fab .ic { width: 17px; height: 17px; }
.pv-fab[hidden] { display: none; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--rose-deep); }
.studio-cat { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.studio-title { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 18px; }
.demo-link {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 10px 10px 10px 16px; box-shadow: var(--shadow-1); margin-bottom: 22px;
}
.demo-link-ic { color: var(--rose); display: flex; flex: none; }
.demo-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; color: var(--ink-2); }
.studio-desc { font-size: 1.1rem; margin-bottom: 32px; }
.studio-h2 { display: flex; align-items: center; gap: 10px; font-size: 1.9rem; margin-bottom: 6px; }
.studio-h2 .ic { color: var(--rose); width: 22px; height: 22px; }
.studio-h2sub { color: var(--ink-3); font-size: .92rem; margin-bottom: 22px; }

.panel {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px; box-shadow: var(--shadow-1); margin-bottom: 20px;
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel-ic {
    width: 42px; height: 42px; border-radius: 50%; background: var(--blush); flex: none;
    display: flex; align-items: center; justify-content: center; color: var(--rose);
}
.panel-ic .ic { width: 20px; height: 20px; }
.panel-head h3 { font-size: 1.25rem; }
.fld { margin-bottom: 18px; }
.fld:last-child { margin-bottom: 0; }
.fld-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.fld-count { font-size: .76rem; font-weight: 600; color: var(--ink-3); }
.fld-count.warn { color: var(--rose-deep); }
.fld-hex { font-size: .78rem; font-weight: 600; color: var(--ink-3); font-family: ui-monospace, monospace; }
.fld input[data-kind="text"], .fld input[data-kind="date"], .fld textarea {
    width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px;
    border: 1.5px solid var(--line-2); background: var(--card);
    font: inherit; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.fld input[data-kind="text"], .fld input[data-kind="date"] { height: 52px; }
.fld input[data-kind="date"] { color-scheme: light; accent-color: var(--rose); }
.fld textarea { min-height: 128px; padding: 14px 16px; resize: none; line-height: 1.6; }
.fld input[data-kind="text"]:focus, .fld input[data-kind="date"]:focus, .fld textarea:focus {
    outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(207,53,98,.14);
}

/* Fotos */
.ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ptile {
    position: relative; display: block; aspect-ratio: 4 / 5; cursor: pointer; overflow: hidden;
    border: 2px dashed var(--line-2); border-radius: 18px; background: var(--paper-2);
    transition: border-color .25s, background .25s, box-shadow .25s;
}
.ptile:hover { border-color: var(--rose-bright); }
.ptile:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(207,53,98,.14); }
.ptile.is-over { border-color: var(--rose); background: var(--blush); }
.ptile input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ptile-empty {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 12px;
}
.ptile-empty .ic { width: 26px; height: 26px; color: var(--rose); }
.ptile-empty b { font-size: .88rem; color: var(--ink-2); }
.ptile-empty i { font-style: normal; font-size: .72rem; color: var(--ink-3); }
.ptile-view { position: absolute; inset: 8px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-1); padding: 6px 6px 24px; display: none; }
.ptile.has-photo .ptile-view { display: block; }
.ptile.has-photo .ptile-empty { display: none; }
.ptile-view img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.ptile-change { position: absolute; left: 6px; right: 6px; bottom: 2px; text-align: center; font-size: .68rem; font-weight: 600; color: var(--ink-3); }
.ptile-rm { margin-top: 6px; background: none; border: 0; color: var(--rose-deep); font-size: .78rem; font-weight: 600; padding: 2px 4px; }
.ptile-msg { font-size: .74rem; color: var(--rose-deep); margin-top: 4px; }
.ptile-cap { display: block; margin-top: 8px; }
.ptile-cap input {
    width: 100%; border: 0; border-bottom: 1.5px dashed var(--line-2); background: transparent;
    font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink-2); padding: 3px 4px;
}
.ptile-cap input:focus { outline: none; border-color: var(--rose); }

/* Colores */
.swatches { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.swatch {
    display: none; width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: var(--sw); box-shadow: 0 0 0 1.5px var(--line-2), inset 0 0 0 2.5px var(--card);
    position: relative; transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.js .swatch { display: block; }
.swatch:hover { transform: scale(1.12); }
.swatch.is-on { box-shadow: 0 0 0 2.5px var(--rose); }
.swatch.is-on::after {
    content: ""; position: absolute; inset: 0;
    background: var(--chk, #fff);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
}
.swatch-custom {
    position: relative; display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
    background: conic-gradient(#ff4d8d, #ffcc33, #7bc8a4, #5b8def, #9b6dff, #ff4d8d);
    box-shadow: 0 0 0 1.5px var(--line-2); overflow: hidden; flex: none;
}
.swatch-custom::after {
    content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.15rem; text-shadow: 0 1px 3px rgba(0,0,0,.45); pointer-events: none;
}
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatches.is-custom .swatch-custom { box-shadow: 0 0 0 2.5px var(--rose); }

/* Canción */
.song-inp {
    display: flex; align-items: center; gap: 10px; padding: 0 14px;
    border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--card);
    transition: border-color .2s, box-shadow .2s;
}
.song-inp .ic { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.song-inp input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; font: inherit; color: var(--ink); }
.song-inp input:focus { outline: none; }
.song-inp:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(207,53,98,.14); }
.song-inp input[aria-invalid="true"] { color: var(--rose-deep); }
.song-hint { font-size: .82rem; color: var(--ink-3); margin-top: 8px; }
.song-hint.warn { color: var(--rose-deep); }
.vinyl {
    display: flex; align-items: center; gap: 14px;
    background: var(--night); border-radius: 16px; padding: 12px 14px; margin-top: 10px; color: var(--paper);
}
.vinyl[hidden] { display: none; }
.vinyl-disc {
    position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden;
    box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.vinyl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.vinyl-disc::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 2;
    background: repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,.28) 0 1px, transparent 1px 4px);
}
.vinyl-hole { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -7px; background: var(--paper); border-radius: 50%; z-index: 3; }
.vinyl.is-playing .vinyl-img { animation: spin 3.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl-info { flex: 1; min-width: 0; }
.vinyl-info b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vinyl-info > span { display: block; font-size: .76rem; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vinyl-info > .vinyl-ok { display: inline-flex; align-items: center; gap: 5px; color: #8fe3bd; font-size: .74rem; font-weight: 600; margin-top: 3px; }
.vinyl-ok .ic { width: 12px; height: 12px; }
.vinyl-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; flex: none;
    background: var(--rose); color: #fff; border: 0; border-radius: var(--r-pill);
    font-size: .82rem; font-weight: 600;
}
.vinyl-btn .ic { width: 14px; height: 14px; }
.song-note { font-size: .8rem; color: var(--ink-3); margin-top: 10px; }

.btn-create { width: 100%; height: 58px; font-size: 1.05rem; margin-top: 6px; }
.btn-create.is-busy { opacity: .75; pointer-events: none; }
.btn-create.is-busy::before {
    content: ""; width: 18px; height: 18px; flex: none;
    border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
    animation: spin .7s linear infinite;
}
.create-note {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: .85rem; color: var(--ink-3); margin-top: 14px;
}
.create-note .ic { width: 14px; height: 14px; }

/* ---------- Página "listo" ---------- */

.listo {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 60px; align-items: center; padding: 50px 0 110px; position: relative; z-index: 2;
}
.listo-visual { display: flex; justify-content: center; align-self: start; }
.listo-title { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.05; margin: 16px 0; }
.listo-title em { font-style: italic; color: var(--rose); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.listo-sub { font-size: 1.1rem; max-width: 44ch; margin-bottom: 26px; }
.share-link {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px 12px 12px 16px; box-shadow: var(--shadow-1); margin-bottom: 14px;
}
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.btn-copy { height: 44px; }
.qr-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px; box-shadow: var(--shadow-1); text-align: center; margin-bottom: 20px;
}
.qr-canvas { width: 264px; height: 264px; margin: 0 auto; border-radius: 18px; }
.qr-note { font-family: var(--font-hand); font-size: 1.5rem; font-weight: 600; color: var(--rose-deep); transform: rotate(-3deg); margin: 8px 0 14px; }
.qr-tip { font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink-3); transform: rotate(-2deg); margin-top: 16px; }
.notice {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--butter); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 22px;
}
.notice-ic { color: #8a6512; flex: none; margin-top: 2px; }
.notice-ic .ic { width: 19px; height: 19px; }
.notice p { font-size: .9rem; color: #6b5318; }

/* ---------- Admin ---------- */

.adm { padding: 50px 0 110px; position: relative; z-index: 2; }
.login-card {
    max-width: 400px; margin: 60px auto; text-align: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 38px 34px; box-shadow: var(--shadow-1);
}
.login-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.login-ic {
    width: 52px; height: 52px; border-radius: 50%; background: var(--blush); color: var(--rose);
    display: inline-flex; align-items: center; justify-content: center;
}
.login-ic .ic { width: 23px; height: 23px; }
.login-title { margin: 16px 0 22px; }
.login-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.pass-wrap { position: relative; display: flex; }
.pass-wrap input {
    flex: 1; height: 52px; border-radius: 16px; border: 1.5px solid var(--line-2);
    padding: 0 52px 0 16px; font: inherit; background: var(--card); color: var(--ink);
}
.pass-wrap input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(207,53,98,.14); }
.pass-eye {
    position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ink-3);
    display: flex; align-items: center; justify-content: center;
}
.pass-eye:hover { color: var(--ink); }
.pass-eye.on { color: var(--rose); }
.login-err { color: var(--rose-deep); font-size: .85rem; min-height: 1.25em; margin: 0; }

.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.adm-title { font-size: clamp(2rem, 4vw, 3rem); }
.adm-warn {
    display: flex; gap: 12px; align-items: center;
    background: var(--butter); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 22px;
}
.adm-warn .ic { color: #8a6512; flex: none; width: 19px; height: 19px; }
.adm-warn p { font-size: .88rem; color: #6b5318; }
.adm-warn code { background: rgba(255,255,255,.55); padding: 1px 6px; border-radius: 6px; font-size: .82rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-1); }
.kpi b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 550; display: block; line-height: 1.1; }
.kpi span { color: var(--ink-2); font-size: .82rem; }
.kpi em { font-style: normal; color: var(--ink-3); font-size: .74rem; }

.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.panel2 { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); min-width: 0; }
.panel2-title { font-size: 1.2rem; margin-bottom: 16px; }
.dbar { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 6px; border-radius: 10px; text-align: left; }
.dbar:hover { background: var(--paper-2); }
.dbar-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, #cf3562); flex: none; }
.dbar-name { font-size: .88rem; font-weight: 600; min-width: 128px; color: var(--ink); }
.dbar-track { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.dbar-track i { display: block; height: 100%; width: var(--w); background: var(--accent, #cf3562); border-radius: 99px; }
.js .dbar-track i { animation: barIn 1s var(--ease-out) both; }
@keyframes barIn { from { width: 0; } }
.dbar-n { font-size: .85rem; font-weight: 700; min-width: 22px; text-align: right; }
.dbar-more[hidden] { display: none; }
.dbar-toggle { margin-top: 10px; }
.chart { width: 100%; height: auto; display: block; }
.chart-lbl { fill: var(--ink-3); font-size: 11px; font-family: var(--font-body); }

.adm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-wrap {
    display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 15px;
    border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--card);
}
.search-wrap .ic { color: var(--ink-3); width: 16px; height: 16px; }
.search-wrap input { border: 0; background: none; height: 100%; font: inherit; font-size: .88rem; width: 280px; color: var(--ink); }
.search-wrap input:focus { outline: none; }
.adm-tools select {
    height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2);
    background: var(--card); font: inherit; font-size: .86rem; padding: 0 14px; color: var(--ink);
}
.adm-count { font-size: .82rem; color: var(--ink-3); }

.atable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.atable th, .atable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.atable th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: var(--paper); font-weight: 700; }
.arow-design { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.arow-code { font-family: ui-monospace, monospace; font-size: .84rem; }
.arow-meta { white-space: nowrap; }
.ameta { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--ink-2); background: var(--paper-2); border-radius: 99px; padding: 3px 9px; margin-right: 5px; }
.ameta .ic { width: 12px; height: 12px; color: var(--rose); }
.arow-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-del { color: var(--rose-deep); border-color: #f3b7c6; }
.arow-x td { background: var(--paper); padding: 18px 20px; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.xlabel { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; }
.xval { font-size: .88rem; color: var(--ink-2); word-break: break-word; white-space: pre-wrap; }
.xcolor { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-2); }
.xcolor i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.xphoto { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; border: 3px solid var(--card); box-shadow: var(--shadow-1); }
.xyt { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-2); word-break: break-all; }
.xyt img { border-radius: 6px; flex: none; }
.adm-more { display: flex; justify-content: center; margin-top: 20px; }
.adm-empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }

/* QR de canje */
.qrp { scroll-margin-top: 96px; margin-bottom: 26px; }
.qrp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.qrp-head .panel2-title { margin-bottom: 6px; }
.qrp-sub { margin: 0; color: var(--ink-2); font-size: .9rem; max-width: 54ch; }
.qrp-stats { display: flex; gap: 8px; flex: none; }
.qrp-stat {
    display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 14px;
    border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2);
    font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.qrp-stat b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.qrp-stat.is-free { background: var(--mint); color: #1F6B4A; }
.qrp-done {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--blush), #FFF0F3); border: 1px solid #F6C3D0;
    border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 14px;
}
.qrp-done-ic {
    width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.qrp-done-ic .ic { width: 19px; height: 19px; }
.qrp-done p { color: var(--ink); font-size: .92rem; flex: 1; min-width: 200px; }
.qrp-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px; margin-bottom: 16px;
}
.qrp-gen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qrp-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.stepper {
    display: inline-flex; align-items: center; height: 48px;
    border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--card);
    overflow: hidden;
}
.stepper .step-btn {
    width: 44px; height: 100%; border: 0; background: none; color: var(--ink-2);
    font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
}
.stepper .step-btn:hover { color: var(--rose-deep); background: var(--paper-2); }
.stepper input {
    width: 52px; height: 100%; border: 0; background: none; text-align: center;
    font: inherit; font-weight: 700; color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(207,53,98,.14); }
.stepper input:focus { outline: none; }
.qr-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.qr-tile {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-1); padding: 12px; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.qr-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.qr-tile.is-new { border-color: #F3B7C6; box-shadow: 0 0 0 3px rgba(207,53,98,.12); }
.qr-thumb {
    width: 76px; height: 76px; border-radius: var(--r-sm); background: #FFFDF9;
    border: 1px solid var(--line); display: block; overflow: hidden;
}
.qr-thumb svg { width: 100%; height: 100%; }
.qr-tile.is-used .qr-thumb { opacity: .45; filter: grayscale(1); }
.qr-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qr-code { font-family: ui-monospace, monospace; font-size: .92rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.qr-badge {
    display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
    border-radius: var(--r-pill); font-size: .68rem; font-weight: 700;
    background: var(--paper-2); color: var(--ink-3);
}
.qr-badge.is-free { background: var(--mint); color: #1F6B4A; }
.qr-badge.is-used { background: var(--paper-2); color: var(--ink-3); }
.qr-badge.is-new { background: var(--butter); color: #7A5A12; }
.qr-badge.is-pack { background: var(--lilac); color: #5B3FA8; }
.qrp-stat.is-pack { background: var(--lilac); color: #5B3FA8; }
.qr-time { font-size: .78rem; color: var(--ink-3); }
.qr-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.qr-empty { color: var(--ink-2); }

.dlg { border: 0; border-radius: var(--r-lg); padding: 0; max-width: 420px; width: calc(100% - 40px); box-shadow: var(--shadow-2); margin: auto; }
.dlg::backdrop { background: rgba(26,16,36,.5); backdrop-filter: blur(4px); }
.dlg-card { padding: 30px; }
.dlg-title { font-size: 1.5rem; margin-bottom: 10px; }
.dlg-text { color: var(--ink-2); font-size: .92rem; margin-bottom: 14px; }
.dlg-code code { background: var(--paper-2); padding: 3px 10px; border-radius: 8px; font-size: .9rem; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.btn-dang { background: #B42318; color: #fff; }
.btn-dang:hover { background: #932014; transform: translateY(-2px); }

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
    .studio { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
    .crumbs { order: 1; } .studio-cat { order: 2; } .studio-title { order: 3; }
    .demo-link { order: 4; } .studio-desc { order: 5; }
    .pv { order: 6; position: static; margin-bottom: 36px; }
    .studio-form { order: 7; }
    .pv .seg { display: none; }
    .pv-bar { justify-content: center; }
    .pv-status { margin-left: 0; }
}
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 34px; gap: 60px; }
    .hero-visual { height: 480px; max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 959px) {
    .listo { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .adm-grid { grid-template-columns: 1fr; }
}
/* el teléfono de "listo" se pega solo en pantallas anchas y con altura suficiente */
@media (min-width: 960px) and (min-height: 760px) {
    .listo-visual { position: sticky; top: 100px; }
}
@media (max-width: 800px) {
    .section { padding: 80px 0 0; }
    .steps { grid-template-columns: 1fr; max-width: 460px; }
    .gallery-head { grid-template-columns: 1fr; align-items: start; }
    .gallery-head p { max-width: 34ch; }
    .filters {
        justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
        margin: 0 -24px; padding: 4px 24px 12px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
    }
    .filters::-webkit-scrollbar { display: none; }
    .filters .chip { flex: none; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-links { margin-left: 0; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .adm-toolbar { align-items: stretch; flex-direction: column; }
    .search-wrap input { width: 100%; }
    .search-wrap { flex: 1; }
}
@media (max-width: 799px) {
    .atable, .atable tbody, .atable tr, .atable td { display: block; width: 100%; }
    .atable { background: none; border: 0; box-shadow: none; overflow: visible; }
    .atable thead { display: none; }
    .arow { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); margin-bottom: 12px; padding: 8px 4px; }
    .arow td { border: 0; padding: 6px 14px; display: flex; gap: 10px; align-items: center; }
    .arow td::before { content: attr(data-label); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); width: 76px; flex: none; }
    .arow-x { display: block; border: 1px solid var(--line); border-radius: var(--r-md); margin: -6px 0 12px; overflow: hidden; }
    .arow-x td { padding: 16px; }
    .arow-x[hidden] { display: none; }
}
@media (max-width: 767px) {
    .ta-steps-out { top: auto; bottom: 6px; }
}
@media (max-width: 699px) {
    .cards { grid-template-columns: 1fr; }
    .js .cards:not(.show-all):not(.is-filtered) > .dcard:nth-child(n+7) { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .filters { margin: 0 -20px; padding: 4px 20px 12px; }
    .nav-links { display: none; }
    .btn-nav { margin-left: auto; }
    .nav-in { gap: 14px; }
    .nav .brand { font-size: 1.28rem; gap: 5px; }
    .nav .brand-tt { height: 14px; }
    .hero { padding-top: 30px; }
    .hero-visual { height: 440px; }
    .phone { width: 220px; }
    .hv-phonew { margin: -227px 0 0 -110px; }
    .env { width: 185px; height: 122px; }
    .hv-envw { left: 6%; }
    .polaroid { width: 140px; height: 172px; }
    .hv-polaroidw { right: 5%; }
    .polaroid-img { height: 112px; }
    .hv-note { display: none; }
    .ribbon-seq { font-size: 1.3rem; }
}
@media (max-width: 599px) {
    .ta-knot { position: absolute; left: 50%; top: calc(100% + 30px); margin-left: 0; }
    .footer-quote2 { margin-bottom: 0; }
    /* el nudo cuelga ~70px bajo la línea: el divisor queda a ≥16px del corazón */
    .footer-in { padding-bottom: 120px; }
    .footer-bottom { margin-top: 0; }
}
@media (max-width: 560px) {
    .ptiles { grid-template-columns: repeat(2, 1fr); }
    .qr-grid { grid-template-columns: 1fr; }
    .qrp-bar, .qrp-gen { flex-direction: column; align-items: stretch; }
    .qrp-gen .stepper, .qrp-gen .btn { width: 100%; }
    .qrp-gen .stepper { justify-content: space-between; }
    .qrp .btn { width: 100%; white-space: normal; height: auto; min-height: 48px; padding: 12px 18px; text-align: center; }
    .qrp-done p { min-width: 0; }
    .qr-tile, .qr-info, .qr-row { min-width: 0; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}
@media (max-width: 420px) {
    .hv-note { display: none; }
}

/* El teléfono del hero es interactivo solo con puntero fino */
@media (hover: hover) and (pointer: fine) {
    .phone-screen[data-interactive] iframe { pointer-events: auto; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .aurora i, .bob, .hv-spark, .footer-stars::before, .footer-stars::after,
    .brand-heart .ic, .dcard-skel .ic, .error-sway, .pv-dot, .vinyl.is-playing .vinyl-img,
    .login-card.shake, .dbar-track i { animation: none !important; }
    .ribbon-track { animation: none !important; transform: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hv-par { transform: none !important; }
    .rotator-line path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}

/* Rendimiento: no renderizar pasos fuera de pantalla (sin cambio visual) */
@supports (content-visibility: auto) {
    .steps .step { content-visibility: auto; contain-intrinsic-size: auto 260px; }
}

/* ---------- Legal ---------- */

.legal { padding-bottom: 96px; }

.legal-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.legal-title { font-size: clamp(2rem, 6vw, 3rem); font-weight: 520; letter-spacing: -.01em; margin: 10px 0 12px; }
.legal-sub { color: var(--ink-3); font-size: 1.02rem; margin: 0; }

.legal-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-1);
    padding: clamp(24px, 5vw, 56px);
    font-family: var(--font-body);
}

.legal-card h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 560;
    color: var(--ink);
    margin: 2.2em 0 .6em;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 1.6em 0 .45em;
}
.legal-card p, .legal-card li { color: var(--ink-2); line-height: 1.75; }
.legal-card p { margin: 0 0 1em; }
.legal-card ul, .legal-card ol { margin: 0 0 1em; padding-left: 1.5em; }
.legal-card li { margin-bottom: .45em; }
.legal-card a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover { color: var(--rose-deep); }
.legal-card strong { color: var(--ink); }

.legal-card .legal-updated {
    display: inline-block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-3);
    font-size: .82rem;
    padding: 5px 14px;
    margin-bottom: 1.4em;
}

/* ==========================================================================
   PAQUETE ×5 — página de venta y página de entrega
   ========================================================================== */

.btn-xl { height: 58px; padding: 0 34px; font-size: 1.06rem; }

/* ---------- página de venta ---------- */
.pack-hero {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
    padding: 84px 24px 70px;
}
.pack-points { list-style: none; margin: 22px 0 30px; display: grid; gap: 10px; }
.pack-points li { display: flex; align-items: center; gap: 10px; font-size: .98rem; color: var(--ink-2); }
.pack-points .ic { width: 17px; height: 17px; color: var(--rose); flex: none; }
.pack-buy { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pack-buy-note { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-3); }
.pack-buy-note .ic { width: 13px; height: 13px; }

.pack-hero-visual { position: relative; display: flex; justify-content: center; }
.pack-hero-visual .hv-spark { position: absolute; width: 30px; height: 30px; fill: var(--gold); opacity: .85; }
.pack-hero-visual .s1 { top: 2%; left: 6%; animation: float 7s ease-in-out infinite; }
.pack-hero-visual .s3 { bottom: 8%; right: 4%; width: 22px; height: 22px; fill: var(--rose-bright); animation: float 9s ease-in-out -3s infinite; }
.pack-visual-card {
    position: relative; z-index: 1; width: 250px; padding: 22px 20px 20px;
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: var(--shadow-2); text-align: center;
    transform: rotate(3deg); animation: bob 6s ease-in-out infinite;
}
.pack-visual-qr { width: 190px; height: 190px; margin: 0 auto; border-radius: 12px; overflow: hidden; }
.pack-visual-qr svg { display: block; width: 100%; height: 100%; }
.pack-visual-label {
    font-family: "Caveat", cursive; font-weight: 600; font-size: 1.35rem;
    color: var(--rose-deep); transform: rotate(-2.5deg); margin: 10px 0 4px;
}
.pack-visual-steps { font-size: .62rem; font-weight: 700; letter-spacing: .16em; color: var(--ink-2); }

.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pack-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    padding: 26px 22px; box-shadow: var(--shadow-1);
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
}
.pack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.pack-card-n {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 46px; padding: 0 12px; margin-bottom: 14px;
    border-radius: 14px; background: var(--blush); color: var(--rose-deep);
    font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.pack-card-n .ic { width: 24px; height: 24px; }
.pack-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pack-card p { font-size: .92rem; line-height: 1.55; }

.pack-close { padding: 30px 24px 110px; text-align: center; }
.pack-close-card {
    position: relative; max-width: 620px; margin: 0 auto; padding: 54px 40px 44px;
    background: var(--card); border: 1px solid var(--line); border-radius: 28px;
    box-shadow: var(--shadow-2); overflow: hidden;
}
.pack-close-card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 6px;
    background: linear-gradient(90deg, var(--rose), #FF7A59);
}
.pack-close-card h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; margin: 14px 0 12px; }
.pack-close-card h2 em { font-style: italic; color: var(--rose); }
.pack-close-sub { max-width: 42ch; margin: 0 auto 26px; }
.pack-legal { margin-top: 16px; font-size: .78rem; color: var(--ink-3); }
.pack-legal a { color: var(--rose-deep); }
.pack-brand { margin-top: 26px; font-size: .8rem; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.pack-brand img { height: 20px; width: auto; vertical-align: middle; opacity: .85; }
.brand-credit { margin-top: 22px; font-size: .8rem; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.brand-credit img { height: 16px; width: auto; opacity: .85; }
.pack-done .brand-credit { justify-content: center; }

/* ---------- página de entrega ---------- */
.pack-done { max-width: 780px; padding-top: 74px; padding-bottom: 110px; }
.pack-done-head { text-align: center; margin-bottom: 30px; }
.pack-done-head .listo-sub { margin-inline: auto; }

.pack-pdf {
    position: relative; display: flex; align-items: center; gap: 20px;
    padding: 26px 28px; margin-bottom: 14px;
    border-radius: 24px; color: #fff; text-decoration: none;
    background: linear-gradient(120deg, var(--rose) 0%, #FF7A59 100%);
    box-shadow: 0 22px 55px -18px rgba(207,53,98,.65), var(--shadow-2);
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
    overflow: hidden;
}
.pack-pdf:hover { transform: translateY(-4px) scale(1.01); color: #fff; box-shadow: 0 28px 70px -18px rgba(207,53,98,.75), var(--shadow-2); }
.pack-pdf-glow {
    position: absolute; inset: -40% auto -40% -20%; width: 45%;
    background: radial-gradient(ellipse, rgba(255,255,255,.35) 0%, transparent 70%);
    animation: packGlow 4.5s ease-in-out infinite;
}
@keyframes packGlow { 0%,100% { opacity: .4; } 50% { opacity: .9; } }
.pack-pdf-ic {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; flex: none; border-radius: 18px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
}
.pack-pdf-ic .ic { width: 30px; height: 30px; }
.pack-pdf-txt { position: relative; flex: 1; }
.pack-pdf-txt b { display: block; font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.pack-pdf-txt small { display: block; margin-top: 3px; font-size: .84rem; color: rgba(255,255,255,.85); line-height: 1.45; }
.pack-pdf-go { position: relative; flex: none; }
.pack-pdf-go .ic { width: 26px; height: 26px; }
.pack-mail-note { text-align: center; font-size: .84rem; color: var(--ink-2); margin-bottom: 34px; }
.pack-mail-note .ic { width: 14px; height: 14px; color: var(--rose); }

.pack-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    list-style: none; counter-reset: pk; margin-bottom: 40px;
}
.pack-steps li {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 18px 18px 16px 56px; box-shadow: var(--shadow-1);
}
.pack-steps li::before {
    counter-increment: pk; content: counter(pk, decimal-leading-zero);
    position: absolute; left: 16px; top: 18px;
    font-family: var(--font-display); font-style: italic; font-weight: 600;
    font-size: 1.3rem; color: var(--rose);
}
.pack-steps b { display: block; font-size: .95rem; color: var(--ink); margin-bottom: 4px; }
.pack-steps span { font-size: .84rem; color: var(--ink-2); line-height: 1.5; }

.pack-tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 34px; }
.tk {
    position: relative; display: flex; flex-direction: column; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    padding: 20px 16px 18px; box-shadow: var(--shadow-1); text-align: center;
}
.tk-n {
    position: absolute; top: 12px; left: 14px;
    width: 26px; height: 26px; border-radius: 999px;
    background: var(--blush); color: var(--rose-deep);
    font-size: .8rem; font-weight: 700; line-height: 26px;
}
.tk-qr { width: 128px; height: 128px; margin: 6px 0 10px; border-radius: 10px; overflow: hidden; }
.tk-qr svg { display: block; width: 100%; height: 100%; }
.tk-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88rem; font-weight: 700; letter-spacing: .12em;
    color: var(--ink); margin-bottom: 12px;
}
.tk-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.tk-actions .btn { width: 100%; justify-content: center; height: 40px; font-size: .84rem; }

.pack-pending { margin-bottom: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .pack-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
    .pack-hero-visual { order: -1; }
    .pack-visual-card { width: 220px; transform: rotate(0); }
    .pack-grid { grid-template-columns: 1fr 1fr; }
    .pack-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pack-grid { grid-template-columns: 1fr; }
    .pack-pdf { gap: 14px; padding: 20px 18px; }
    .pack-pdf-ic { width: 50px; height: 50px; }
    .pack-pdf-txt b { font-size: 1.05rem; }
    .pack-tokens { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tk-qr { width: 104px; height: 104px; }
    .tk-actions .btn { font-size: .78rem; padding: 0 10px; }
}
@media (max-width: 400px) {
    .pack-tokens { grid-template-columns: 1fr; }
}

/* ---------- Panel: paquetes manuales (Hotmart) ---------- */

.pack-share { margin: 10px 0 14px; }
.qrp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pack-batch-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.pack-batch {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px;
}
.pack-batch-info { display: flex; flex-direction: column; gap: 2px; }
.pack-batch-info b { font-size: .92rem; color: var(--ink); }
.pack-batch-info span { font-size: .78rem; color: var(--ink-3); }
.pack-batch-acts { display: flex; gap: 8px; flex-wrap: wrap; }
