/* Crisyeli Kids — estilos */
:root {
  --cream: #FBF6EE;
  --paper: #FFFDF9;
  --blush: #F8E3E8;
  --pink: #E9A3B5;
  --pink-ink: #B9577A;
  --lila: #E6DDF5;
  --gold: #B98A3E;
  --gold-2: #D6AE62;
  --gold-ink: #7E5A1F;
  --ink: #3A2E2A;
  --muted: #7C6B63;
  --line: #EADFD2;
  --wa: #1FA855;
  --wa-ink: #0E7A3B;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(90, 60, 30, .35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --stripes: repeating-linear-gradient(90deg, #FBE9EE 0 34px, #FFF8F2 34px 68px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--gold); }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pink-ink); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; text-decoration: none; line-height: 1;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 10px 22px -10px rgba(185,138,62,.8); }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px rgba(31,168,85,.9); }
.btn--sm { padding: .7em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }

/* Barra superior */
.announce { background: var(--ink); color: #F5E6CC; text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.announce p { margin: 0; padding: .55em 16px; }
.announce span { color: var(--gold-2); margin: 0 .5em; }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(251,246,238,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; font-weight: 700; font-size: .95rem; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s; }
.burger::before, .burger::after { content: ""; position: absolute; }
.burger::before { top: -7px; } .burger::after { top: 7px; }

/* Hero */
.hero { background: var(--stripes); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.hero__copy h1 { max-width: 12ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; font-size: .9rem; }
.hero__facts strong { color: var(--gold-ink); margin-right: .25em; }
.hero__media { position: relative; justify-self: center; width: min(440px, 100%); }
.hero__main { margin: 0; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 8px solid var(--paper); aspect-ratio: 3/4; }
.hero__main img { width: 100%; height: 100%; object-fit: cover; }
.hero__float { position: absolute; margin: 0; border-radius: 18px; overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); }
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
.hero__float--a { width: 42%; aspect-ratio: 1; left: -18%; bottom: 14%; transform: rotate(-6deg); animation: bob 6s ease-in-out infinite; }
.hero__tag {
  position: absolute; right: -6%; top: 16%; display: grid; gap: 2px; text-decoration: none;
  background: var(--paper); padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 700; transform: rotate(3deg); transition: transform .25s;
}
.hero__tag strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-ink); }
.hero__tag:hover { transform: rotate(0) scale(1.04); }
.sparkle { position: absolute; color: var(--gold-2); font-size: 28px; animation: twinkle 3s ease-in-out infinite; }
.sparkle--1 { top: 4%; left: 6%; } .sparkle--2 { bottom: 6%; right: 2%; font-size: 20px; animation-delay: 1.2s; }
@keyframes bob { 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.7); } }

/* Secciones */
.section { padding: 88px 0; }
.section__head { text-align: center; margin-bottom: 40px; }

/* Colecciones */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.collections .collection { aspect-ratio: 4/3.4; }
.collection { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; text-decoration: none; box-shadow: var(--shadow); isolation: isolate; }
.collection img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.collection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(40,25,20,.7)); }
.collection:hover img { transform: scale(1.06); }
.collection__label { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; display: grid; }
.collection__label strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.collection__label small { opacity: .9; font-size: .9rem; }

