/* =====================================================================
   ETERRA · Sitio Web · Rediseño editorial premium · v3
   Animaciones reveal, scroll progress, marquee, WhatsApp float,
   parallax sutil, optimizaciones de performance.
   v3: intro curtain, film grain, headline clip-wipe, image unveil,
       botón flotante magnético.
   ===================================================================== */

:root {
  --deep:        #0e2a21;
  --deep-2:      #0a1e18;
  --moss:        #3f5642;
  --sage:        #aab89e;
  --sage-soft:   #dde3d4;
  --ivory:       #fbf6ec;
  --paper:       #f4ede0;
  --stone:       #e1d8c5;
  --bone:        #e9ddc9;
  --ink:         #181815;
  --muted:       #6e655a;
  --muted-2:     #8c8576;
  --copper:      #b9844a;
  --copper-soft: #d9b182;
  --whatsapp:    #25d366;
  --line:        rgba(24, 24, 21, 0.14);
  --line-light:  rgba(251, 246, 236, 0.22);
  --max:         1240px;
  --max-tight:   1080px;
  --radius:      4px;
  --header-h:    74px;
  --promo-h:     38px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sin mensajes en PROMOS.anuncios la barra se oculta y el header
   vuelve a apoyarse en el borde superior (lo marca store.js). */
.sin-promo { --promo-h: 0px; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", -apple-system, Arial, sans-serif;
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

main { max-width: 100vw; overflow-x: hidden; }

section, .band, .shell, .editorial, .editorial-main, .editorial-side,
.feature-grid, .family-block, .family-pair, .ritual-grid, .contact-grid,
.block-head, .block-head-wide { max-width: 100%; min-width: 0; }

.display, .display-s, p, h1, h2, h3, h4 { max-width: 100%; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

button { appearance: none; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -40px; left: 8px;
  padding: 8px 12px; background: var(--ink); color: var(--ivory);
  z-index: 100; border-radius: var(--radius);
  transition: top 200ms ease;
}
.skip-link:focus { top: 8px; }

::selection { background: var(--copper); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Display typography ---------- */

.display, .display-s {
  margin: 0;
  font-family: "Cormorant Garamond", "Bodoni 72", Didot, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--deep);
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "ss01" 1, "onum" 1;
}

.display {
  font-size: clamp(1.85rem, 4.4vw, 3.7rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  hyphens: auto;
}
.display-s {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.14;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}

p { overflow-wrap: anywhere; word-break: normal; white-space: normal; }

.display-light, .lede-light, .eyebrow-light { color: var(--ivory); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--copper-soft); }

.lede {
  margin: 22px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.7;
}
.lede-light { color: rgba(251, 246, 236, 0.82); }

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  background: rgba(255, 255, 255, 0);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--copper-soft), var(--copper));
  transform-origin: left center;
  transition: width 80ms linear;
}

/* ---------- Header ---------- */

/* Barra de anuncios + header viajan juntos en un contenedor fijo */
.topbar { position: fixed; inset: 0 0 auto; z-index: 60; }

.promo-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  height: var(--promo-h);
  padding: 0 16px;
  background: var(--copper);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.promo-bar[hidden] { display: none; }
.promo-mark { opacity: 0.7; }
.promo-text {
  transition: opacity 260ms ease, transform 260ms ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-text.is-out { opacity: 0; transform: translateY(-6px); }
.promo-link {
  flex: 0 0 auto;
  padding: 3px 12px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 200ms ease, border-color 200ms ease;
}
.promo-link:hover { background: rgba(255,255,255,0.16); border-color: #fff; }

.site-header {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 44px);
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  background: var(--deep-2);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.site-header.scrolled {
  color: var(--deep);
  background: rgba(251, 246, 236, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 38px rgba(10,30,24,0.08);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0.32em;
  font-size: 0.95rem;
  transition: opacity 200ms ease;
}
.brand-link:hover { opacity: 0.85; }
.brand-word { font-weight: 500; }

.brand-mark {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 400ms var(--ease-out);
}
.brand-link:hover .brand-mark { transform: rotate(-4deg); }

.site-nav {
  display: flex; align-items: center; gap: 28px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 200ms ease;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 280ms var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1); transform-origin: left;
}
.site-nav a.is-active { color: var(--copper); }
.site-header.scrolled .site-nav a.is-active { color: var(--copper); }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--copper);
  color: var(--ivory);
  border-color: var(--copper);
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px; padding: 10px;
  color: inherit; background: transparent;
  border: 1px solid currentColor; border-radius: var(--radius);
  transition: transform 200ms ease;
}
.menu-toggle:hover { transform: scale(1.04); }
.menu-toggle span:not(.sr-only) {
  display: block; height: 1px; margin: 5px 0; background: currentColor;
  transition: transform 280ms var(--ease-out), opacity 200ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Bands ---------- */

.band {
  padding: clamp(80px, 11vh, 140px) 0;
  scroll-margin-top: calc(var(--promo-h) + 80px);
}

/* Destinos de los QR de las etiquetas (/p/<producto>): el header es fijo,
   sin este margen el producto queda tapado al llegar desde el código. */
[id^="p-"] { scroll-margin-top: calc(var(--promo-h) + 96px); }
.band-paper { background: var(--ivory); }
.band-dark {
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(82,101,75,0.18), transparent 60%),
    var(--deep);
  color: var(--ivory);
}
.band-bleed { padding: clamp(80px, 11vh, 140px) 0; }

.shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}
.shell-tight { max-width: var(--max-tight); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--promo-h) + var(--header-h));
  background: var(--deep-2);
  overflow: hidden;
}
.hero-figure {
  margin: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-figure img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--promo-h) - var(--header-h));
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
  will-change: transform;
  transform: translateZ(0);
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 28px 24px 32px;
  color: rgba(251, 246, 236, 0.78);
  background: var(--deep-2);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease;
}
.hero-foot:hover { color: var(--ivory); background: var(--deep); }
.hero-foot-eyebrow { color: var(--copper-soft); }
.hero-foot-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(251, 246, 236, 0.32);
  border-radius: 50%;
  font-size: 0.9rem;
  letter-spacing: 0;
  animation: hero-arrow 2.4s var(--ease-out) infinite;
  transition: border-color 240ms ease;
}
.hero-foot:hover .hero-foot-arrow { border-color: var(--copper-soft); }

@keyframes hero-arrow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--deep-2);
  padding: 14px 0;
  border-bottom: 1px solid rgba(251, 246, 236, 0.08);
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  white-space: nowrap;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: var(--copper-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex: 0 0 auto;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal][data-reveal-scale] {
  transform: translateY(36px) scale(0.985);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Philosophy ---------- */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.editorial > * { min-width: 0; }
.editorial-side { position: sticky; top: 110px; min-width: 0; }
.editorial-main { min-width: 0; }
.editorial-main p { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; line-height: 1.78; max-width: 58ch; }
.editorial-main p:last-child { margin-bottom: 0; }
.editorial-main .lede { margin-top: 0; color: var(--ink); font-size: 1.18rem; line-height: 1.6; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(54px, 7vw, 84px);
  background: var(--line);
  border: 1px solid var(--line);
}
.pillars article {
  padding: clamp(28px, 3vw, 38px);
  background: var(--ivory);
  transition: background 320ms ease;
}
.pillars article:hover { background: var(--paper); }
.pillar-num {
  margin: 0 0 22px;
  color: var(--copper);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}
.pillars h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--deep);
}
.pillars p { margin: 0; color: var(--muted); line-height: 1.65; }

/* ---------- Collection ---------- */

.block-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.block-head .display { margin-bottom: 18px; }
.block-head .block-sub { margin: 0 auto; max-width: 56ch; color: var(--muted); line-height: 1.7; }

.block-head-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: none;
  text-align: left;
  align-items: end;
}
.block-head-wide .block-sub { margin: 0; }

.bleed-figure {
  margin: clamp(40px, 5vw, 60px) 0 clamp(48px, 5vw, 68px);
  width: 100%;
  background: var(--paper);
  overflow: hidden;
}
.bleed-figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1200ms var(--ease-out);
}
.bleed-figure:hover img { transform: scale(1.015); }

.family-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.family-list li {
  display: grid;
  gap: 10px;
  padding: 26px 22px 28px;
  background: var(--ivory);
  transition: background 320ms ease, transform 320ms var(--ease-out);
  cursor: default;
}
.family-list li:hover {
  background: var(--paper);
  transform: translateY(-3px);
}
.family-list span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: var(--copper);
}
.family-list strong {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--deep);
}
.family-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Feature (Desodorante) ---------- */

.feature {
  background:
    radial-gradient(120% 90% at 12% 10%, rgba(82,101,75,0.28), transparent 55%),
    var(--deep);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.feature-grid > * { min-width: 0; }
.family-block > *,
.family-pair > *,
.ritual-grid > *,
.contact-grid > *,
.block-head-wide > * { min-width: 0; }

.feature-image {
  margin: 0;
  background: transparent;
  overflow: hidden;
}
.feature-image img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: transform 1200ms var(--ease-out);
}
.feature:hover .feature-image img { transform: scale(1.01); }

.feature-copy { color: var(--ivory); }

