/* =============================================================
   Klivron · estilos
   1. Tokens · 2. Base · 3. Utilidades · 4. Componentes
   5. Secciones · 6. Paisaje inmersivo · 7. Carrito · 8. Efectos
   9. Responsive · 10. Movimiento reducido
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #081635;
  --bg-2: #061029;
  --surface: #0c2348;
  --surface-2: #10295a;
  --line: rgba(206, 161, 122, 0.18);
  --line-soft: rgba(243, 238, 230, 0.1);
  --ink: #f3eee6;
  --muted: #a7b1c0;
  --gold: #cea17a;
  --gold-2: #e4bf94;
  --hl: #6db3ff;
  --blue: #2563eb;
  --paper: #e6e6e6;

  --display: "Montserrat", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 76px;
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* grano fino sobre todo el sitio */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 3. Utilidades ------------------------------------------------ */
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: 0.6rem 1rem; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.hl { color: var(--hl); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 600 0.74rem/1 var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(206, 161, 122, 0.18); }

.label {
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.4rem;
  font: 600 0.72rem/1 var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}
.label b { color: var(--gold); font-weight: 700; }
.label::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--line); }

.mega {
  font: 800 clamp(3rem, 11vw, 9.6rem)/0.9 var(--display);
  letter-spacing: -0.02em; text-transform: uppercase;
}
.title {
  font: 800 clamp(2.2rem, 6vw, 4.8rem)/0.95 var(--display);
  letter-spacing: -0.015em; text-transform: uppercase;
}
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section-lede { margin-top: 1.2rem; max-width: 52ch; color: var(--muted); font-size: 1.06rem; }

/* 4. Componentes ----------------------------------------------- */
.btn {
  --bgc: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 600 0.8rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--bgc); transition: transform 0.4s var(--ease-out), color 0.3s, border-color 0.3s, background 0.3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translateY(101%); transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn:active { transform: scale(0.97); }