/* Probador */
.probador { background: linear-gradient(180deg, var(--blush), var(--cream)); }
.probador__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.looks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.look {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 8px 14px 8px 8px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.look img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.look span { display: grid; line-height: 1.3; }
.look small { color: var(--muted); }
.look strong { font-weight: 800; }
.look:hover { transform: translateX(4px); }
.look[aria-current="true"] { border-color: var(--gold); box-shadow: 0 10px 24px -14px rgba(185,138,62,.9); }
.probador__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Probador: carrusel 3D */
.stage { position: relative; justify-self: stretch; width: 100%; min-width: 0; padding-top: 56px; }
.cf { position: relative; height: clamp(420px, 52vw, 600px); perspective: 1400px; transform-style: preserve-3d; touch-action: pan-y; user-select: none; }
.cf__card {
  position: absolute; top: 0; left: 50%; width: min(340px, 68%); aspect-ratio: 9/14; margin-left: calc(min(340px, 68%) / -2);
  border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s, filter .6s;
}
.cf__flip { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; border: 8px solid var(--paper); background: var(--stripes); box-shadow: 0 30px 60px -28px rgba(90,60,30,.6); }
.cf__flip img { width: 100%; height: 100%; object-fit: cover; }
.cf__card::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -34px; height: 24px; border-radius: 50%; background: radial-gradient(rgba(90,60,30,.35), transparent 70%); transform: translateZ(-1px); }
.cf__card[aria-current="true"] { cursor: default; }
.stage__views { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 999px; z-index: 3; box-shadow: 0 8px 20px -12px rgba(90,60,30,.5); }
.stage__views button { border: 0; background: none; padding: .45em 1em; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.stage__views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stage__nav { position: absolute; top: calc(56px + clamp(420px, 52vw, 600px) / 2); transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,253,249,.92); font-size: 1.6rem; line-height: 1; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.stage__nav--prev { left: 12px; } .stage__nav--next { right: 12px; }
.stage__bar { width: min(220px, 60%); margin: 52px auto 0; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.stage__bar span { display: block; height: 100%; width: 0; background: var(--gold-2); }
.stage__caption { text-align: center; margin-top: 14px; }
.stage__caption span { color: var(--gold-ink); font-weight: 800; margin-left: .4em; }

/* Catálogo */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filters button { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: .55em 1.2em; font-weight: 800; font-size: .9rem; transition: background .2s, border-color .2s; }
.filters button:hover { border-color: var(--gold-2); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.card[hidden] { display: none; }
.card__body { flex: 1; display: flex; flex-direction: column; }
.card__actions { margin-top: auto; }
.card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 14px 30px -20px rgba(90,60,30,.5); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .7s cubic-bezier(.2,.8,.2,1); }
.card__media img + img { opacity: 0; }
.card__media:hover img { transform: scale(1.04); }
.card__media:hover img + img { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--paper); color: var(--pink-ink); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.card__body { padding: 14px 4px 0; }
.card__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 0; }
.card__price { font-weight: 800; color: var(--gold-ink); white-space: nowrap; }
.card__meta { color: var(--muted); font-size: .88rem; margin: 4px 0 10px; }
.dots { display: flex; gap: 6px; margin-bottom: 12px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.card__actions { display: flex; gap: 8px; }
.card__actions .btn { flex: 1; padding: .75em .9em; font-size: .9rem; }
.card__actions .btn--ghost { flex: 0 0 auto; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Detalles */
.details { background: var(--paper); }
.details__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.details figure { margin: 0; }
.details img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); }
.details figcaption { text-align: center; font-family: var(--font-display); font-size: 1.1rem; margin-top: 12px; }

/* Historia y semana */
.historia__inner, .semana__inner { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.semana__inner { grid-template-columns: 1fr auto; }
.semana { background: var(--stripes); }
.reel { width: min(340px, 80vw); aspect-ratio: 9/16; border-radius: 28px; overflow: hidden; border: 8px solid var(--paper); box-shadow: var(--shadow); background: #000; justify-self: center; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.historia__copy p, .semana__copy p { color: var(--muted); max-width: 46ch; font-size: 1.08rem; }
.days { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.days li { background: var(--paper); border: 2px dashed var(--pink); color: var(--pink-ink); font-weight: 800; border-radius: 10px; padding: .3em .8em; font-size: .9rem; transform: rotate(-2deg); }
.days li:nth-child(even) { transform: rotate(2deg); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); margin: 0; }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--pink-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.note { text-align: center; background: var(--lila); border-radius: 16px; padding: 16px 20px; margin: 0 auto; max-width: 720px; }

/* Polvo dorado y profundidad en la portada */
.hero { position: relative; }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; }
.hero__media { transform-style: preserve-3d; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero__main { transform: translateZ(0); }
.hero__float--a { --z: 90px; }
.hero__float--b { --z: 130px; width: 30%; aspect-ratio: 1; right: -12%; bottom: -4%; border-radius: 50%; transform: rotate(8deg); animation: bob2 7s ease-in-out infinite; }
.hero__float { translate: 0 0 var(--z, 60px); }
.hero__tag { translate: 0 0 150px; }
.sparkle { translate: 0 0 190px; }
@keyframes bob2 { 50% { transform: rotate(4deg) translateY(12px); } }

/* Titular que entra palabra por palabra */
.split .w { display: inline-block; animation: wordIn .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 150ms); transform-origin: 50% 100%; }
@keyframes wordIn { from { opacity: 0; transform: perspective(600px) translateY(40px) rotateX(-70deg); } }

/* Cintas en movimiento */
.ribbons { position: relative; height: 130px; overflow: hidden; margin-top: -24px; z-index: 2; perspective: 800px; }
.ribbon { position: absolute; left: -5%; right: -5%; top: 40px; padding: 14px 0; overflow: hidden; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.ribbon--front { background: var(--ink); color: var(--gold-2); transform: rotate(-2.5deg) rotateX(8deg); box-shadow: 0 18px 30px -18px rgba(0,0,0,.5); }
.ribbon--back { background: var(--pink); color: var(--paper); transform: rotate(2.5deg) translateZ(-60px); top: 46px; }
.ribbon__track { display: inline-flex; animation: marquee 38s linear infinite; }
.ribbon--back .ribbon__track { animation-direction: reverse; animation-duration: 46s; }
.ribbon__track span { padding-right: 1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Inclinación 3D con brillo (tarjetas y colecciones) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 30px 50px -24px rgba(90,60,30,.6); }
.tilt::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.45), transparent 55%); mix-blend-mode: soft-light; }
.tilt.is-tilting::before { opacity: 1; }
.collection__label { transform: translateZ(40px); transition: transform .4s; }
.collection:hover .collection__label { transform: translateZ(60px) translateY(-6px); }