.spec-list {
  margin: 36px 0 0;
  display: grid;
  gap: 22px;
  border-top: 1px solid rgba(251, 246, 236, 0.16);
  padding-top: 28px;
}
.spec-list div { display: grid; gap: 6px; }
.spec-list dt {
  color: var(--copper-soft);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.spec-list dd {
  margin: 0;
  color: rgba(251, 246, 236, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- CTAs ---------- */

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 280ms ease, color 280ms ease, transform 280ms var(--ease-out), border-color 280ms ease;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  z-index: -1;
  transform: translateY(100%);
  transition: opacity 280ms ease, transform 280ms var(--ease-out);
}
.cta-light {
  color: var(--deep);
  background: var(--ivory);
  border-color: var(--ivory);
}
.cta-light:hover {
  transform: translateY(-2px);
  background: var(--copper);
  color: var(--ivory);
  border-color: var(--copper);
}
.cta-dark {
  color: var(--ivory);
  background: var(--deep);
  border-color: var(--deep);
}
.cta-dark:hover {
  background: var(--moss);
  border-color: var(--moss);
  transform: translateY(-2px);
}
.cta svg { flex: 0 0 auto; }

.cta-with-icon {
  gap: 12px;
  padding-left: 22px;
}
.cta-with-icon .cta-icon {
  width: 18px; height: 18px;
  margin-right: 2px;
  flex: 0 0 auto;
}
.cta-with-icon span { letter-spacing: 0.22em; }

/* ---------- Family blocks ---------- */

.family-block {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.family-block:first-of-type { border-top: 0; padding-top: clamp(8px, 2vw, 20px); }
.family-block.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.family-block.reverse .family-figure { order: 2; }
.family-block.reverse .family-text { order: 1; }

.family-figure { margin: 0; overflow: hidden; }
.family-figure img {
  width: 100%; height: auto; display: block;
  background: var(--paper);
  transition: transform 1200ms var(--ease-out);
}
.family-figure:hover img { transform: scale(1.015); }

.family-text { max-width: 46ch; }
.family-text p {
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.chip-row {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip-row li {
  padding: 8px 14px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--deep);
  border: 1px solid rgba(24, 24, 21, 0.18);
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.5);
  transition: background 240ms ease, transform 240ms var(--ease-out), border-color 240ms ease;
  cursor: default;
}
.chip-row li:hover {
  background: var(--copper);
  color: var(--ivory);
  border-color: var(--copper);
  transform: translateY(-1px);
}

/* Chips que eligen variante: el <li> es solo contenedor del botón */
.chip-row li.chip-pick {
  padding: 0; border: 0; background: transparent;
}
.chip-row li.chip-pick:hover { background: transparent; transform: none; }
.chip-btn {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--deep);
  background: rgba(251, 246, 236, 0.5);
  border: 1px solid rgba(24, 24, 21, 0.18);
  border-radius: 999px;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms var(--ease-out);
}
.chip-btn:hover {
  background: var(--copper);
  color: var(--ivory);
  border-color: var(--copper);
  transform: translateY(-1px);
}
.chip-btn.is-active {
  background: var(--deep);
  color: var(--ivory);
  border-color: var(--deep);
}
.chip-btn .chip-size {
  font-size: 0.72rem;
  opacity: 0.72;
  letter-spacing: 0.06em;
}

/* Fundido al cambiar la foto según la variante elegida */
.family-figure img, .feature-image img {
  transition: opacity 260ms ease, transform 1200ms var(--ease-out);
}
img.is-swapping { opacity: 0.2; }

/* Marco de alto fijo en los productos con variantes: las fotos alternan
   formato (vertical y cuadrada) y sin esto la página saltaría al cambiar. */
[data-figure] {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
[data-figure] img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}

.family-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.family-card { display: grid; gap: 22px; }
.family-card .family-figure { background: var(--paper); }
.family-card-text p { margin: 12px 0 0; color: var(--muted); line-height: 1.68; }

/* ---------- Ingredients ---------- */

.ingredients-figure { margin-top: clamp(40px, 5vw, 60px); }
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 56px);
  background: var(--line);
  border: 1px solid var(--line);
}
.ingredient-grid article {
  padding: 26px 24px;
  background: var(--ivory);
  transition: background 320ms ease;
}
.ingredient-grid article:hover { background: var(--paper); }
.ingredient-grid h4 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--deep);
}
.ingredient-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Ritual ---------- */

.ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.ritual-image { margin: 0; overflow: hidden; }
.ritual-image img {
  width: 100%; height: auto; display: block;
  transition: transform 1400ms var(--ease-out);
}
.ritual-image:hover img { transform: scale(1.015); }
.ritual-copy { max-width: 46ch; }
.ritual-copy .lede { margin-top: 20px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.contact-copy { max-width: 46ch; }
.contact-copy p { margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.contact-copy .cta { margin-top: 28px; }
.contact-note {
  margin-top: 24px !important;
  font-size: 0.88rem;
  color: var(--muted-2) !important;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  transition: box-shadow 320ms ease, border-color 320ms ease;
}
.contact-form:focus-within {
  border-color: var(--copper);
  box-shadow: 0 24px 60px rgba(10,30,24,0.08);
}
.contact-form label {
  display: grid; gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  outline: 0;
  transition: border-color 220ms ease, background 220ms ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--copper);
  background: #fff;
}
.contact-form .cta { margin-top: 8px; }

.form-output {
  display: block;
  min-height: 56px;
  margin-top: 4px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  background: var(--ivory);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  white-space: pre-wrap;
  transition: border-color 240ms ease, color 240ms ease;
}
.form-output.is-ready {
  color: var(--deep);
  border-style: solid;
  border-color: var(--copper);
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px) clamp(28px, 4vw, 56px);
  color: var(--ivory);
  background: var(--deep-2);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Cormorant Garamond", serif;
}
.footer-brand strong {
  letter-spacing: 0.32em;
  font-weight: 500;
  font-size: 1rem;
}
.footer-brand span {
  margin-left: 8px;
  color: rgba(251, 246, 236, 0.66);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}