.btn-gold { --bgc: var(--gold); color: var(--bg); }
.btn-ghost { border: 1px solid rgba(243, 238, 230, 0.35); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-add { --bgc: transparent; min-height: 44px; padding: 0 1.2rem; border: 1px solid var(--gold); color: var(--gold-2); }
.btn-add::before { background: var(--gold); }
.btn-add.is-added { --bgc: var(--gold); color: var(--bg); }
.btn-block { width: 100%; }

/* splash */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--bg); transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash img { width: 84px; height: 84px; animation: bloom 1.4s var(--ease-out) both; }
.splash span { font: 600 0.8rem/1 var(--display); letter-spacing: 0.6em; padding-left: 0.6em; color: var(--ink); animation: fadeUp 1s 0.3s var(--ease-out) both; }
.splash.is-out { opacity: 0; visibility: hidden; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; } }
@keyframes bloom { from { transform: scale(0.6) rotate(-45deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(8, 22, 53, 0.82); border-color: var(--line-soft); }
@supports (backdrop-filter: blur(12px)) { .nav.is-solid { background: rgba(8, 22, 53, 0.6); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); } }
.nav.is-hidden { transform: translateY(-100%); }
.nav-row { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand img { width: 172px; height: auto; }
.nav nav { margin-left: auto; }
.nav-links { display: none; gap: clamp(1.1rem, 2.2vw, 2.2rem); }
.nav-links a { white-space: nowrap; }
.nav-links a { position: relative; font: 600 0.74rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243, 238, 230, 0.8); padding-block: 0.5rem; transition: color 0.3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.6rem; height: 44px; padding: 0 0.9rem 0 1rem;
  border: 1px solid rgba(243, 238, 230, 0.25); border-radius: 999px; transition: border-color 0.3s, background 0.3s;
  font: 600 0.74rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
}
.cart-btn:hover { border-color: var(--gold); background: rgba(206, 161, 122, 0.08); }
.cart-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-label { display: none; }
.cart-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--bg); font: 700 0.72rem/1 var(--display); letter-spacing: 0; }
.cart-count.is-bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* paisajes: base para todas las ventanas */
.world { position: absolute; inset: 0; overflow: hidden; display: block; }
/* solo las capas que se mueven con el scroll ocupan memoria gráfica propia */
.world .ly { position: absolute; inset: 0; transform-origin: 50% 100%; backface-visibility: hidden; }
.hero-world.is-active .ly { will-change: transform; }
.world .ly svg { width: 100%; height: 100%; }
.world, .im-stage { container-type: size; }
/* ramas que cuelgan de la esquina superior derecha de cada paisaje */
.ly-branch {
  position: absolute; top: 7%; right: -4%; width: 40%; max-width: 720px; height: auto; pointer-events: none;
  rotate: var(--rot, 4deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}
@container (aspect-ratio < 1) {
  .ly-branch { width: 82%; right: -16%; top: 8%; }
}
/* respaldo sin JavaScript */
.world[data-world="naranja"] { background: linear-gradient(#081635 0%, #22386e 32%, #8a6a86 52%, #e09a68 64%, #22355a 70%, #0b1a2c 100%); }
.world[data-world="coco"] { background: linear-gradient(#040d22 0%, #0d2552 40%, #2e5e98 64%, #123a6c 66%, #2a2a3c 100%); }
.world[data-world="cafe"] { background: linear-gradient(#081635 0%, #2b4c80 34%, #8ea6c6 58%, #38557f 68%, #0a1828 100%); }

/* 5. Secciones ------------------------------------------------- */

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-world { opacity: 0; visibility: hidden; transition: opacity 1.6s var(--ease-soft), visibility 0s 1.6s; }
.hero-world.is-active { opacity: 1; visibility: visible; transition: opacity 1.6s var(--ease-soft), visibility 0s; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 22, 53, 0.55) 0%, rgba(8, 22, 53, 0) 26%),
    linear-gradient(0deg, rgba(8, 22, 53, 0.92) 0%, rgba(8, 22, 53, 0.35) 38%, rgba(8, 22, 53, 0) 62%),
    linear-gradient(90deg, rgba(8, 22, 53, 0.55) 0%, rgba(8, 22, 53, 0) 55%);
}
.hero-products { display: none; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-inner { padding-top: calc(var(--nav-h) + 40px); }
.hero-title { margin: 1.4rem 0 1.4rem; max-width: 11ch; font-size: clamp(3.4rem, 15vw, 9.6rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.2s var(--ease-out) 0.7s both; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.82s; color: var(--gold-2); }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero-lede { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; max-width: 30ch; color: rgba(243, 238, 230, 0.92); font-style: italic; }
.hero-lede [data-hero-line] { display: block; color: var(--gold-2); transition: opacity 0.6s; }
.hero-lede [data-hero-line].is-swap { opacity: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-block: 2.6rem 1.8rem; }
.pager { display: flex; gap: 0.5rem; flex: 1; max-width: 560px; }
.pager li { flex: 1; }
.pager button { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 0.6rem; padding-top: 0.9rem; text-align: left; color: rgba(243, 238, 230, 0.55); transition: color 0.3s; position: relative; }
.pager button b { font: 700 0.78rem/1 var(--display); letter-spacing: 0.1em; }
.pager button span { font: 500 0.72rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; display: none; }
.pager button i { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(243, 238, 230, 0.2); overflow: hidden; }
.pager button i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.pager button.is-active { color: var(--ink); }
.pager button.is-active i::after { animation: progress var(--slide-ms, 8000ms) linear forwards; }
.pager.is-paused button.is-active i::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.scroll-cue { display: none; align-items: center; gap: 0.8rem; font: 600 0.68rem/1 var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease-soft) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: 1.3rem; }
.marquee-track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 500 clamp(1.4rem, 3vw, 2.2rem)/1 var(--serif); font-style: italic; white-space: nowrap; }
.marquee em { font-style: normal; color: var(--gold); font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* manifiesto */
.manifesto { background: radial-gradient(80% 60% at 85% 0%, rgba(37, 99, 235, 0.16), transparent 60%), var(--bg); }
.statement { font-size: clamp(1.9rem, 4.6vw, 3.9rem); line-height: 1.12; font-weight: 400; max-width: 22ch; letter-spacing: -0.01em; }
.statement em { color: var(--gold-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.6rem; margin-top: clamp(56px, 8vw, 110px); padding-top: 2.4rem; border-top: 1px solid var(--line); }
.stats dt { font: 700 clamp(2.4rem, 5vw, 3.8rem)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.stats dt small { font-size: 0.45em; color: var(--gold); margin-inline: 0.05em; }
.stats dd { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; max-width: 24ch; }

/* tarjetas de jabones */
.shop { background: linear-gradient(var(--bg), var(--bg-2)); }
.cards { display: grid; gap: 28px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, #0a1d3f 100%); border: 1px solid var(--line-soft);
  transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.6s var(--ease-out);
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(206, 161, 122, 0.12); }
.card-world { position: relative; display: block; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; }
.card-world .world { transition: transform 1.2s var(--ease-out); }
.card:hover .card-world .world { transform: scale(1.06); }
.card-hint {
  position: absolute; top: 14px; right: 14px; z-index: 2; padding: 0.5rem 0.8rem; border-radius: 99px;
  background: rgba(8, 22, 53, 0.55); border: 1px solid rgba(243, 238, 230, 0.2);
  font: 600 0.64rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.card-world:hover .card-hint { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.cutout {
  position: relative; z-index: 2; height: clamp(150px, 15vw, 200px); margin: -132px auto 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; pointer-events: none;
}
.cutout::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -6px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); z-index: -1; }
.cutout img { max-height: 100%; max-width: 84%; width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); transition: transform 1s var(--ease-out); transform-origin: 50% 100%; }
.card:hover .cutout img { transform: translateY(-8px) scale(1.04); }
.cutout-soon img { max-width: 70%; }
.cutout-soon figcaption { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 0.35rem 0.7rem; border-radius: 99px; background: rgba(8, 22, 53, 0.7); border: 1px solid var(--line); font: 600 0.6rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.7rem; text-align: center; }
.notes { font-style: italic; color: var(--gold-2); font-size: 1.15rem; }
.card h3 { font: 800 clamp(1.8rem, 3.4vw, 2.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin: 0.4rem 0 0.8rem; }
.card-body > p:not(.notes) { color: var(--muted); font-size: 0.97rem; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 1.1rem 0 1.4rem; }
.tags li { padding: 0.36rem 0.7rem; border-radius: 99px; border: 1px solid var(--line-soft); font-size: 0.78rem; color: rgba(243, 238, 230, 0.75); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.price { font: 700 1.35rem/1 var(--display); white-space: nowrap; }
.price small { font: 500 0.7rem/1 var(--sans); color: var(--muted); letter-spacing: 0.08em; }

/* origen: paneles que se expanden */
.origin { background: var(--bg-2); }
.panels { display: grid; gap: 12px; }
.panel {
  position: relative; display: block; width: 100%; min-height: 340px; border-radius: var(--radius); overflow: hidden; text-align: left; isolation: isolate;
  transition: flex-grow 0.9s var(--ease-out);
}
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out), filter 0.8s; filter: saturate(0.85) brightness(0.8); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 16, 41, 0.95) 0%, rgba(6, 16, 41, 0.35) 50%, rgba(6, 16, 41, 0.15) 100%); }
.panel:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.9); }
.panel-num { position: absolute; top: 20px; left: 22px; font: 700 0.78rem/1 var(--display); letter-spacing: 0.14em; color: var(--gold-2); }
.panel-txt { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 0.4rem; }
.panel-where { font: 600 0.68rem/1 var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.panel-name { font: 800 clamp(2rem, 4vw, 3.2rem)/1 var(--display); text-transform: uppercase; }
.panel-line { font-size: 1.25rem; font-style: italic; color: rgba(243, 238, 230, 0.85); }
.panel-go { margin-top: 0.6rem; font: 600 0.7rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); }

/* proceso */
.process { background: radial-gradient(70% 50% at 0% 100%, rgba(206, 161, 122, 0.08), transparent 60%), var(--bg); }
.process-grid { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
.process-media { position: relative; padding-bottom: 18%; }
.process-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
.process-photo.small { position: absolute; right: -4%; bottom: 0; width: 48%; aspect-ratio: 1; border: 6px solid var(--bg); border-radius: 50%; }
.steps { margin-top: 2.4rem; display: grid; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps b { font: 700 0.85rem/1.8 var(--display); color: var(--gold); letter-spacing: 0.1em; }
.steps h3 { font: 700 1.15rem/1.3 var(--display); margin-bottom: 0.35rem; }
.steps p { color: var(--muted); }

/* envíos */
.shipping { background: linear-gradient(var(--bg), var(--bg-2)); }
.info { display: grid; gap: 16px; }
.info-card { padding: 2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(12, 35, 72, 0.5); transition: border-color 0.4s, transform 0.6s var(--ease-out); }
.info-card:hover { border-color: var(--line); transform: translateY(-4px); }
.info-card svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.6; margin-bottom: 1.4rem; }
.info-card h3 { font: 600 0.74rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.info-card .big { font: 800 clamp(2.2rem, 4vw, 3rem)/1.1 var(--display); margin: 0.6rem 0; }
.info-card p:last-child { color: var(--muted); }
.faq { margin-top: clamp(48px, 7vw, 80px); max-width: 860px; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; font: 600 1.05rem/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--gold); transition: transform 0.4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; color: var(--muted); max-width: 64ch; }

/* cierre */
.closing { position: relative; min-height: 80vh; min-height: 80svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.closing-world { z-index: -2; }
.closing-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(6, 16, 41, 0.2) 35%, rgba(6, 16, 41, 0.6) 100%); }
.closing-inner { display: grid; justify-items: center; gap: 1.6rem; padding-block: 120px; }
.closing .mega { font-size: clamp(2.8rem, 10vw, 8rem); max-width: 10ch; }

/* footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 72px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { width: 170px; }
.footer-brand p { margin-top: 1rem; font-size: 1.25rem; font-style: italic; color: var(--muted); max-width: 26ch; }
.footer h3 { font: 600 0.72rem/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer li { padding-block: 0.3rem; color: rgba(243, 238, 230, 0.8); }
.footer a:hover { color: var(--gold-2); }
.soon { margin-left: 0.4rem; padding: 0.15rem 0.5rem; border-radius: 99px; border: 1px solid var(--line); font-size: 0.7rem; color: var(--muted); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 56px; padding-block: 1.6rem; border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--muted); }

/* 6. Paisaje inmersivo ----------------------------------------- */
.immersive {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--bg); color: var(--ink); overflow: hidden;
  clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%));
  transition: clip-path 0.9s var(--ease-out);
}
.immersive.is-open { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); }
.immersive::backdrop { background: rgba(4, 10, 24, 0.5); }
.im-stage { position: absolute; inset: 0; }
.im-stage .ly { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 100%; backface-visibility: hidden; }
.im-stage .ly svg { width: 100%; height: 100%; }
.im-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(6, 16, 41, 0.85) 0%, rgba(6, 16, 41, 0.3) 45%, rgba(6, 16, 41, 0) 65%), linear-gradient(90deg, rgba(6, 16, 41, 0.6) 0%, rgba(6, 16, 41, 0) 60%), linear-gradient(180deg, rgba(6, 16, 41, 0.45) 0%, rgba(6, 16, 41, 0) 25%); }
.im-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.im-fx i { position: absolute; top: -20px; border-radius: 50%; animation: fall var(--t, 12s) linear var(--dl, 0s) infinite; }
@keyframes fall { to { transform: translate(var(--dx, 0px), 110vh); } }
.im-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; transition: opacity 0.35s; }
.im-stage { transition: opacity 0.35s; }
.immersive.is-swapping .im-scroll, .immersive.is-swapping .im-stage { opacity: 0; }

