/* Dulce Patronus · Repostería mágica
   Paleta tomada del logo: lavanda, plata y noche violeta. */
:root {
  --night-900: #140f2b;
  --night-800: #1c1638;
  --night-700: #2b2350;
  --night-600: #3b3170;
  --lav-700: #6b5b9a;
  --lav-600: #8476b5;
  --lav-500: #a397cc;
  --lav-300: #c9bfe8;
  --lav-200: #ddd5f3;
  --lav-100: #ece6f8;
  --lav-50:  #f7f4fd;
  --silver:  #e9e7f2;
  --ink:     #2e2748;
  --ink-soft:#5d5680;
  --white:   #ffffff;
  --gold:    #f4e3b2;
  --ok:      #2f8f6b;
  --warn:    #b7791f;
  --err:     #b4415a;

  --bg: var(--lav-50);
  --surface: var(--white);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --line: #e3dcf3;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(43, 35, 80, .10);
  --shadow-lg: 0 24px 60px rgba(43, 35, 80, .18);
  --glow: 0 0 24px rgba(201, 191, 232, .65), 0 0 60px rgba(163, 151, 204, .35);

  --f-display: 'Cinzel', Georgia, serif;
  --f-script: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lav-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--night-600); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; color: var(--night-700); margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--night-700); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--lav-500); outline-offset: 2px; }