.footer-line {
  margin: 0;
  color: rgba(251, 246, 236, 0.74);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-style: italic;
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 65;
  display: inline-flex; align-items: center; justify-content: center;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out);
}
.whatsapp-float:not([hidden]) { display: inline-flex; }
.whatsapp-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* While following the cursor, transform reacts faster (magnetism) */
.whatsapp-float.is-magnetic {
  transition: transform 240ms var(--ease-out);
}

.whatsapp-float-inner {
  position: relative;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px;
  color: var(--ivory);
  background: var(--whatsapp);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 14px 36px rgba(10, 30, 24, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    background 240ms ease,
    box-shadow 280ms ease,
    transform 280ms var(--ease-out);
  white-space: nowrap;
}
.whatsapp-float-inner svg {
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
}
.whatsapp-float-label {
  display: inline-block;
  line-height: 1;
}

.whatsapp-float:hover .whatsapp-float-inner {
  background: #1ebe5b;
  box-shadow:
    0 22px 48px rgba(10, 30, 24, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.whatsapp-float:focus-visible .whatsapp-float-inner {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

/* Pulse ring (only on first appearance + reduced via prefers-reduced-motion) */
.whatsapp-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--whatsapp);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.whatsapp-float.is-visible .whatsapp-float-pulse {
  animation: wa-pulse 2.6s var(--ease-out) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* =====================================================================
   v3 · Intro curtain · Film grain · Headline & image reveals
   ===================================================================== */

/* ---------- Intro curtain ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(82, 101, 75, 0.22), transparent 60%),
    var(--deep-2);
  will-change: transform;
  /* No-JS / fail-safe: the curtain lifts on its own even if JS never runs */
  animation: intro-autohide 850ms var(--ease-out) 2500ms forwards;
}
.intro-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}
.intro-mark {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: var(--ivory);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: intro-draw 1000ms var(--ease-out) forwards;
}
.intro-mark path:nth-child(1) { animation-delay: 60ms; }
.intro-mark path:nth-child(2) { animation-delay: 180ms; }
.intro-mark path:nth-child(3) { animation-delay: 300ms; }
.intro-mark path:nth-child(4) { animation-delay: 440ms; }
.intro-mark path:nth-child(5) { animation-delay: 560ms; }
.intro-word {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(8px);
  animation: intro-word 760ms var(--ease-out) 840ms forwards;
}
.intro.intro-done {
  transform: translateY(-100%);
  transition: transform 920ms var(--ease-out);
  pointer-events: none;
}
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-word { to { opacity: 0.92; transform: translateY(0); } }
@keyframes intro-autohide {
  to { transform: translateY(-100%); visibility: hidden; pointer-events: none; }
}
html.intro-seen .intro { display: none !important; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- Headline clip-wipe reveal ---------- */
[data-reveal][data-reveal-text] {
  opacity: 1;
  transform: translateY(16px);
  /* -4% top/bottom keeps accents & descenders from being shaved */
  clip-path: inset(-4% 0 102% 0);
  transition:
    clip-path 1100ms var(--ease-out),
    transform 1100ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: clip-path, transform;
}
[data-reveal][data-reveal-text].is-in {
  clip-path: inset(-4% 0 -4% 0);
  transform: translateY(0);
}

/* ---------- Directional image unveil ---------- */
[data-reveal][data-reveal-img] {
  opacity: 1;
  transform: none;
}
[data-reveal][data-reveal-img] img {
  clip-path: inset(0 100% 0 0);
  /* transform kept in the transition so the figure hover-zoom stays smooth */
  transition:
    clip-path 1200ms var(--ease-out),
    transform 1200ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: clip-path;
}
[data-reveal][data-reveal-img].is-in img {
  clip-path: inset(0 0 0 0);
}

/* ==================================================================
   Tienda · carrito + checkout
   ================================================================== */

/* Asegura que el atributo hidden gane sobre display de las clases */
.cart-drawer[hidden],
.cart-backdrop[hidden],
.cart-count[hidden],
.cart-view[hidden],
.field[hidden] { display: none !important; }

/* ---------- Header: botón de carrito ---------- */
.header-right { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }

.cart-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  color: inherit; background: transparent;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease;
}
.cart-toggle:hover { transform: translateY(-1px); border-color: currentColor; }
.cart-toggle:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.cart-icon { display: block; }
.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif; font-size: 0.66rem; font-weight: 600; line-height: 1;
  color: var(--ivory); background: var(--copper);
  border-radius: 999px;
}

/* ---------- Controles de compra ---------- */
.buy {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 18px;
}
.buy-price { margin: 0; display: inline-flex; align-items: baseline; gap: 10px; }
.buy-amount {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem; font-weight: 600; line-height: 1;
  color: var(--deep); font-variant-numeric: tabular-nums;
}
.buy-size { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.buy-light .buy-amount { color: var(--ivory); }
.buy-light .buy-size { color: var(--sage); }

.buy-variant { display: inline-flex; }
.buy-variant select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 0.84rem; color: var(--deep);
  background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 36px 11px 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%233f5642' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color 200ms ease;
}
.buy-variant select:hover { border-color: var(--moss); }
.buy-variant select:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

.cta-buy { margin-top: 0; letter-spacing: 0.1em; padding: 13px 22px; font-size: 0.72rem; }
.cta-buy.is-added { background: var(--moss); border-color: var(--moss); color: var(--ivory); }
.buy-compact { margin-top: 18px; gap: 12px 14px; }
.buy-compact .buy-amount { font-size: 1.42rem; }

.cta:disabled, .cta[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Drawer ---------- */
.cart-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 30, 24, 0.42);
  opacity: 0; transition: opacity 360ms var(--ease-out);
}
.cart-backdrop.is-open { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 130;
  width: min(420px, 92vw);
  display: flex; flex-direction: column;
  background: var(--ivory); color: var(--deep);
  box-shadow: -30px 0 80px rgba(10, 30, 24, 0.22);
  transform: translateX(100%);
  transition: transform 420ms var(--ease-out);
  will-change: transform;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.cart-title { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 600; }
.cart-close {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--deep); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.cart-close:hover { background: var(--deep); color: var(--ivory); }

.cart-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.cart-scroll { flex: 1 1 auto; overflow-y: auto; padding: 8px 24px 16px; -webkit-overflow-scrolling: touch; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "main remove" "qty price";
  gap: 10px 12px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.cart-line-main { grid-area: main; }
.cart-line-name { margin: 0; font-weight: 600; font-size: 0.95rem; }
.cart-line-meta { margin: 3px 0 0; font-size: 0.8rem; color: var(--muted); }
.cart-line-qty {
  grid-area: qty; width: max-content;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.cart-line-qty button {
  width: 32px; height: 32px; font-size: 1.05rem; line-height: 1;
  color: var(--deep); background: transparent; border: 0; cursor: pointer;
  transition: background 160ms ease;
}
.cart-line-qty button:hover { background: var(--paper); }
.cart-line-qty span { min-width: 30px; text-align: center; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.cart-line-price { grid-area: price; justify-self: end; font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.cart-line-remove {
  grid-area: remove; justify-self: end;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  transition: color 160ms ease;
}
.cart-line-remove:hover { color: var(--deep); }

.cart-empty { padding: 48px 24px; text-align: center; color: var(--muted); line-height: 1.6; }

.cart-foot {
  flex: 0 0 auto;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--paper);
}
.cart-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cart-row span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cart-row strong { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-note { margin: 4px 0 14px; font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.cta-block { display: flex; width: 100%; margin-top: 0; letter-spacing: 0.1em; }

/* ---------- Checkout ---------- */
.checkout-back {
  flex: 0 0 auto; align-self: flex-start;
  margin: 14px 24px 2px; padding: 4px 0;
  font: inherit; font-size: 0.8rem; color: var(--muted);
  background: transparent; border: 0; cursor: pointer;
}
.checkout-back:hover { color: var(--deep); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.92rem; color: var(--deep);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.field textarea { resize: vertical; }

.opt-group { border: 0; padding: 0; margin: 0 0 16px; }
.opt-group legend { padding: 0; margin-bottom: 8px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 0.92rem; cursor: pointer; }
.opt input { accent-color: var(--moss); width: 17px; height: 17px; flex: 0 0 auto; }
.pago-hint { margin: -6px 0 16px; min-height: 1.2em; font-size: 0.8rem; color: var(--moss); line-height: 1.5; }

.cta-wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.cta-wa:hover { background: #1ebe5d; border-color: #1ebe5d; transform: translateY(-2px); }

.cta-mp { background: #009ee3; border-color: #009ee3; color: #fff; }
.cta-mp:hover { background: #008fcc; border-color: #008fcc; transform: translateY(-2px); }
.cta-mp:disabled { opacity: 0.6; }
.mp-block { margin-bottom: 12px; }
.mp-block .cart-note { margin: 8px 0 0; }

@media (max-width: 640px) {
  .cart-drawer { width: 100%; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .editorial { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .editorial-side { position: static; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .ingredient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .site-header { padding: 0 18px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; top: calc(var(--promo-h) + 64px); left: 12px; right: 12px;
    display: grid; gap: 0; padding: 8px;
    color: var(--deep);
    background: var(--ivory);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(10,30,24,0.18);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
  }
  .site-nav.open a { opacity: 1; transform: translateX(0); }
  .site-nav.open a:nth-child(1) { transition-delay: 60ms; }
  .site-nav.open a:nth-child(2) { transition-delay: 100ms; }
  .site-nav.open a:nth-child(3) { transition-delay: 140ms; }
  .site-nav.open a:nth-child(4) { transition-delay: 180ms; }
  .site-nav.open a:nth-child(5) { transition-delay: 220ms; }
  .site-nav.open a:nth-child(6) { transition-delay: 260ms; }
  .site-nav.open a:nth-child(7) { transition-delay: 300ms; }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-cta { border: 0; padding: 14px 12px; }

  .feature-grid,
  .ritual-grid,
  .contact-grid,
  .family-block,
  .family-block.reverse,
  .family-pair,
  .block-head-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .family-block.reverse .family-figure { order: 0; }
  .family-block.reverse .family-text { order: 0; }
  .hero-figure img { max-height: calc(80vh - 64px); }
}

@media (max-width: 640px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }
  .band { padding: 68px 0; }
  .hero-foot {
    flex-direction: column; gap: 10px;
    padding: 22px 20px 26px;
    font-size: 0.72rem;
  }
  .marquee-track { font-size: 0.92rem; gap: 18px; }
  .family-list { grid-template-columns: minmax(0, 1fr); }
  .ingredient-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-brand { flex-wrap: wrap; }
  .pillars article { padding: 26px 22px; }
  .whatsapp-float {
    bottom: 16px; right: 16px;
  }
  .whatsapp-float-inner {
    padding: 13px;
    gap: 0;
  }
  .whatsapp-float-label { display: none; }
  .chip-btn { font-size: 0.78rem; padding: 7px 12px; }
  .chip-btn .chip-size { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal][data-reveal-text] { clip-path: none !important; transform: none !important; }
  [data-reveal][data-reveal-img] img { clip-path: none !important; }
  .marquee-track { animation: none; }
  .hero-foot-arrow { animation: none; }
  .whatsapp-float-pulse,
  .whatsapp-float.is-visible .whatsapp-float-pulse { animation: none; opacity: 0; }
  .intro { display: none !important; }
}

/* =====================================================================
   CAPA COMERCIAL · promociones, descuentos y kits
   Todo lo que se ve acá se alimenta de PROMOS y CATALOG en store.js.
   ===================================================================== */

/* ---------- Etiqueta de promo sobre la ficha ---------- */

.tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  color: var(--copper);
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag[hidden] { display: none; }
.tag.tag-off { background: var(--copper); color: #fff; }
.eyebrow-light .tag { border-color: var(--copper-soft); color: var(--copper-soft); }
.eyebrow-light .tag.tag-off { background: var(--copper-soft); color: var(--deep); }

/* ---------- Precio anterior y % de descuento ---------- */

.buy-was {
  font-size: 0.92rem;
  color: var(--muted-2);
  text-decoration: line-through;
}
.buy-was[hidden], .buy-off[hidden] { display: none; }
.buy-off {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.buy-light .buy-was { color: var(--sage); }

/* ---------- Sección de kits ---------- */

.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
  margin-top: clamp(36px, 4vw, 52px);
}
.kit-card {
  display: flex; flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.kit-card:hover { box-shadow: 0 22px 50px rgba(10,30,24,0.10); transform: translateY(-3px); }

.kit-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.kit-figure img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.kit-body {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 2.4vw, 30px);
  flex: 1;
}
.kit-body .eyebrow { margin: 0; }
.kit-note { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.94rem; }

.kit-list {
  list-style: none;
  margin: 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 9px;
}
.kit-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px;
  font-size: 0.88rem;
}
.kit-list li::before {
  content: "✦";
  margin-right: 8px;
  color: var(--copper);
  font-size: 0.7rem;
}
.kit-list strong { flex: 1; font-weight: 500; color: var(--deep); }
.kit-list span { flex: 0 0 auto; color: var(--muted-2); font-size: 0.8rem; }

.kit-card .buy { margin-top: auto; padding-top: 6px; }

/* ---------- Franja de beneficios ---------- */

.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.perks article { text-align: center; }
.perks h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.16rem;
  color: var(--deep);
}
.perks p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.perk-mark {
  display: block;
  margin: 0 auto 12px;
  width: 26px; height: 26px;
  fill: none; stroke: var(--copper);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Promos dentro del carrito ---------- */

.cart-row.is-promo strong { color: var(--copper); }
.cart-row.is-ahorro { color: var(--copper); font-weight: 600; }
.cart-row[hidden] { display: none; }

.cart-line-was {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 400;
}

.envio-bar { margin: 4px 0 14px; }
.envio-bar[hidden] { display: none; }
.envio-msg {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.envio-msg.is-done { color: var(--moss); font-weight: 600; }
.envio-track {
  height: 5px;
  border-radius: 999px;
  background: var(--stone);
  overflow: hidden;
}
.envio-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper-soft), var(--copper));
  transition: width 380ms var(--ease-out);
}

@media (max-width: 960px) {
  :root { --promo-h: 34px; }
  .kit-grid { grid-template-columns: minmax(0, 1fr); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-link { display: none; }
}

@media (max-width: 640px) {
  .promo-bar { font-size: 0.72rem; letter-spacing: 0.04em; }
  .perks { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* =====================================================================
   PÁGINA DE PRODUCTO (producto.html)
   La arma ficha.js; acá está solo la presentación.
   ===================================================================== */

.pagina-ficha main { padding-top: calc(var(--promo-h) + var(--header-h)); }
.ficha { padding: clamp(28px, 4vw, 48px) 0 clamp(60px, 7vw, 100px); }
.ficha-cargando { color: var(--muted); }

.ficha-vacia { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.ficha-vacia p { margin: 18px 0 28px; color: var(--muted); }

/* ---------- Migas ---------- */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: clamp(24px, 3vw, 38px);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.crumbs a { color: var(--muted); transition: color 200ms ease; }
.crumbs a:hover { color: var(--copper); }
.crumbs [aria-current] { color: var(--deep); }

/* ---------- Bloque superior: foto + compra ---------- */

.ficha-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.ficha-foto {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ficha-compra { display: flex; flex-direction: column; gap: 18px; }
.ficha-compra .eyebrow { margin: 0; }
.ficha-titulo { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.ficha-resumen { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.72; }

.buy-ficha { align-items: center; gap: 18px; flex-wrap: wrap; }
.buy-ficha .buy-amount { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.buy-variant-block { width: 100%; max-width: 320px; }

.ficha-perks {
  list-style: none;
  margin: 4px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}
.ficha-perks li { display: flex; align-items: baseline; gap: 10px; }
.ficha-perks li::before { content: "✦"; color: var(--copper); font-size: 0.7rem; }

/* ---------- Bloques de contenido ---------- */

.ficha-bloque {
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.ficha-bloque:last-child { border-bottom: 0; }
.ficha-bloque > h2 { margin-bottom: 22px; }
.ficha-bloque p { color: var(--muted); line-height: 1.75; max-width: 68ch; }

.ficha-lista {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; max-width: 76ch;
}
.ficha-lista li {
  display: flex; align-items: baseline; gap: 12px;
  color: var(--muted); line-height: 1.7;
}
.ficha-lista li::before { content: "✦"; flex: 0 0 auto; color: var(--copper); font-size: 0.72rem; }

.ficha-pasos {
  margin: 0; padding: 0 0 0 1.4em;
  display: grid; gap: 12px; max-width: 72ch;
  color: var(--muted); line-height: 1.7;
}
.ficha-pasos li::marker { color: var(--copper); font-family: "Cormorant Garamond", serif; font-size: 1.1em; }

/* ---------- Ingredientes ---------- */

/* Tarjetas sueltas y no una grilla con separadores: la cantidad de
   ingredientes cambia por producto y así nunca queda una celda vacía. */
.ing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.ing {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.ing h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500; font-size: 1.12rem; color: var(--deep);
}
.ing p { margin: 0; font-size: 0.9rem; line-height: 1.62; }

.ficha-inci {
  margin-top: 20px !important;
  font-size: 0.86rem !important;
  line-height: 1.66 !important;
  color: var(--muted-2) !important;
}
.ficha-inci strong { color: var(--muted); }

/* ---------- Tabla de características ---------- */

.ficha-datos {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 clamp(20px, 3vw, 48px);
  max-width: 900px;
}
.ficha-datos > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.ficha-datos dt {
  flex: 0 0 auto;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2);
}
.ficha-datos dd { margin: 0; text-align: right; color: var(--deep); font-size: 0.92rem; }

.ficha-aviso {
  padding: 18px 22px;
  border-left: 3px solid var(--copper);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem !important;
}

/* ---------- Qué trae el kit ---------- */

.kit-contenido { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 640px; }
.kit-contenido a {
  display: flex; align-items: center; gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 220ms ease, transform 220ms var(--ease-out);
}
.kit-contenido a:hover { border-color: var(--copper); transform: translateX(3px); }
.kit-item-foto {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
}
.kit-item-foto img { width: 100%; height: 100%; object-fit: contain; }
.kit-contenido strong { display: block; font-weight: 500; color: var(--deep); }
.kit-contenido em { font-style: normal; font-size: 0.84rem; color: var(--muted-2); }

/* ---------- Relacionados ---------- */

.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.rel-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.rel-card:hover { box-shadow: 0 18px 40px rgba(10,30,24,0.10); transform: translateY(-3px); }
.rel-foto { display: block; aspect-ratio: 1 / 1; background: var(--paper); }
.rel-foto img { width: 100%; height: 100%; object-fit: contain; }
.rel-body { display: block; padding: 16px 18px 18px; }
.rel-body strong { display: block; font-weight: 500; color: var(--deep); line-height: 1.4; }
.rel-precio {
  display: block; margin-top: 8px;
  font-family: "Cormorant Garamond", serif; font-size: 1.2rem; color: var(--deep);
}
.rel-precio s { margin-left: 8px; font-size: 0.8rem; color: var(--muted-2); font-family: "Inter", sans-serif; }

/* ---------- Enlace a la ficha desde la home ---------- */

.ver-ficha {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
}
.ver-ficha:hover { border-bottom-color: var(--copper); }
.ver-ficha::after { content: "→"; transition: transform 220ms var(--ease-out); }
.ver-ficha:hover::after { transform: translateX(3px); }
.buy-light + .ver-ficha, .feature-copy .ver-ficha { color: var(--copper-soft); }
.feature-copy .ver-ficha:hover { border-bottom-color: var(--copper-soft); }

@media (max-width: 860px) {
  .ficha-top { grid-template-columns: minmax(0, 1fr); }
  .ficha-datos dd { text-align: left; }
}

/* =====================================================================
   PROGRAMA DE REVENDEDORAS
   Sección que se llena con lo que publica el Sistema Madre. Si Eterra la
   apaga, store.js la oculta entera junto con el enlace del menú.
   ===================================================================== */
.rev-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.rev-copy p { max-width: 46ch; }
.rev-desde {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(217,177,130,.42);
  border-radius: 999px;
  font-size: .86rem;
  color: var(--copper-soft);
}
.rev-puntos {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rev-puntos li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  line-height: 1.5;
}
.rev-puntos li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 2px;
  background: var(--copper);
}

.rev-form {
  background: rgba(251,246,236,.055);
  border: 1px solid rgba(251,246,236,.16);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 13px;
}
.rev-form-title {
  margin: 0 0 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  color: var(--ivory);
}
.rev-form .field { display: grid; gap: 5px; }
.rev-form .field > span {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(251,246,236,.62);
}
.rev-form input,
.rev-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid rgba(251,246,236,.22);
  background: rgba(251,246,236,.06);
  color: var(--ivory);
  font: inherit;
  font-size: .95rem;
}
.rev-form input:focus,
.rev-form textarea:focus {
  outline: 2px solid var(--copper-soft);
  outline-offset: 1px;
}
.rev-form textarea { resize: vertical; min-height: 74px; }
.rev-form .cta { justify-content: center; margin-top: 4px; }
.rev-aviso {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .88rem;
}
.rev-aviso.is-ok  { background: rgba(46,125,79,.22);  border: 1px solid rgba(150,220,180,.4); color: #d5f2e0; }
.rev-aviso.is-err { background: rgba(160,61,46,.24);  border: 1px solid rgba(255,180,165,.4); color: #ffd9d1; }
.rev-legal {
  margin: 0;
  font-size: .76rem;
  color: rgba(251,246,236,.5);
}

@media (max-width: 860px) {
  .rev-grid { grid-template-columns: 1fr; }
}

/* Aviso de stock en la ficha de compra. Solo aparece si Eterra publicó el
   stock: con los lotes en cero la tienda no muestra nada de esto. */
.stock-nota {
  margin: 0 0 8px;
  font-size: .84rem;
  letter-spacing: .02em;
  color: var(--copper);
  font-weight: 600;
}
.stock-nota.is-agotado { color: var(--muted); font-weight: 500; }
[data-add][disabled] { opacity: .55; cursor: not-allowed; }

/* =====================================================================
   PORTADA ROTATIVA
   Las imágenes se apilan una encima de otra y se cruzan con un fundido.
   La primera queda en el flujo normal para que defina el alto del hero;
   las que se van sumando se posicionan encima.
   ===================================================================== */
.hero-figure { position: relative; }
.hero-img { display: block; width: 100%; }
.hero-img.is-extra {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.hero-img.is-extra.is-on { opacity: 1; }
/* Cuando hay una foto encima, la de abajo no debe verse a través */
.hero-figure.tiene-extras .hero-img:first-child { opacity: 1; }

/* Puntitos para saber en cuál va y poder elegir */
.hero-puntos {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}
.hero-puntos button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 246, 236, .38);
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.hero-puntos button.is-on {
  background: var(--copper-soft);
  transform: scale(1.45);
}
@media (max-width: 640px) {
  .hero-puntos { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img.is-extra { transition: none; }
}

/* =====================================================================
   NOSOTROS
   ===================================================================== */
.nos-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.nos-copy p { max-width: 54ch; }
.nos-cierre {
  margin-top: 26px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--deep);
}
.nos-firma {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--stone);
  display: grid;
  gap: 2px;
}
.nos-firma-nombre {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.16rem;
  color: var(--deep);
}
.nos-firma-rol {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nos-pilares {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.nos-pilares li {
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.nos-pilar-t {
  font-weight: 600;
  font-size: .95rem;
  color: var(--deep);
}
.nos-pilar-d {
  font-size: .87rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 860px) {
  .nos-grid { grid-template-columns: 1fr; }
}