/* barra superior: marca + pasos */
.im-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 1.6rem;
  padding: 18px 86px 18px var(--gutter); pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 16, 41, 0.7), rgba(6, 16, 41, 0));
}
.im-brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 0.78rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.im-brand img { width: 28px; height: 28px; }
.im-steps { display: flex; gap: 6px; flex: 1; max-width: 560px; margin-left: auto; pointer-events: auto; }
.im-steps li { flex: 1; }
.im-steps button { width: 100%; display: grid; gap: 0.55rem; text-align: left; padding-block: 0.4rem; color: rgba(243, 238, 230, 0.5); transition: color 0.3s; }
.im-steps i { display: block; height: 2px; border-radius: 2px; background: rgba(243, 238, 230, 0.2); position: relative; overflow: hidden; }
.im-steps i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.im-steps button.on, .im-steps button.done { color: var(--ink); }
.im-steps button.on i::after, .im-steps button.done i::after { transform: scaleX(1); }
.im-steps span { display: none; font: 600 0.62rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; }

/* capítulos */
.im-ch { position: relative; min-height: 100%; display: grid; align-items: center; scroll-snap-align: start; padding: calc(var(--nav-h) + 30px) var(--gutter) 64px; }
.im-num {
  position: absolute; right: var(--gutter); bottom: 2vh; z-index: 0; pointer-events: none;
  font: 800 clamp(7rem, 22vw, 18rem)/0.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(228, 191, 148, 0.22);
}
.im-grid { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin-inline: auto; display: grid; gap: 2rem; align-items: center; will-change: opacity, transform; }
.im-col { min-width: 0; }
.im-where { font: 600 0.72rem/1 var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); display: flex; align-items: center; gap: 0.8rem; }
.im-where::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.im-ch h3 { font: 800 clamp(2.2rem, 6vw, 4.6rem)/0.95 var(--display); text-transform: uppercase; margin: 1rem 0 1.1rem; text-wrap: balance; text-shadow: 0 4px 34px rgba(6, 16, 41, 0.75); }
.im-ch h3.im-big { font-size: clamp(3.4rem, 12vw, 9rem); }
/* nombres con palabras largas (Cereza Japonesa): más pequeños para que el jabón no los tape */
.im-ch h3.im-big-long { font-size: clamp(2.6rem, 9vw, 6.2rem); }
.im-story { font: italic 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--serif); color: rgba(243, 238, 230, 0.92); max-width: 34ch; }
.im-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.im-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.im-chips li { padding: 0.5rem 0.9rem; border-radius: 99px; border: 1px solid rgba(228, 191, 148, 0.35); background: rgba(8, 22, 53, 0.45); font-size: 0.85rem; }
.im-hint { margin-top: 2.2rem; display: inline-flex; align-items: center; gap: 0.7rem; font: 600 0.68rem/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.im-hint i { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease-soft) infinite; transform-origin: top; }
.im-visual { display: grid; justify-items: center; gap: 1.6rem; }
.im-visual .cutout { margin: 0; height: clamp(170px, 34vh, 360px); width: 100%; }
.im-visual .cutout img { max-width: 100%; animation: float 7s ease-in-out infinite; }
.im-visual .cutout-soon img { max-width: 78%; }

/* panel de vidrio */
.glass {
  padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: var(--radius); border: 1px solid rgba(228, 191, 148, 0.22);
  background: rgba(8, 22, 53, 0.82); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
@supports (backdrop-filter: blur(10px)) { .glass { background: rgba(8, 22, 53, 0.5); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); } }
.glass-title { font: 600 0.68rem/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }

.im-ingredients li { display: grid; grid-template-columns: 40px 1fr; gap: 0.8rem; padding-block: 0.9rem; border-top: 1px solid var(--line-soft); }
.im-ingredients li:first-child { border-top: 0; padding-top: 0.2rem; }
.im-ingredients b { font: 700 0.8rem/1.6 var(--display); color: var(--gold); }
.im-ingredients h4 { font: 700 1.02rem/1.3 var(--display); }
.im-ingredients p { color: var(--muted); font-size: 0.92rem; }