.ico { flex: none; vertical-align: middle; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 700 .78rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--lav-600); margin-bottom: 1rem;
}
.script { font-family: var(--f-script); font-style: italic; font-size: 1.35rem; color: var(--lav-700); }
.script.big { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--night-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b); color: #fff; font: 700 .98rem/1 var(--f-body); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: .6rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-glow { background: linear-gradient(135deg, var(--lav-600), var(--night-600)); box-shadow: 0 6px 22px rgba(107, 91, 154, .45); }
.btn-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .8s var(--ease);
}
.btn-glow:hover::after { transform: translateX(100%); }
.btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(233,231,242,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-ghost-dark { background: transparent; color: var(--night-700); border: 1.5px solid var(--lav-500); }
.btn-ghost-dark:hover { background: var(--lav-100); color: var(--night-700); }

/* ---------- Cabecera ---------- */
.announce { background: var(--night-900); color: var(--lav-200); text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 22, 56, .72); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201, 191, 232, .14);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(20, 15, 43, .92); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--silver); }
.brand img { width: 48px; height: 48px; filter: drop-shadow(0 0 10px rgba(201,191,232,.5)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand span { font: 600 1.15rem/1 var(--f-display); letter-spacing: .06em; color: var(--silver); }
.brand b { font-weight: 500; color: var(--lav-300); }
.main-nav { display: flex; gap: .3rem; }
.main-nav a {
  color: var(--lav-200); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .9rem; border-radius: 999px; position: relative; transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(201,191,232,.12); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold); transform: translateX(-50%);
}
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.cart-btn, .menu-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--silver); background: rgba(201,191,232,.1); border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.cart-btn:hover, .menu-btn:hover { background: rgba(201,191,232,.22); color: #fff; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: var(--night-800); font: 800 .72rem/20px var(--f-body); text-align: center;
}
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-8deg); } }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: var(--silver);
  background:
    radial-gradient(ellipse at 75% 20%, rgba(163,151,204,.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(107,91,154,.35), transparent 50%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-700) 70%, var(--night-600) 100%);
}
.hero { min-height: min(92vh, 860px); display: flex; align-items: center; padding: 4rem 0 7rem; }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-moon {
  position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,230,248,.25), rgba(163,151,204,.08) 45%, transparent 70%);
  filter: blur(4px);
}
.hero-mist {
  position: absolute; inset: auto -10% -10% -10%; height: 45%;
  background: radial-gradient(ellipse at 50% 100%, rgba(201,191,232,.28), transparent 65%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero h1, .page-hero h1 { color: #fff; text-shadow: 0 0 30px rgba(201,191,232,.35); }
.hero h1 em {
  font-family: var(--f-script); font-weight: 600; font-style: italic; display: block; font-size: 1.1em;
  background: linear-gradient(90deg, var(--lav-300), #fff, var(--gold), var(--lav-300));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.hero .eyebrow, .page-hero .eyebrow { color: var(--lav-300); }
.hero .lead { color: var(--lav-200); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-logo { position: relative; justify-self: center; width: min(460px, 80vw); }
.hero-logo img { position: relative; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(201,191,232,.45)); }
.hero-logo .halo {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,191,232,.45), transparent 65%);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .7; } }
.scroll-hint { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(233,231,242,.5); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--silver); animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--bg); }
.page-hero { padding: 4rem 0 6rem; text-align: center; }
.page-hero .lead { color: var(--lav-200); max-width: 40rem; margin-inline: auto; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* Animaciones de entrada */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s var(--ease) forwards; }
.fade-in { opacity: 0; animation: fadeIn 1.2s var(--ease) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Pasos / promesas ---------- */
.steps { padding: 4rem 0 3rem; }
.steps-grid, .promises-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step, .promise {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 2rem 1.6rem;
  box-shadow: var(--shadow); text-align: center; transition: transform .35s var(--ease), box-shadow .35s;
}
.step:hover, .promise:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step .ico, .promise .ico { color: var(--lav-600); margin: 0 auto .8rem; display: block; }
.step-n {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lav-500), var(--night-600)); color: #fff; font: 700 1rem/1 var(--f-display);
  box-shadow: var(--glow);
}
.step p, .promise p { color: var(--muted); margin: 0; font-size: .95rem; }
.promises { padding: 4rem 0; }
.promises-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Productos ---------- */
.featured, .catalog { padding: 3rem 0 4rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 1.6rem; }
.product-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--lav-200); }
.product-card.is-hidden { display: none; }
.product-media { position: relative; display: block; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--lav-100); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-media .shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.product-card:hover .shine { transform: translateX(120%); }
.product-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin: .3rem 0 .4rem; font-size: 1.1rem; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body .muted { font-size: .92rem; flex: 1; }
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; margin-top: .6rem; }
.product-foot small { display: block; color: var(--muted); font-size: .78rem; }
.price { font: 800 1.2rem/1.1 var(--f-body); color: var(--night-700); }
.price.big { font-size: 1.8rem; margin: .2rem 0 1rem; }
.tag { display: inline-block; align-self: flex-start; padding: .2rem .6rem; border-radius: 999px; background: var(--lav-100); color: var(--lav-700); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1.5px solid var(--lav-300); background: var(--surface); color: var(--lav-700); padding: .5rem 1.1rem; border-radius: 999px; font: 700 .9rem/1 var(--f-body); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--lav-600); }
.chip.is-active { background: var(--night-700); border-color: var(--night-700); color: #fff; }

.custom-cta {
  margin-top: 4rem; padding: 2.2rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(135deg, var(--night-700), var(--lav-700)); color: var(--lav-100); box-shadow: var(--shadow-lg);
}
.custom-cta h2 { color: #fff; margin-bottom: .3rem; }
.custom-cta p { margin: 0; }

/* Ficha de producto */
.product-page { padding: 2rem 0 4rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs span { margin: 0 .3rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.product-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: .6rem; }
.prose { color: var(--text); }
.buy-box { margin-top: 1.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.opt-group { border: 0; padding: 0; margin: 0 0 1rem; }
.opt-group legend { font-weight: 700; margin-bottom: .5rem; }
.opt-values { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--lav-300); cursor: pointer; font-weight: 600; font-size: .92rem; transition: all .2s; }
.opt input:checked + span { background: var(--night-700); color: #fff; border-color: var(--night-700); }
.opt input:focus-visible + span { outline: 3px solid var(--lav-500); outline-offset: 2px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.qty-row label { font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--lav-300); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--night-700); }
.qty button:hover { background: var(--lav-100); }
.qty input { width: 56px; height: 40px; border: 0; text-align: center; font: 700 1rem var(--f-body); -moz-appearance: textfield; background: transparent; color: var(--text); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 32px; height: 32px; }
.qty.sm input { width: 44px; height: 32px; font-size: .95rem; }
.line-total { font-size: 1.05rem; }

/* ---------- Banda parallax ---------- */
.parallax-band { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 9rem) 0; color: #fff; text-align: center; isolation: isolate; }
.parallax-bg {
  position: absolute; inset: -30% 0; z-index: -2;
  background: var(--photo) center / cover no-repeat;
  will-change: transform;
}
.parallax-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,15,43,.78), rgba(59,49,112,.72)); }
.parallax-content { max-width: 720px; }
.parallax-content .script { color: var(--lav-200); }
.parallax-content p { color: var(--lav-100); }