.grid, .collections, .steps, .details__grid, .section__head { perspective: 1200px; }

/* Detalles que flotan */
.details figure { animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1.5s); }
.details figure:nth-child(2) { --d: 1; } .details figure:nth-child(3) { --d: 2; } .details figure:nth-child(4) { --d: 3; }
.details img { transition: transform .6s cubic-bezier(.2,.8,.2,1), border-radius .6s; }
.details figure:hover img { transform: perspective(700px) rotateY(14deg) scale(1.05); border-radius: var(--radius); }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* Header que se compacta al bajar */
.header__inner { transition: height .3s; }
.header.is-scrolled .header__inner { height: 60px; }
.header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(90,60,30,.5); }

/* Reels */
.videos { background: var(--stripes); }
.reels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.reels li { display: grid; gap: 14px; justify-items: center; text-align: center; min-width: 0; }
.reels .reel { width: min(300px, 100%); }
.reels p { margin: 0; color: var(--muted); max-width: 30ch; }
.reels strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.reels { perspective: 1400px; }
.reels .reel { transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s; }
.reels li:nth-child(1) .reel { transform: rotateY(22deg) translateZ(-40px); }
.reels li:nth-child(2) .reel { transform: translateY(-18px) scale(1.04); }
.reels li:nth-child(3) .reel { transform: rotateY(-22deg) translateZ(-40px); }
.reels li:hover .reel, .reels li:focus-within .reel { transform: translateY(-10px) scale(1.06); box-shadow: 0 40px 60px -28px rgba(90,60,30,.7); }

/* Aparición 3D al hacer scroll (solo navegadores que lo soportan; sin soporte todo queda visible) */
@supports (animation-timeline: view()) {
  .section__head, .collection, .card, .details figure > img, .steps li, .reels li, .historia__copy, .note, .probador__copy {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
  }
  .collection:nth-child(3n+2), .card:nth-child(4n+2) { animation-range: entry 8% entry 78%; }
  .collection:nth-child(3n), .card:nth-child(4n+3) { animation-range: entry 16% entry 86%; }
  .card:nth-child(4n) { animation-range: entry 24% entry 94%; }
  @keyframes reveal { from { opacity: 0; translate: 0 70px; rotate: x 22deg; scale: .96; } }
}