.im-photo-col { display: none; }
.im-photo { aspect-ratio: 4 / 5; max-height: 64vh; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; border: 1px solid rgba(228, 191, 148, 0.3); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); margin-inline: auto; }
.im-photo img { width: 100%; height: 100%; object-fit: cover; }
.meters { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.meter-top { display: flex; justify-content: space-between; font: 600 0.78rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.55rem; }
.meter-top em { font: italic 500 1.05rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold-2); }
.meter-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.meter-bar i { height: 6px; border-radius: 3px; background: rgba(243, 238, 230, 0.14); }
.meter-bar i.on { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.im-ideal li { position: relative; padding: 0.45rem 0 0.45rem 1.4rem; color: rgba(243, 238, 230, 0.88); }
.im-ideal li::before { content: "✦"; position: absolute; left: 0; top: 0.5rem; font-size: 0.7rem; color: var(--gold); }

.im-buy-box { display: grid; gap: 1.2rem; max-width: 460px; }
.im-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.im-buy-row .price { font-size: 1.9rem; }
.im-qty { margin-top: 0; }
.im-qty button { width: 40px; height: 40px; font-size: 1.2rem; }
.im-qty output { min-width: 28px; font-size: 1.05rem; }
.im-perks { display: grid; gap: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: 0.88rem; color: var(--muted); }
.im-perks li::before { content: "✓"; color: var(--gold); margin-right: 0.6rem; }
.im-back { margin-top: 1.4rem; font: 600 0.72rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.im-back:hover { color: var(--gold-2); }
.im-others { width: 100%; max-width: 460px; display: grid; gap: 0.6rem; }
.im-others .glass-title { margin-bottom: 0.2rem; }
.im-other {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 0.9rem; padding: 0.6rem 1rem 0.6rem 0.6rem; text-align: left;
  border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(8, 22, 53, 0.6); transition: border-color 0.3s, transform 0.5s var(--ease-out);
  font: 700 1rem/1.2 var(--display); text-transform: uppercase;
}
.im-other:hover { border-color: var(--gold); transform: translateX(4px); }
.im-other img { width: 56px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.im-other small { display: block; font: 600 0.6rem/1.4 var(--display); letter-spacing: 0.2em; color: var(--muted); }
.im-other-go { color: var(--gold); }

.im-close {
  position: absolute; top: 14px; right: 18px; z-index: 5; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; line-height: 1;
  background: rgba(8, 22, 53, 0.55); border: 1px solid rgba(243, 238, 230, 0.3); transition: background 0.3s, transform 0.5s var(--ease-out);
}
.im-close:hover { background: var(--gold); color: var(--bg); transform: rotate(90deg); }

@media (min-width: 720px) {
  .im-steps span { display: block; }
}
@media (min-width: 960px) {
  .studio-grid { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .studio-stage { position: sticky; top: calc(var(--nav-h) + 20px); aspect-ratio: 5 / 4.6; }
  .opts-4 { grid-template-columns: repeat(4, 1fr); }
  .im-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
  .im-photo-col { display: block; }
  .im-visual .cutout { height: clamp(220px, 40vh, 420px); }
}
@media (max-width: 539px) {
  .im-brand span { display: none; }
  .im-top { padding-right: 78px; }
}

/* 7. Carrito --------------------------------------------------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); height: 100%; max-height: none; max-width: none; margin: 0 0 0 auto;
  border: 0; border-left: 1px solid var(--line); background: var(--bg-2); color: var(--ink); padding: 0;
  transform: translateX(100%); transition: transform 0.55s var(--ease-out);
}
.drawer.is-open { transform: none; }
.drawer::backdrop { background: rgba(4, 10, 24, 0.6); }
@supports (backdrop-filter: blur(4px)) { .drawer::backdrop { backdrop-filter: blur(4px); } }
.drawer-inner { height: 100%; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line-soft); }
.drawer-head h2 { font: 800 1.3rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; border: 1px solid var(--line-soft); transition: border-color 0.3s, transform 0.5s var(--ease-out); }
.icon-btn:hover { border-color: var(--gold); transform: rotate(90deg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.4rem 1.6rem 2rem; display: grid; align-content: start; gap: 1.4rem; }
.cart-empty { display: grid; justify-items: center; gap: 1rem; padding-block: 3rem; text-align: center; }
.cart-empty p { font-size: 1.4rem; font-style: italic; color: var(--muted); }
.cart-items { display: grid; gap: 0.8rem; }
.cart-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.7rem; border-radius: 16px; background: rgba(12, 35, 72, 0.6); border: 1px solid var(--line-soft); }
.cart-thumb { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; padding: 6px; background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg)); }
.cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.cart-items h4 { font: 700 0.95rem/1.2 var(--display); }
.cart-items .unit { font-size: 0.82rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.4rem; border: 1px solid var(--line-soft); border-radius: 99px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; }
.qty button:hover { color: var(--gold); }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }
.line-total { font: 700 0.95rem/1 var(--display); }
.cart-totals { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); color: var(--muted); }
.cart-totals div { display: flex; justify-content: space-between; }
.cart-totals .total { color: var(--ink); font: 700 1.2rem/1.2 var(--display); padding-top: 0.6rem; border-top: 1px dashed var(--line); }
.cart-form, .cart-summary { display: grid; gap: 0.9rem; }
.cart-form h3, .cart-summary h3 { font: 600 0.74rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-top: 0.6rem; }
.cart-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.cart-form input, .cart-form textarea, .cart-summary textarea {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(12, 35, 72, 0.6);
  color: var(--ink); font: 400 1rem/1.4 var(--sans); resize: vertical; transition: border-color 0.3s;
}
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--gold); }
.cart-form .is-invalid { border-color: #e2725b; }
.cart-summary textarea { font: 400 0.9rem/1.5 ui-monospace, monospace; }
.cart-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-msg { font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
.cart-note { font-size: 0.8rem; color: var(--muted); padding: 0.8rem 1rem; border-radius: 12px; border: 1px dashed var(--line); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; padding: 0.85rem 1.3rem; border-radius: 99px;
  background: var(--ink); color: var(--bg); font: 600 0.85rem/1 var(--sans);
  transform: translate(-50%, 200%); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.3s; pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* 8. Efectos --------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
[data-reveal].is-in, html.no-js [data-reveal] { opacity: 1; transform: none; }

.ks-twinkle { animation: twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite; }
@keyframes twinkle { 50% { opacity: 0.2; } }
.ks-drift { animation: drift var(--d, 90s) linear infinite; }
@keyframes drift { to { transform: translateX(-1600px); } }
.ks-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway var(--d, 6s) ease-in-out infinite alternate; }
.ks-hang { transform-origin: 100% 15%; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.ks-shimmer { animation: shimmer var(--d, 3s) ease-in-out var(--dl, 0s) infinite; }
@keyframes shimmer { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.75; } }
.ks-wave { animation: wave var(--d, 14s) linear infinite; }
@keyframes wave { to { transform: translateX(calc(var(--p, 300px) * -1)); } }
.ks-foam { animation: foam var(--d, 7s) ease-in-out infinite alternate; }
@keyframes foam { to { transform: translateY(8px); opacity: 0.6; } }


/* selector de versión: tradicional / glicerina */
.vswitch { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: rgba(6, 16, 41, 0.55); margin-bottom: 1.2rem; }
.vswitch button { padding: 0.55rem 1rem; border-radius: 99px; font: 600 0.7rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 238, 230, 0.65); transition: background 0.35s var(--ease-out), color 0.3s; }
.vswitch button:hover { color: var(--ink); }
.vswitch button[aria-pressed="true"] { background: var(--gold); color: var(--bg); }
.card .vswitch { display: grid; width: 100%; max-width: 300px; margin: 0 auto 1.2rem; }
.card .vswitch button { padding: 0.6rem 0.4rem; letter-spacing: 0.1em; min-width: 0; }
.im-buy-box .vswitch, .glass .vswitch { margin-bottom: 1.4rem; width: 100%; }

/* sección dos versiones */
.types { background: radial-gradient(60% 50% at 100% 0%, rgba(37, 99, 235, 0.14), transparent 60%), var(--bg-2); }
.types-grid { display: grid; gap: 20px; }
.type-card { position: relative; padding: clamp(1.8rem, 3.4vw, 2.8rem); border-radius: var(--radius); border: 1px solid var(--line-soft); background: linear-gradient(160deg, rgba(16, 41, 90, 0.7), rgba(8, 22, 53, 0.7)); overflow: hidden; transition: border-color 0.4s, transform 0.6s var(--ease-out); }
.type-card:hover { border-color: var(--line); transform: translateY(-4px); }
.type-card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(206, 161, 122, 0.18), transparent); pointer-events: none; }
.type-kicker { font: 600 0.7rem/1 var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.type-card h3 { font: 800 clamp(2rem, 4vw, 3rem)/1 var(--display); text-transform: uppercase; margin: 0.8rem 0 1rem; }
.type-card > p:not(.type-kicker) { color: var(--muted); max-width: 46ch; }
.type-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.4rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.type-facts dt { font: 600 0.66rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.type-facts dd { font: italic 500 1.2rem/1.25 var(--serif); color: var(--ink); }
.cart-items h4 small { display: block; font: 600 0.62rem/1.6 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }


/* "Más aromas" -------------------------------------------------- */
.more { margin-top: clamp(64px, 9vw, 110px); }
.more-head { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; }
.more-title { font: 800 clamp(1.7rem, 3.6vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.more-head p { color: var(--muted); max-width: 56ch; }
.more-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.6rem; }
.more-filters button {
  padding: 0.55rem 1rem; border-radius: 99px; border: 1px solid var(--line-soft); background: rgba(8, 22, 53, 0.5);
  font: 600 0.68rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 238, 230, 0.75);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.more-filters button:hover { border-color: var(--line); color: var(--ink); }
.more-filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 720px) { .more-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; } }
.mini {
  display: flex; flex-direction: column; padding: 1rem 1.1rem 1.1rem; border-radius: 18px; border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(16, 41, 90, 0.55), rgba(8, 22, 53, 0.6)); text-align: center;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.mini:hover { border-color: var(--line); transform: translateY(-4px); }
.mini-soap { height: clamp(80px, 22vw, 110px); display: grid; place-items: center; margin-bottom: 0.6rem; border-radius: 12px; background: radial-gradient(60% 70% at 50% 45%, rgba(37, 99, 235, 0.16), transparent 70%); }
.mini-soap svg { width: 78%; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35)); }
.mini-world { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.3; border-radius: 12px; overflow: hidden; margin-bottom: 0.7rem; isolation: isolate; }
.mini-world .world { z-index: -1; transition: transform 1s var(--ease-out); }
.mini:hover .mini-world .world { transform: scale(1.06); }
.mini-world .mini-soap { position: absolute; left: 0; right: 0; bottom: 4%; height: 48%; margin: 0; background: none; }
.mini-world .card-hint { top: 8px; right: 8px; padding: 0.35rem 0.6rem; font-size: 0.56rem; }
.cutout-drawn svg { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
.card .cutout-drawn { display: flex; align-items: flex-end; justify-content: center; }
.card .cutout-drawn svg { width: min(84%, 380px); height: auto; max-height: 100%; transition: transform 1s var(--ease-out); transform-origin: 50% 100%; }
.card:hover .cutout-drawn svg { transform: translateY(-8px) scale(1.04); }
.im-visual .cutout-drawn { height: auto; }
.im-visual .cutout-drawn svg { width: min(100%, 560px); margin-inline: auto; animation: float 7s ease-in-out infinite; }
.im-other-soap { display: grid; place-items: center; width: 56px; height: 44px; }
.im-other-soap svg { width: 100%; height: auto; }
.mini h4 { font: 800 1.1rem/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.mini-note { margin: 0.35rem 0 0.9rem; font: italic 400 1.02rem/1.3 var(--serif); color: var(--gold-2); }
.mini-only { margin-bottom: 0.9rem; font: 600 0.62rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 0.75rem 0; }
.vswitch-sm { width: 100%; margin: 0 0 0.9rem; }
.vswitch-sm { display: grid; grid-template-columns: 1fr 1fr; }
.vswitch-sm button { min-width: 0; padding: 0.5rem 0.15rem; font: 600 0.68rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.mini-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }
.mini-buy .price { font-size: 1.05rem; }
.mini-buy .btn-add { min-height: 38px; padding: 0 0.9rem; font-size: 0.68rem; }

/* "Crea tu jabón" ---------------------------------------------- */
.shop-more { margin-top: 2.6rem; text-align: center; color: var(--muted); }
.shop-more a { color: var(--gold-2); font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s; }
.shop-more a:hover { border-color: var(--gold); }
.studio { background: radial-gradient(60% 50% at 20% 30%, rgba(206, 161, 122, 0.08), transparent 60%), var(--bg); }
.studio-grid { display: grid; gap: 24px; align-items: start; }

/* mesa de trabajo donde aparece el jabón */
.studio-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-soft);
  background: radial-gradient(70% 55% at 50% 42%, #1a3566 0%, #0c2148 55%, #081635 100%);
}
.studio-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: -1;
  background: linear-gradient(180deg, rgba(206, 161, 122, 0.12), rgba(6, 16, 41, 0.6)); border-top: 1px solid rgba(206, 161, 122, 0.18);
}
.stage-aroma { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.stage-aroma::before {
  content: ""; position: absolute; inset: -10%; background: radial-gradient(45% 40% at 52% 48%, var(--tint, #9fb6d8), transparent 70%);
  opacity: 0.28; transition: background 0.8s;
}
.stage-aroma i {
  position: absolute; bottom: -20px; width: 12px; height: 12px; border-radius: 50%; background: var(--pc, #cfe0f2);
  animation: aromaUp var(--t, 8s) linear var(--dl, 0s) infinite; scale: var(--s, 1); opacity: 0;
}
.stage-aroma i.n-naranja { background: radial-gradient(circle at 40% 35%, #ffc27a, #f08a2c); }
.stage-aroma i.n-whisky { background: #d9883a; border-radius: 50% 50% 50% 0; rotate: 45deg; }
.stage-aroma i.n-coco { background: #f6efe2; border-radius: 4px; width: 14px; height: 8px; }
.stage-aroma i.n-cafe { background: #6b4127; width: 11px; height: 15px; border-radius: 50%; box-shadow: inset 2px 0 0 #3b2416; }
.stage-aroma i.n-pachuli { background: #7d8a52; width: 16px; height: 7px; border-radius: 100% 0; }
.stage-aroma i.n-ninguno { background: transparent; border: 1.5px solid rgba(207, 224, 242, 0.6); width: 16px; height: 16px; }
@keyframes aromaUp {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.85; }
  50% { transform: translate(18px, -45vh); }
  85% { opacity: 0.6; }
  100% { transform: translate(-12px, -95vh); opacity: 0; }
}
.stage-soap { position: absolute; inset: 0; display: grid; place-items: center; padding: 6% 4% 16%; }
@media (max-width: 959px) {
  /* en celular el jabón queda fijo arriba mientras se eligen las opciones */
  .studio-stage { position: sticky; top: calc(var(--nav-h) - 6px); z-index: 3; aspect-ratio: auto; height: min(62vw, 36vh); min-height: 190px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8); }
  .studio-stage .stage-soap { display: block; padding: 0; }
  .studio-stage .stage-soap svg, .studio-stage .stage-soap img { position: absolute; left: 50%; top: 46px; height: calc(100% - 52px); width: auto; max-width: 96%; transform: translateX(-50%); }
  .stage-soap svg.unmold { animation: none; }
  .studio-stage .stage-caption { top: 10px; bottom: auto; left: 16px; display: block; }
  .studio-stage .stage-caption span { display: block; margin-top: 2px; }
  .stage-caption strong { font-size: 1rem; }
  .stage-caption span { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.stage-soap svg, .stage-soap img { width: 100%; height: auto; overflow: visible; }
.stage-soap svg.unmold { animation: unmold 1s var(--ease-out); }
@keyframes unmold { 30% { transform: translateY(-22px) scale(1.04); } 60% { transform: translateY(4px) scale(0.99); } }
.stage-soap .scent { stroke-dasharray: 160; stroke-dashoffset: 160; opacity: 0; animation: scent 3.6s ease-in-out var(--dl, 0s) infinite; }
@keyframes scent { 0% { stroke-dashoffset: 160; opacity: 0; transform: translateY(20px); } 40% { opacity: 0.7; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-30px); } }
.stage-soap .deco { transform-box: fill-box; transform-origin: 50% 50%; }
.stage-soap .deco.pop { animation: popIn 0.7s var(--ease-bounce, cubic-bezier(0.34, 1.56, 0.64, 1)); }
@keyframes popIn { from { transform: scale(0.2) translateY(-40px); opacity: 0; } }
.stage-soap .spark { transform-box: fill-box; transform-origin: 50% 50%; animation: spark 2.2s ease-in-out var(--dl, 0s) infinite; }
@keyframes spark { 0%, 100% { transform: scale(0.2); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.stage-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage-bubbles i {
  position: absolute; bottom: 18%; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85) 0 8%, rgba(255, 255, 255, 0.08) 22%, rgba(159, 194, 234, 0.15) 70%, rgba(255, 255, 255, 0.5) 100%);
  animation: bubble var(--t, 3s) ease-out var(--dl, 0s) forwards; opacity: 0;
}
@keyframes bubble { 0% { transform: translateY(0) scale(0.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-70vh) scale(1.1); opacity: 0; } }
.stage-caption { position: absolute; left: 22px; right: 22px; bottom: 18px; display: grid; gap: 0.2rem; }
.stage-caption strong { font: 800 clamp(1.2rem, 2.4vw, 1.6rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.stage-caption span { font: italic 400 1.05rem/1.3 var(--serif); color: var(--gold-2); }

/* panel de pasos */
.studio-panel { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(12, 35, 72, 0.55); }
.studio-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 1.6rem; }
.studio-steps button { width: 100%; display: grid; justify-items: center; gap: 0.45rem; color: var(--muted); transition: color 0.3s; }
.studio-steps b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  font: 700 0.8rem/1 var(--display); transition: background 0.35s var(--ease-out), color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.studio-steps span { display: none; font: 600 0.6rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.studio-steps button.done b { background: rgba(206, 161, 122, 0.2); border-color: var(--gold); color: var(--gold-2); }
.studio-steps button.on { color: var(--ink); }
.studio-steps button.on b { background: var(--gold); border-color: var(--gold); color: var(--bg); transform: scale(1.1); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.studio-panel.is-stepped .step:not(.is-current) { display: none; }
.studio-panel.is-stepped .step.is-current { animation: stepIn 0.5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.step legend { font: 800 clamp(1.3rem, 2.6vw, 1.7rem)/1.15 var(--display); text-transform: uppercase; margin-bottom: 1.2rem; padding: 0; }
.step legend small { font: italic 400 1rem/1 var(--serif); text-transform: none; color: var(--muted); }
.studio-panel:not(.is-stepped) .step { margin-bottom: 2rem; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input, .swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-card {
  position: relative; display: grid; gap: 0.3rem; height: 100%; padding: 1rem 1.1rem; border-radius: 16px;
  border: 1px solid var(--line-soft); background: rgba(8, 22, 53, 0.5); transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.opt-card b { font: 700 0.98rem/1.25 var(--display); }
.opt-card small { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.opt:hover .opt-card { border-color: var(--line); transform: translateY(-2px); }
.opt input:checked + .opt-card { border-color: var(--gold); background: rgba(206, 161, 122, 0.12); }
.opt input:checked + .opt-card::after {
  content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--bg); font: 700 0.75rem/1 var(--sans);
}
.opt input:focus-visible + .opt-card, .swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--gold); outline-offset: 3px; }
.opt.is-soon { cursor: not-allowed; }
.opt.is-soon .opt-card { opacity: 0.45; }
.opt.is-soon:hover .opt-card { transform: none; border-color: var(--line-soft); }
.opt-card em { justify-self: center; padding: 0.2rem 0.55rem; border-radius: 99px; border: 1px solid var(--line); font: 600 0.6rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-style: normal; color: var(--gold-2); }
.opt-shape { justify-items: center; text-align: center; padding: 1rem 0.6rem; }
.opt-shape svg { width: 56px; height: 38px; fill: var(--gold); opacity: 0.85; }
.opts-4 { grid-template-columns: repeat(2, 1fr); }
.opts-aroma { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opts-aroma .opt-card { padding-right: 2.2rem; }
.opts-aroma .opt-card b { display: flex; align-items: center; }
.step-note { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.step-sub { margin: 1.4rem 0 0.8rem; font: 600 0.7rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 0.6rem; }
.swatch { display: grid; justify-items: center; gap: 0.5rem; cursor: pointer; text-align: center; }
.swatch-dot {
  width: 52px; height: 52px; border-radius: 50%; background: var(--c);
  box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.14), inset 6px 6px 0 rgba(255, 255, 255, 0.22), 0 0 0 2px transparent;
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s;
}
.swatch:hover .swatch-dot { transform: scale(1.08); }
.swatch input:checked + .swatch-dot { transform: scale(1.12); box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.14), inset 6px 6px 0 rgba(255, 255, 255, 0.22), 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.swatch-name { font-size: 0.8rem; color: var(--muted); }
.swatch input:checked ~ .swatch-name { color: var(--ink); font-weight: 600; }
.swatches-sm .swatch-dot { width: 36px; height: 36px; }
.step-sub-first { margin-top: 0; }
.layer-count { display: inline-grid; grid-template-columns: repeat(4, 52px); gap: 8px; }
.layer-count label { cursor: pointer; }
.layer-count input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.layer-count span {
  display: grid; place-items: center; height: 52px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(8, 22, 53, 0.5);
  font: 800 1.2rem/1 var(--display); transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.layer-count label:hover span { border-color: var(--line); transform: translateY(-2px); }
.layer-count input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.layer-count input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.layers { display: grid; }
.layer-pick { animation: stepIn 0.45s var(--ease-out); }
.layer-pick .step-sub { display: flex; align-items: center; gap: 0.6rem; }
.layer-chip { width: 14px; height: 14px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 0 2px rgba(243, 238, 230, 0.15); }
/* test de aromas */
.aro-mode { margin-bottom: 1.4rem; }
.saved-aromas { margin: -0.4rem 0 1.4rem; }
.saved-list { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-chip { display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--line); background: rgba(8, 22, 53, 0.55); transition: border-color 0.3s, background 0.3s; }
.saved-chip:hover { border-color: var(--gold); }
.saved-chip.is-on { border-color: var(--gold); background: rgba(206, 161, 122, 0.16); }
.saved-chip button { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.4rem 0.5rem 0.8rem; font: italic 500 1rem/1 var(--serif); }
.saved-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.saved-chip i + i { margin-left: -0.55rem; box-shadow: 0 0 0 2px var(--bg); }
.saved-chip .saved-x { padding: 0.5rem 0.75rem 0.5rem 0.35rem; font: 400 1.1rem/1 var(--sans); color: var(--muted); }
.saved-chip .saved-x:hover { color: var(--ink); }
.quiz.nudge { animation: nudge 0.45s var(--ease-out); }
@keyframes nudge { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.quiz-q, .quiz-result { padding: 1.3rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(8, 22, 53, 0.55); animation: stepIn 0.45s var(--ease-out); }
.quiz-progress { display: grid; gap: 0.5rem; margin-bottom: 1rem; font: 600 0.66rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.quiz-progress i { display: block; height: 3px; border-radius: 3px; background: rgba(243, 238, 230, 0.12); position: relative; overflow: hidden; }
.quiz-progress i::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--gold); transition: width 0.5s var(--ease-out); }
.quiz-q h4, .quiz-result h4 { font: italic 500 clamp(1.4rem, 2.6vw, 1.8rem)/1.2 var(--serif); margin-bottom: 1.1rem; }
.quiz-result h4 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--gold-2); }
.quiz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz-opt {
  display: grid; justify-items: start; gap: 0.25rem; padding: 0.9rem; text-align: left; border-radius: 14px;
  border: 1px solid var(--line-soft); background: rgba(12, 35, 72, 0.6); transition: border-color 0.3s, transform 0.4s var(--ease-out), background 0.3s;
}
.quiz-opt:hover { border-color: var(--gold); transform: translateY(-3px); }
.quiz-opt.is-picked { border-color: var(--gold); background: rgba(206, 161, 122, 0.18); transform: scale(0.97); }
.quiz-swatch { width: 100%; height: 34px; border-radius: 9px; margin-bottom: 0.4rem; background: linear-gradient(135deg, var(--c), rgba(8, 22, 53, 0.4)); }
.quiz-opt b { font: 700 0.92rem/1.25 var(--display); }
.quiz-opt small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.quiz-q .studio-reset { margin-top: 1rem; }
.quiz-opts.is-shapes { grid-template-columns: repeat(3, 1fr); }
.quiz-opts.is-shapes .quiz-opt { justify-items: center; text-align: center; }
.quiz-shape { display: grid; place-items: center; width: 100%; height: 64px; margin-bottom: 0.4rem; }
.quiz-shape svg { width: 64px; height: 44px; fill: var(--gold); opacity: 0.9; transition: transform 0.5s var(--ease-out); }
.quiz-opt:hover .quiz-shape svg { transform: scale(1.12) rotate(-4deg); }
.why { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.why ul { display: grid; gap: 0.55rem; }
.why li { font-size: 0.88rem; line-height: 1.5; color: rgba(243, 238, 230, 0.85); }
.why a, .science a { color: var(--gold-2); border-bottom: 1px solid var(--line); }
.science { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 14px; border: 1px dashed var(--line); font-size: 0.85rem; color: var(--muted); }
.science summary { cursor: pointer; font: 600 0.68rem/1.4 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.science p { margin: 0.8rem 0 0.6rem; }
.science ul { display: grid; gap: 0.45rem; }
.science li { line-height: 1.45; }
.blend { display: grid; gap: 0.7rem; margin: 0.4rem 0 0.6rem; }
.blend li { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: 0.8rem; font-size: 0.92rem; }
.blend i { height: 8px; border-radius: 8px; background: rgba(243, 238, 230, 0.12); position: relative; overflow: hidden; }
.blend i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c); border-radius: 8px; animation: growBar 0.9s var(--ease-out); }
@keyframes growBar { from { width: 0; } }
.blend b { text-align: right; }
.aro-list .step-sub:first-child { margin-top: 0.2rem; }
.aro-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 0.5rem; vertical-align: 1px; box-shadow: 0 0 0 2px rgba(243, 238, 230, 0.12); }
.field { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.field small { font-size: 0.8rem; }
.field input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(8, 22, 53, 0.6);
  color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color 0.3s;
}
.field input:focus { outline: none; border-color: var(--gold); }
.recipe { display: grid; gap: 0.5rem; margin: 1.4rem 0 0.4rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px dashed var(--line); }
.recipe li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.recipe span { color: var(--muted); }
.recipe b { text-align: right; font-weight: 600; }
.final-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 1rem; }
.final-buy .qty { margin-top: 0; }
.final-buy .qty button { width: 40px; height: 40px; font-size: 1.2rem; }
.studio-reset { display: block; margin: 1rem auto 0; font: 600 0.7rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.studio-reset:hover { color: var(--gold-2); }
.step-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.step-nav .btn { min-height: 46px; }
.step-nav .btn:disabled { opacity: 0.35; pointer-events: none; }
.step-nav [data-next] { margin-left: auto; }
.studio-panel:not(.is-stepped) .step-nav, .studio-panel:not(.is-stepped) .studio-steps { display: none; }
.cart-thumb.is-custom { padding: 2px; }
.cart-thumb.is-custom svg { width: 100%; height: auto; }
.cart-detail { display: block; font-size: 0.78rem; line-height: 1.35; color: var(--muted); margin: 0.2rem 0; }

/* Rendimiento: lo que no se ve no se anima */
.is-off, .is-off *, .hero-world:not(.is-active) * { animation-play-state: paused !important; }

/* 9. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .swatches-sm { grid-template-columns: repeat(8, 1fr); }
  .studio-steps span { display: block; }
  .cart-label { display: inline; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .types-grid { grid-template-columns: 1fr 1fr; }
  .pager button span { display: inline; }
  .scroll-cue { display: inline-flex; }
  .info { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .cart-btn { margin-left: 0; }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .cards > .card { grid-column: span 2; }
  /* si la última fila queda con dos tarjetas, se centran */
  .cards > .card:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .panels { display: flex; height: 600px; }
  .panel { flex: 1 1 0; min-height: 0; height: 100%; }
  .panel.is-open { flex-grow: 2.6; }
  .panel .panel-line, .panel .panel-go { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
  .panel.is-open .panel-line, .panel.is-open .panel-go { opacity: 1; transform: none; transition-delay: 0.25s; }
  .panel:not(.is-open) .panel-name { font-size: 1.8rem; }
  .process-grid { grid-template-columns: 1fr 1.05fr; }
  .shop-head { display: flex; }
}
@media (min-width: 1280px) {
  .hero-products { display: block; position: absolute; z-index: -1; right: 4vw; bottom: 16vh; width: 40vw; max-width: 620px; height: 40vh; pointer-events: none; }
  .hero-product { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; transform: translateY(40px) scale(0.94); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); transition: opacity 1.2s var(--ease-soft), transform 1.6s var(--ease-out); }
  .hero-product.is-active { opacity: 1; transform: none; animation: float 7s ease-in-out 1.6s infinite; }
}
@media (min-width: 1280px) {
  .hero-inner { padding-top: calc(var(--nav-h) + 80px); }
}

/* 10. Movimiento reducido: solo lo intrusivo ------------------- */
@media (prefers-reduced-motion: reduce) {
  .stage-soap .scent { animation: none; opacity: 0.4; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
  .im-fx { display: none; }
  .ks-wave, .ks-drift { animation: none; }
}

/* interruptor "Con exfoliante" en las tarjetas y en la página de cada jabón */
.exf { display: flex; align-items: center; justify-content: center; gap: 0.55rem; margin: -0.3rem auto 1rem; font: 500 0.82rem/1.2 var(--sans); color: var(--muted); cursor: pointer; user-select: none; }
.exf input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 34px; height: 20px; margin: 0; border-radius: 99px; border: 1px solid var(--line); background: rgba(6, 16, 41, 0.55); cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.exf input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 0.25s var(--ease-out), background 0.25s; }
.exf input:checked { background: var(--gold); border-color: var(--gold); }
.exf input:checked::after { transform: translateX(14px); background: var(--bg); }
.exf input:checked + span { color: var(--ink); }
.exf input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mini .exf { margin: -0.4rem auto 0.8rem; font-size: 0.74rem; }
.im-buy-box .exf { justify-content: flex-start; margin: -0.4rem 0 1.1rem; }
.opt-extra { font-style: normal; font: 600 0.72rem/1 var(--sans); color: var(--gold); margin-left: 0.3rem; white-space: nowrap; }

/* tipo de exfoliante en "Crea tu jabón" */
.exf-types { margin-top: 1.1rem; }
.opts-exf { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.exf-dot { display: block; width: 26px; height: 12px; margin-bottom: 0.45rem; border-radius: 99px; background: radial-gradient(circle at 20% 50%, var(--c) 2px, transparent 2.5px) 0 0 / 7px 6px, radial-gradient(circle at 60% 30%, var(--c) 1.6px, transparent 2px) 0 0 / 5px 6px; }

/* proceso de la versión tradicional: en caliente o en frío */
.mswitch { width: 100%; max-width: 300px; margin: -0.5rem auto 1rem; text-align: center; }
.mswitch[hidden] { display: none; }
.mswitch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mswitch-btns button { padding: 0.45rem 0.3rem; border-radius: 10px; border: 1px solid var(--line-soft); font: 600 0.72rem/1.1 var(--sans); color: var(--muted); background: rgba(6, 16, 41, 0.4); transition: border-color 0.3s, color 0.3s, background 0.3s; }
.mswitch-btns button i { font-style: normal; color: var(--gold); font-weight: 600; }
.mswitch-btns button:hover { color: var(--ink); }
.mswitch-btns button[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); background: rgba(206, 161, 122, 0.12); }
.mswitch-note { margin: 0.5rem 0 0; font-size: 0.76rem; line-height: 1.4; color: var(--muted); }
.mini .mswitch { margin: -0.4rem 0 0.8rem; }
.mini .mswitch-btns button { font-size: 0.66rem; padding: 0.4rem 0.15rem; }
.mini .mswitch-note { display: none; }
.glass .mswitch, .im-buy-box .mswitch { max-width: none; margin: -0.6rem 0 1.3rem; text-align: left; }
.glass > .mswitch:first-child { margin-top: 0; }
@media (min-width: 960px) { .types-grid.types-3 { grid-template-columns: repeat(3, 1fr); } }

/* mensajes del formulario de pedido */
.field-msg { display: block; min-height: 0; font-size: 0.74rem; color: #f0a08c; }
.field-msg:empty { display: none; }
.form-error { margin: 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(226, 114, 91, 0.12); border: 1px solid rgba(226, 114, 91, 0.4); font-size: 0.82rem; color: #f3c3b6; }
.form-error[hidden] { display: none; }
.captcha { display: flex; justify-content: center; min-height: 78px; }
.captcha[hidden] { display: none; }