/* ---------- Opiniones ---------- */
.reviews-band { padding: 4rem 0 4.5rem; background: linear-gradient(180deg, var(--bg), var(--lav-100)); overflow: hidden; }
.rating-sum { color: var(--muted); }
.stars { color: #d9a93a; letter-spacing: 2px; }
.reviews-track { position: relative; overflow: hidden; }
.reviews-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; padding: .5rem 0 1rem; }
/* Carrusel (3+ opiniones): fila continua con bordes desvanecidos */
.reviews-track.animate { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-track.animate .reviews-row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; }
.reviews-track.animate .reviews-row { animation: marquee var(--dur, 40s) linear infinite; }
.reviews-track.animate:hover .reviews-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.review-card { position: relative; margin: 0; width: min(340px, 100%); flex: none; background: var(--surface); border: 1px solid var(--lav-200); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow-lg); }
.review-card::before { content: "\201C"; position: absolute; top: -.35rem; right: 1rem; font: 600 4.2rem/1 var(--f-script); color: var(--lav-200); pointer-events: none; }
.review-card blockquote { margin: .6rem 0; font-family: var(--f-script); font-style: italic; font-size: 1.2rem; line-height: 1.35; color: var(--ink); }
.review-card figcaption { font-weight: 700; color: var(--lav-700); font-size: .9rem; }
.review-card figcaption::before { content: "— "; }