/* Footer */
.social { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.social a { color: #F5E6CC; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(245,230,204,.35); }
.social a:hover { border-color: var(--gold-2); }
.footer { background: var(--ink); color: #EFE3D3; padding: 56px 0 36px; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 14px; }
.footer img { height: 60px; width: auto; }
.footer__small { font-size: .82rem; opacity: .6; margin: 12px 0 0; }

/* Botón flotante */
.fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(14,122,59,.9); transition: transform .2s; }
.fab svg { width: 32px; height: 32px; }
.fab:hover { transform: scale(1.08); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

/* Vista rápida */
.qv { border: 0; padding: 0; border-radius: 28px; width: min(920px, 100% - 24px); max-height: calc(100dvh - 24px); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.qv::backdrop { background: rgba(40,28,24,.55); backdrop-filter: blur(4px); }
.qv[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.qv__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.6rem; line-height: 1; }
.qv__inner { display: grid; grid-template-columns: 1fr 1fr; }
.qv__gallery { background: var(--cream); padding: 16px; }
.qv__gallery > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; }
.qv__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.qv__thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.qv__thumbs button[aria-current="true"] { border-color: var(--gold); }
.qv__thumbs img { width: 58px; height: 58px; object-fit: cover; }
.qv__info { padding: 36px 32px 28px; }
.qv__info h3 { font-size: 1.9rem; }
.qv__price { font-size: 1.5rem; font-weight: 800; color: var(--gold-ink); }
.qv__info > p:not(.eyebrow):not(.qv__price):not(.qv__hint) { color: var(--muted); }
.opt { border: 0; padding: 0; margin: 0 0 18px; }
.opt legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.opt legend span { font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-width: 46px; padding: .5em .85em; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.chips button i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.qv__hint { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Botón del carrito */
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.cart-btn.is-bump { animation: bump .6s cubic-bezier(.2,.8,.2,1); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; flex: none; }

/* Panel lateral del carrito */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100%); border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.drawer::backdrop { background: rgba(40,28,24,.5); backdrop-filter: blur(3px); }
.drawer[open] { animation: slideIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { transform: perspective(1200px) translateX(100%) rotateY(-20deg); } }
.drawer__panel { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.5rem; margin: 0; }
.drawer__head h2 span { color: var(--muted); font-size: 1rem; }
.drawer__items { list-style: none; margin: 0; padding: 8px 20px; overflow: auto; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: rise .35s both; }
.line img { width: 76px; height: 92px; object-fit: cover; border-radius: 12px; }
.line__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.line__info strong { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.line__info > span { color: var(--muted); font-size: .85rem; }
.line__side { display: grid; justify-items: end; align-content: space-between; }
.line__price { font-weight: 800; color: var(--gold-ink); }
.line__remove { border: 0; background: none; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; width: max-content; margin-top: 4px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; border-radius: 50%; }
.qty output { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart__empty { text-align: center; padding: 48px 8px; display: grid; gap: 4px; justify-items: center; color: var(--muted); }
.cart__empty strong { color: var(--ink); }
.cart__empty .btn { margin-top: 12px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--cream); }
.drawer__subtotal { display: flex; justify-content: space-between; margin: 0; font-size: 1.1rem; }
.drawer__subtotal strong { color: var(--gold-ink); }
.drawer__note { margin: 0; font-size: .85rem; color: var(--muted); }

/* Formulario de cotización */
.co { border: 0; padding: 0; border-radius: 24px; width: min(640px, 100% - 24px); max-height: calc(100dvh - 24px); background: var(--paper); color: var(--ink); overflow: hidden; }
.co[open] { display: grid; grid-template-rows: auto 1fr; animation: pop .4s cubic-bezier(.2,.8,.2,1); }
.co::backdrop { background: rgba(40,28,24,.55); backdrop-filter: blur(4px); }
.co__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.co__head h2 { font-size: 1.8rem; margin: 0 0 4px; }
.co__head .eyebrow { margin: 0; color: var(--gold-ink); }
.eyebrow--muted { color: var(--muted); }
.co__form { display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.co__body { overflow: auto; padding: 18px 24px 24px; background: var(--cream); display: grid; gap: 16px; align-content: start; }
.co__body > .eyebrow { margin: 0; }
.co__items { list-style: none; margin: 0 0 4px; padding: 0; }
.co__items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co__items img { width: 64px; height: 76px; object-fit: cover; border-radius: 10px; }
.co__items div { display: grid; }
.co__items strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.co__items span { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > label, .fld > legend { font-weight: 800; padding: 0; margin-bottom: 6px; }
.fld b { color: var(--pink-ink); }
.fld__box { display: grid; grid-template-columns: 56px 1fr; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.fld__box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,174,98,.25); }
.fld__box svg { width: 22px; height: 22px; place-self: center; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fld__box { position: relative; }
.fld__box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 56px; background: var(--cream); z-index: 0; }
.fld__box svg { position: relative; z-index: 1; }
.fld__box input, .fld__box select { border: 0; padding: 14px 16px; background: transparent; font: inherit; color: inherit; min-width: 0; outline: none; }
.fld__err { margin: 0; color: #B3363B; font-size: .85rem; font-weight: 700; }
.fld__err:empty { display: none; }
.fld.has-error .fld__box, .fld.has-error .radio { border-color: #B3363B; }
.radios { display: grid; gap: 10px; }
.radio { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.radio input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; }
.radio span { display: grid; }
.radio small { color: var(--muted); font-size: .88rem; }
.radio:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,174,98,.25); }
#co-ship { display: grid; gap: 16px; }
#co-ship[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.how { background: var(--paper); border-left: 4px solid var(--gold-2); border-radius: 4px 12px 12px 4px; padding: 16px 20px; }
.how__title { margin: 0 0 8px; color: var(--gold-ink); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.how li { padding-left: 26px; position: relative; }
.how li::before { content: "✓"; position: absolute; left: 0; color: var(--wa-ink); font-weight: 800; }
.co__foot { padding: 14px 24px 18px; border-top: 1px solid var(--line); background: var(--paper); text-align: center; display: grid; gap: 4px; }
.co__foot p { margin: 0; font-size: .85rem; color: var(--muted); }
.co__foot .co__legal { font-size: .78rem; opacity: .85; }
.btn--lg { padding: 1.05em 1.4em; font-size: 1.05rem; }
.co__done { padding: 40px 28px 32px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.co__done[hidden] { display: none; }
.co__done p { margin: 0; color: var(--muted); max-width: 40ch; }
.co__check { width: 72px; height: 72px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 2.4rem; display: grid; place-items: center; animation: pop .5s cubic-bezier(.2,.8,.2,1); }

/* Vista rápida: agregar */
#qv-add { margin-bottom: 10px; }
#qv-add:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.opt__err { margin: 8px 0 0; color: #B3363B; font-weight: 700; font-size: .88rem; }
.opt__err:empty { display: none; }
.card.is-soldout .card__media img { filter: grayscale(.6); }
.card__actions .btn--gold { flex: 1; padding: .75em .9em; font-size: .9rem; }
.grid__error { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .probador__inner, .historia__inner, .semana__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__inner { padding: 40px 0 56px; }
  .hero__copy { text-align: center; }
  .hero__copy h1, .lead { margin-inline: auto; }
  .hero__ctas, .hero__facts { justify-content: center; }
  .hero__media { width: min(360px, 78%); }
  .probador__copy, .historia__copy, .semana__copy { text-align: center; }
  .historia__copy p, .semana__copy p { margin-inline: auto; }
  .probador__actions, .days { justify-content: center; }
  .semana__inner .reel { order: -1; }
  .collections, .details__grid { grid-template-columns: repeat(2, 1fr); }
  .collections .collection { aspect-ratio: 3/4; }
  .reels { grid-template-columns: 1fr; gap: 40px; }
  .nav__toggle { display: block; }
  .nav__list { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 12px 4px; }
  .header__inner { gap: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .header .btn--wa span { display: none; }
  .header .btn--sm { padding: .7em; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card__name { font-size: 1rem; }
  .card__row { flex-direction: column; gap: 0; }

  .collections, .details__grid { gap: 12px; }
  .collection__label strong { font-size: 1.1rem; }
  .qv__inner { grid-template-columns: 1fr; }
  .qv__info { padding: 20px 20px 24px; }
  .hero__tag { right: -4%; translate: 0 0 40px; font-size: .74rem; padding: 8px 12px; }
  .hero__tag strong { font-size: 1.15rem; }
  .hero__float { translate: 0 0 20px; }
  .sparkle { translate: 0 0 40px; }
  .ribbon { font-size: 1.05rem; padding: 10px 0; }
  .hero__float--a { left: -10%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