/* ---------- Formularios / tarjetas ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.card-title { font-size: 1.15rem; margin-bottom: 1.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .92rem; margin-bottom: .2rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff;
  font: 400 1rem var(--f-body); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lav-500); box-shadow: 0 0 0 4px rgba(163,151,204,.25); }
.field input.invalid { border-color: var(--err); }
.field textarea { resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin: 1rem 0; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--lav-700); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .8rem; }
.pay-options { display: grid; gap: .7rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; height: 100%;
  padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); cursor: pointer; transition: all .2s;
}
.choice .ico { grid-row: span 2; color: var(--lav-600); }
.choice small { color: var(--muted); font-size: .82rem; }
.choice input:checked + span { border-color: var(--lav-600); background: var(--lav-50); box-shadow: 0 0 0 3px rgba(163,151,204,.25); }
.choice input:focus-visible + span { outline: 3px solid var(--lav-500); }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; border: 1px solid; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert-error { background: #fdf0f3; border-color: #f2c7d1; color: #7d2238; }
.alert-info { background: var(--lav-50); border-color: var(--lav-200); color: var(--night-700); }
.alert-ok { background: #edf8f3; border-color: #bfe5d4; color: #1e5e46; }

/* Checkout */
.checkout { padding: 2rem 0 4rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.sticky { position: sticky; top: 90px; }
.cart-lines { display: grid; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.cart-line h3 { font: 700 1rem/1.3 var(--f-body); color: var(--text); margin: 0; }
.cart-line .opts { color: var(--muted); font-size: .82rem; }
.cart-line .line-actions { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.cart-line .remove { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .3rem; border-radius: 8px; }
.cart-line .remove:hover { color: var(--err); background: #fdf0f3; }
.cart-line .lt { font-weight: 800; white-space: nowrap; }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty img { margin: 0 auto 1rem; opacity: .85; }
.totals { margin: 0; }
.totals > div { display: flex; justify-content: space-between; padding: .45rem 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 700; }
.totals .grand { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .8rem; font-size: 1.25rem; }
.totals .grand dt { color: var(--text); font-weight: 800; }
.free-meter { margin: .5rem 0 1rem; }
.free-meter .bar { height: 8px; border-radius: 4px; background: var(--lav-100); overflow: hidden; }
.free-meter .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lav-500), var(--night-600)); transition: width .6s var(--ease); }
.free-meter small { color: var(--muted); }

/* Pedido */
.order-view { padding: 2rem 0 4rem; }
.success-card { text-align: center; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--lav-500), var(--night-600)); box-shadow: var(--glow); animation: pulse 3s ease-in-out infinite; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { border-bottom: 0; padding: .35rem .5rem; }
.table tfoot .grand td { font-weight: 800; font-size: 1.1rem; padding-top: .7rem; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; margin: 1.2rem 0 0; }
.kv dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.bank { white-space: pre-wrap; background: var(--lav-50); border: 1px dashed var(--lav-300); padding: 1rem; border-radius: var(--radius-sm); font: 600 .95rem/1.6 var(--f-body); }
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--lav-100); color: var(--night-700); }
.st-pagado, .st-confirmado, .st-entregado { background: #e3f4ec; color: #1e5e46; }
.st-pendiente_pago { background: #fff4de; color: #7a5410; }
.st-pago_rechazado, .st-cancelado { background: #fdeaee; color: #7d2238; }
.st-en_preparacion, .st-listo { background: #e7e9fb; color: #343a8a; }

/* Formularios con aside */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.ticks { padding-left: 1.2rem; }
.ticks li { margin-bottom: .7rem; }
.ticks li::marker { color: var(--lav-600); font-weight: 800; }
.contact-cards { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.contact-cards li { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); padding: 1rem 1.1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.contact-cards .ico { color: var(--lav-600); margin-top: .1rem; }
.contact-cards b { display: block; }

/* Estrellas de opinión */
.star-input { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: row-reverse; justify-content: center; gap: .3rem; }
.star-input legend { width: 100%; text-align: center; font-weight: 700; margin-bottom: .5rem; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2.6rem; line-height: 1; color: var(--lav-200); cursor: pointer; transition: transform .15s, color .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #e2b13c; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid var(--lav-500); border-radius: 6px; }

/* Nosotros / legales / FAQ */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about-img img { border-radius: 50%; box-shadow: var(--shadow-lg), var(--glow); animation: float 8s ease-in-out infinite; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal li { margin-bottom: .5rem; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: .8rem; overflow: hidden; }
.faq summary { padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lav-600); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Modal agregar ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(20,15,43,.6); backdrop-filter: blur(4px); animation: fadeIn .25s; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(460px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-lg); animation: fadeUp .35s var(--ease); }
.modal-box h3 { margin-right: 2rem; }
.modal-close { position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--lav-100); cursor: pointer; color: var(--night-700); display: grid; place-items: center; }
.modal-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.modal-head img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--night-900); color: var(--lav-200); padding: 4rem 0 1.5rem; }
.footer-glow { position: absolute; width: 600px; height: 600px; left: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(163,151,204,.18), transparent 70%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .93rem; }
.site-footer a { color: var(--lav-200); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .script { color: var(--lav-300); }
.site-footer .muted { color: #9d95c0; font-size: .9rem; }
.footer-brand img { width: 84px; height: 84px; margin-bottom: .6rem; filter: drop-shadow(0 0 12px rgba(201,191,232,.4)); }
.contact-list li { display: flex; gap: .55rem; align-items: center; }
.contact-list .ico { color: var(--lav-500); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(201,191,232,.15); font-size: .85rem; color: #9d95c0; }
.pay-badges { display: inline-flex; gap: .4rem; align-items: center; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .25s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); background: var(--night-700); color: #fff; padding: .85rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 700; display: flex; gap: .6rem; align-items: center; animation: fadeUp .3s var(--ease); max-width: calc(100% - 32px); }
.toast a { color: var(--gold); }

/* Chispas del cursor */
.spark { position: fixed; z-index: 70; pointer-events: none; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(201,191,232,.9); animation: spark .9s ease-out forwards; }
@keyframes spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; width: min(300px, 70vw); }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .scroll-hint { display: none; }
  .promises-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid, .form-layout, .product-detail, .about-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-img { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: .8rem 16px 1.2rem;
    background: rgba(20,15,43,.97); border-bottom: 1px solid rgba(201,191,232,.15);
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: .9rem 1rem; border-radius: 12px; }
  .main-nav a[aria-current="page"]::after { left: auto; right: 1rem; top: 50%; bottom: auto; transform: translateY(-50%); }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid, .choice-row, .kv { grid-template-columns: 1fr; }
  .custom-cta { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 1rem; }
  .hero { padding-top: 2rem; }
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line img { width: 56px; height: 56px; }
  .cart-line .lt { grid-column: 2; }
}
@media (max-width: 460px) {
  .promises-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up, .fade-in { opacity: 1; transform: none; }
}
