/* Generado por herramientas/tema_frutodevida.py desde app.css: no editar a mano. */
/* Divine Fragrance — hoja única. Tokens = DESIGN.md (export css-vars) + escala fluida, sombras y movimiento.
   Mobile-first (sistema-responsive): la base es la pantalla angosta y se amplía con @media (width >= …rem). */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #03692f;
  --color-primary-hover: #02521f;
  --color-on-primary: #ffffff;
  --color-secondary: #3f8f2a;
  --color-secondary-ink: #2e7d32;
  --color-mist: #d6ecc2;
  --color-neutral: #f3f8ee;
  --color-surface: #ffffff;
  --color-on-surface: #142a1a;
  --color-muted: #4f5e52;
  --color-line: #dde8d5;
  --color-whatsapp: #0e7a43;
  --color-on-whatsapp: #ffffff;
  --color-error: #b3261e;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 56px;
  --spacing-section: 72px;
  --spacing-margin: 20px;
  --rounded-none: 0px;
  --rounded-sm: 4px;
  --rounded-md: 10px;
  --rounded-full: 9999px;

  /* Derivados (DESIGN.md → Typography, Layout, Elevation) */
  --font: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --container: 80rem;
  --gutter: clamp(1rem, 4.5vw, 1.25rem);
  --section: clamp(3rem, 6vw, 4.5rem);
  --fs-display: clamp(2.25rem, 1.1rem + 4.2vw, 4.25rem);
  --fs-h1: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-lg: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  --fs-label: 0.8125rem;
  --track: 0.14em;
  --shadow-sm: 0 1px 2px rgba(20, 42, 26, 0.06), 0 2px 8px rgba(20, 42, 26, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(20, 42, 26, 0.28);
  --shadow-lg: 0 24px 60px -20px rgba(20, 42, 26, 0.4);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;
  --z-header: 50;
  --z-nav: 70;
  --z-float: 60;
  --z-toast: 80;
  --header-h: 4.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-on-surface);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4, p, li, a, dd, dt, td, th { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--color-primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
table { border-collapse: collapse; width: 100%; }
.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 { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--color-surface); color: var(--color-primary); padding: 0.75rem 1rem; border-radius: var(--rounded-sm); }
.skip:focus { top: 1rem; }

.container { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; }

/* ---------- Tipografía ---------- */
.display { font-size: var(--fs-display); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; }
.h1, h1, .h2, h2 { text-wrap: balance; }
.h1, h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.1; letter-spacing: -0.005em; }
.h2, h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.12; }
.h3, h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
.lead { font-size: var(--fs-lg); color: var(--color-muted); max-width: 62ch; }
.label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; line-height: 1.3;
  color: var(--color-secondary-ink);
}
.muted { color: var(--color-muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.8rem 1.6rem; border: 1px solid transparent; border-radius: var(--rounded-full);
  font-size: 0.875rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-med) ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-wa { background: var(--color-whatsapp); color: var(--color-on-whatsapp); }
.btn-wa:hover { background: #0b6337; color: var(--color-on-whatsapp); }
.btn-light { background: var(--color-surface); color: var(--color-primary); }
.btn-light:hover { background: var(--color-mist); color: var(--color-on-surface); }
.btn-outline { border-color: currentColor; color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-size: 0.875rem; font-weight: 500;
  letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; overflow-wrap: anywhere;
}
.link-arrow svg { transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Franja de avisos (se desliza sola) ---------- */
.ticker { background: var(--color-on-surface); color: #eef6e8; font-size: 0.8125rem; letter-spacing: 0.04em; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex-shrink: 0; }
.ticker-list li { padding: 0.5rem 1.75rem; white-space: nowrap; position: relative; }
.ticker-list li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--color-secondary); transform: translateY(-50%); }
.ticker strong { color: #fff; font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--color-primary); color: var(--color-on-primary);
  transition: box-shadow var(--t-med) ease;
}
.site-header.is-solid { box-shadow: 0 8px 24px -12px rgba(12, 28, 16, 0.6); }
.header-row { display: flex; align-items: center; gap: 0.5rem; min-height: var(--header-h); }
.brand { flex-shrink: 0; display: block; margin-right: auto; padding-block: 0.4rem; }
.brand img { height: clamp(2.8rem, 12vw, 3.5rem); width: auto; }
.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: transparent; color: inherit; transition: background-color var(--t-fast) ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }
.cart-count {
  position: absolute; top: 0.2rem; right: 0.1rem; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 999px;
  background: var(--color-mist); color: var(--color-on-surface); font-size: 0.72rem; font-weight: 600; line-height: 1.25rem; text-align: center;
}
.cart-count.bump { animation: bump 600ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.5); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }
.header-search { display: none; }

/* Menú: panel lateral en el celular */
.nav {
  position: fixed; inset: 0 0 0 auto; z-index: var(--z-nav); width: min(22rem, 92vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-surface); color: var(--color-on-surface); padding: 1rem 1.25rem 2rem;
  transform: translateX(105%); transition: transform var(--t-med) var(--ease-out); visibility: hidden;
}
.menu-open .nav { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
.nav-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1); background: rgba(12, 28, 16, 0.45); }
.nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.nav-title { font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--color-muted); }
.nav-search { display: flex; border: 1px solid var(--color-line); border-radius: var(--rounded-full); margin-bottom: 0.75rem; }
.nav-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.75rem 1rem; min-height: 2.75rem; }
.nav-search button { border: 0; background: transparent; width: 2.75rem; display: grid; place-items: center; color: var(--color-primary); }
.nav-list { border-top: 1px solid var(--color-line); }
.nav-item { border-bottom: 1px solid var(--color-line); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.25rem; padding: 0.5rem 0;
  border: 0; background: none; color: var(--color-on-surface); font-size: 1.05rem; text-decoration: none; text-align: left;
}
.nav-link svg { transition: transform var(--t-med) var(--ease-out); flex-shrink: 0; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { display: none; padding: 0 0 0.75rem; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; animation: drop var(--t-med) var(--ease-out); }
.sub a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: 0.4rem 0.75rem; border-radius: var(--rounded-sm); color: var(--color-muted); text-decoration: none; }
.sub a:hover { background: var(--color-neutral); color: var(--color-primary); }
.sub-n { font-size: 0.8125rem; color: var(--color-secondary-ink); }
.nav-wa { width: 100%; margin-top: 1.25rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Buscador de la cabecera: desde 40rem, se abre con su ícono */
@media (width >= 40rem) {
  .header-search {
    display: flex; align-items: center; border: 1px solid transparent; border-radius: var(--rounded-full);
    transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
  }
  .header-search input {
    width: 0; min-height: 2.6rem; padding: 0; border: 0; background: transparent; color: #fff;
    transition: width var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out);
  }
  .header-search input::placeholder { color: rgba(255, 255, 255, 0.75); }
  .header-search.is-open, .header-search:focus-within { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.1); }
  .header-search.is-open input, .header-search:focus-within input { width: 11rem; padding: 0 0 0 1rem; }
  .header-search button { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; }
  .header-search button:hover { background: rgba(255, 255, 255, 0.12); }
}
@media (width >= 64rem) {
  :root { --header-h: 5.5rem; }
  .brand img { height: 4.25rem; }
}
/* Menú completo en la barra desde 80rem (1280 px); debajo, panel lateral */
@media (width >= 80rem) {
  .menu-btn, .nav-head, .nav-search, .nav-wa, .nav-close { display: none; }
  .nav {
    position: static; transform: none; visibility: visible; width: auto; overflow: visible; padding: 0; background: none; color: inherit;
    flex: 1;
  }
  .header-row { gap: 1rem; }
  .brand { margin-right: 0; }
  .nav-list { display: flex; justify-content: center; gap: 0.1rem; border: 0; }
  .nav-item { position: relative; border: 0; }
  .nav-link {
    min-height: 2.75rem; padding: 0.5rem 0.85rem; gap: 0.3rem; color: #fff; font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
    letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--rounded-full); justify-content: center;
  }
  .nav-link:hover, .sub-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .sub {
    position: absolute; top: calc(100% + 0.6rem); left: 50%; min-width: 16rem; padding: 0.6rem; border-radius: var(--rounded-md);
    background: var(--color-surface); box-shadow: var(--shadow-lg); transform: translateX(-50%);
  }
  .sub-right { left: auto; right: 0; transform: none; }
  .sub::before { content: ""; position: absolute; top: -0.6rem; left: 0; right: 0; height: 0.6rem; }
  .nav-item.has-sub:hover > .sub, .nav-item.has-sub:focus-within > .sub { display: block; animation: drop var(--t-med) var(--ease-out); }
  .nav-backdrop { display: none !important; }
}
@media (width >= 90rem) { .nav-link { padding-inline: 1.05rem; letter-spacing: var(--track); } .brand img { height: 4.5rem; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-alt { background: var(--color-neutral); }
.section-blue { background: var(--color-primary); color: var(--color-on-primary); }
.section-blue .label { color: var(--color-mist); }
.section-blue .lead, .section-blue .muted { color: #e0edd6; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section-head > div { max-width: 46rem; }
.section-head .label { margin-bottom: 0.5rem; display: block; }
.section-head .lead { margin-top: 0.5rem; }

/* ---------- Bruma (firma de la marca): curvas del atomizador del logo ---------- */
.swirl { color: var(--color-secondary); }
.swirl path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .swirl path, .swirl.is-in path, .hero .swirl path { animation: draw 2.4s var(--ease-soft) forwards; }
.swirl path:nth-child(2) { animation-delay: 0.25s !important; }
.swirl path:nth-child(3) { animation-delay: 0.5s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mist { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mist span {
  position: absolute; bottom: -10%; width: var(--s, 14rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(214, 236, 194, 0.55), rgba(63, 143, 42, 0.12) 45%, transparent 70%);
  filter: blur(6px); opacity: 0; animation: rise var(--d, 16s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate3d(var(--x, 4rem), -120vh, 0) scale(1.35); opacity: 0; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background-color: var(--color-primary);
}
.hero-grid { position: relative; display: grid; gap: 1.5rem; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.hero-copy { position: relative; z-index: 2; max-width: 46rem; }
.hero .label { color: var(--color-mist); display: inline-flex; align-items: center; gap: 0.6rem; }
.hero .label::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.hero h1 { margin-top: 0.9rem; }
.hero h1 em { font-style: normal; color: var(--color-mist); font-weight: 400; }
.hero .lead { color: #e7f1df; margin-top: 1rem; }
.hero .btn-row { margin-top: 1.6rem; }
.hero-price { display: inline-flex; align-items: baseline; gap: 0.4rem; margin-top: 1.25rem; font-size: 0.95rem; color: #e0edd6; }
.hero-price strong { font-size: 1.6rem; font-weight: 400; color: #fff; }
.hero-art { position: relative; z-index: 1; min-height: 17rem; }
.hero-art .swirl { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--color-mist); opacity: 0.8; }
.bottle {
  position: absolute; bottom: 0; width: var(--w, 30%); filter: drop-shadow(0 24px 30px rgba(8, 24, 12, 0.45));
  opacity: 0; animation: bottle-in 1.1s var(--ease-out) forwards, float var(--f, 7s) ease-in-out infinite;
  animation-delay: var(--in, 0s), calc(var(--in, 0s) + 1.1s);
}
.bottle img { width: 100%; height: auto; }
@keyframes bottle-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-12px); opacity: 1; } }
.hero-cats { position: relative; z-index: 2; display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: clamp(1.5rem, 4vw, 2.5rem); scrollbar-width: none; scroll-snap-type: x proximity; }
.hero-cats::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; min-height: 3rem; padding: 0.3rem 1rem 0.3rem 0.3rem;
  border-radius: var(--rounded-full); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; text-decoration: none; font-size: 0.9rem; white-space: nowrap; scroll-snap-align: start;
  transition: background-color var(--t-fast) ease, transform var(--t-med) var(--ease-out), border-color var(--t-fast) ease;
}
.chip:hover { background: #fff; color: var(--color-primary); transform: translateY(-2px); border-color: #fff; }
.chip img { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.chip b { font-weight: 600; }
@media (width >= 64rem) { .hero-cats { flex-wrap: wrap; overflow: visible; } }
@media (width >= 48rem) and (width < 64rem) { .hero-art { min-height: 0; aspect-ratio: 2.2; } }
@media (width >= 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; min-height: min(36rem, 72vh); }
  .hero-art { min-height: 26rem; height: 100%; }
}
@media (width >= 80rem) { .hero-grid { min-height: 38rem; } }

/* ---------- Tarjeta de producto ---------- */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem) clamp(0.6rem, 1.6vw, 1.25rem); }
@media (width >= 40rem) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (width >= 62rem) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (width >= 84rem) { .grid-products.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; aspect-ratio: 1; border-radius: var(--rounded-md); overflow: hidden; background: #fff;
  transition: box-shadow var(--t-med) ease, transform var(--t-med) var(--ease-out);
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform var(--t-slow) var(--ease-out), opacity var(--t-med) ease; }
.card-media .img-2 { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .card:hover .card-media img { transform: scale(1.05); }
  .card:hover .card-media .img-2 { opacity: 1; }
  .card:hover .card-media .img-2 ~ .img-1, .card:hover .card-media:has(.img-2) .img-1 { opacity: 0; }
}
@media (hover: none) { .card-media .img-2 { display: none; } }
.card-badges { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.badge {
  display: inline-block; padding: 0.25rem 0.6rem; border-radius: var(--rounded-full); background: var(--color-mist); color: var(--color-on-surface);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; line-height: 1.35;
}
.badge-promo { background: var(--color-primary); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 0.2rem; padding-top: 0.75rem; }
.card-line { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary-ink); line-height: 1.35; }
.card-title { font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem); font-weight: 500; line-height: 1.3; }
.card-title a { display: inline-block; padding-block: 0.15rem; color: var(--color-on-surface); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--color-primary); }
.card-size { font-size: 0.85rem; color: var(--color-muted); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; margin-top: auto; padding-top: 0.35rem; }
.price-now { font-size: 1.1rem; font-weight: 500; color: var(--color-primary); white-space: nowrap; }
.price-was { font-size: 0.85rem; color: var(--color-muted); white-space: nowrap; }
.price-ask { font-size: 0.9rem; color: var(--color-muted); }
.card-add { position: relative; z-index: 2; margin-top: 0.6rem; }
.card-add .btn { width: 100%; min-height: 2.75rem; padding: 0.55rem 0.9rem; font-size: 0.75rem; gap: 0.4rem; }
.card-add .btn svg { flex-shrink: 0; }
.card-add .btn.is-done { background: var(--color-secondary-ink); }
/* Sin foto: etiqueta tipográfica (nunca la foto de otro producto) */
.card-label {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0.4rem; padding: 12%; text-align: center;
  background-color: var(--color-neutral); color: var(--color-primary);
}
.card-label b { font-size: clamp(1rem, 0.9rem + 0.8vw, 1.4rem); font-weight: 300; line-height: 1.15; }
.card-label span { font-size: 0.8125rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--color-secondary-ink); }

/* ---------- Carrusel (sin flechas, puntos ni pausa: se desliza solo y con el dedo) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 0.75rem) / 2); gap: 0.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 0.25rem;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail.is-dragging a { pointer-events: none; }
@media (width >= 40rem) { .rail { grid-auto-columns: calc((100% - 2 * 1rem) / 3); gap: 1rem; } }
@media (width >= 62rem) { .rail { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem; } }
@media (width >= 84rem) { .rail.cols-5 { grid-auto-columns: calc((100% - 4 * 1.25rem) / 5); } }
.rail-progress { height: 2px; margin-top: 1.25rem; background: var(--color-line); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 100%; background: var(--color-primary); transform-origin: left; transform: scaleX(0.2); transition: transform var(--t-med) var(--ease-out); }
.section-blue .rail-progress { background: rgba(255, 255, 255, 0.25); }
.section-blue .rail-progress span { background: #fff; }

.section-foot { margin-top: 0.75rem; display: flex; justify-content: flex-end; }

/* ---------- Promoción 3×2 ---------- */
.promo-head { display: grid; gap: 1rem; align-items: center; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.promo-mark {
  display: inline-grid; place-items: center; width: 5.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--color-mist);
  font-size: 2rem; font-weight: 300; color: var(--color-primary); background: #fff; position: relative;
}
.promo-mark::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--color-secondary); border-right-color: var(--color-secondary); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.promo-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tab {
  min-height: 2.75rem; padding: 0.5rem 1.2rem; border-radius: var(--rounded-full); border: 0; background: var(--color-neutral);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--color-muted);
  transition: all var(--t-fast) ease;
}
.tab[aria-selected="true"], .tab:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-showing { animation: fade-up var(--t-slow) var(--ease-out); }
@media (width >= 48rem) { .promo-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; } }

/* ---------- Mosaico de categorías: el título va sobre la tarjeta ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(0.6rem, 1.6vw, 1rem); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 12rem; padding: 1rem;
  border-radius: var(--rounded-md); overflow: hidden; text-decoration: none; color: var(--color-on-surface);
  background-color: var(--color-mist);
  isolation: isolate; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--color-on-surface); }
.tile-img { position: absolute; z-index: -1; left: 10%; right: 10%; top: 7%; width: 80%; height: 56%; object-fit: contain; transition: transform var(--t-slow) var(--ease-out); filter: drop-shadow(0 14px 18px rgba(20, 42, 26, 0.22)); }
.tile:hover .tile-img { transform: scale(1.06) rotate(-2deg); }
.tile-title { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); font-weight: 400; line-height: 1.15; }
.tile-meta { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); margin-top: 0.25rem; }
.tile.is-blue { background-color: var(--color-primary); color: #fff; }
.tile.is-blue .tile-meta { color: var(--color-mist); }
.tile.is-blue:hover { color: #fff; }
@media (width >= 48rem) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 13rem; }
  .tile { min-height: 0; padding: 1.25rem; }
  .tile.is-big { grid-column: span 2; grid-row: span 2; }
  .tile.is-big .tile-img { width: 70%; height: 80%; right: 2%; top: 4%; }
  .tile.is-wide { grid-column: span 2; }
  .tile.is-wide .tile-img { width: 46%; height: 92%; top: 4%; }
}

/* ---------- Pantalla partida (Divine Collection) ---------- */
.split { display: grid; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.split-media { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.split-media figure { border-radius: var(--rounded-md); overflow: hidden; background: #fff; aspect-ratio: 4 / 5; }
.split-media figure:first-child { grid-row: span 2; aspect-ratio: auto; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.split-media figure:hover img { transform: scale(1.04); }
.split-copy .label { display: block; margin-bottom: 0.6rem; }
.split-copy .lead { margin-top: 0.9rem; }
.split-copy .btn-row { margin-top: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.fact { padding: 0.9rem 1rem; border-radius: var(--rounded-md); background: var(--color-neutral); }
.fact b { display: block; font-size: 1.35rem; font-weight: 400; color: var(--color-primary); line-height: 1.2; }
.fact span { font-size: 0.875rem; color: var(--color-muted); }
@media (width >= 56rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split.is-reverse .split-media { order: 2; } }

/* ---------- Emprende ---------- */
.biz { position: relative; overflow: hidden; }
.biz .swirl { position: absolute; left: -8%; top: 0; width: 52%; height: 100%; color: var(--color-mist); opacity: 0.28; pointer-events: none; }
.biz .rail .card-body { position: relative; z-index: 1; }
.biz-grid { position: relative; display: grid; gap: 1.5rem; }
.biz-list { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.biz-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.biz-list svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--color-mist); }
@media (width >= 62rem) { .biz-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: center; gap: 2.5rem; } }
.section-blue .card-title a, .section-blue .price-now { color: #fff; }
.section-blue .card-line { color: var(--color-mist); }
.section-blue .price-was, .section-blue .card-size { color: #cfe2c0; }
.section-blue .card-media { box-shadow: none; }
.section-blue .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.section-blue .btn-outline:hover { background: #fff; color: var(--color-primary); border-color: #fff; }

/* ---------- Pasos y envíos ---------- */
.steps { display: grid; gap: 0.75rem; counter-reset: paso; }
.step { position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: var(--rounded-md); background: #fff; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: paso; content: counter(paso); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-primary); color: #fff; font-weight: 500;
}
.step h3 { margin-bottom: 0.25rem; }
.step p { color: var(--color-muted); font-size: 1rem; }
@media (width >= 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.zones { display: grid; gap: 0.75rem; margin-top: 1rem; }
.zone { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 1rem 1.25rem; border-radius: var(--rounded-md); background: #fff; }
.zone b { font-weight: 500; }
.zone .zone-price { font-size: 1.15rem; color: var(--color-primary); }
.zone p { flex-basis: 100%; font-size: 0.875rem; color: var(--color-muted); }
@media (width >= 48rem) { .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pay { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.pay li { padding: 0.45rem 1rem; border-radius: var(--rounded-full); background: #fff; font-size: 0.9375rem; }

/* ---------- Blog: portadas tipográficas de la marca ---------- */
.posts { display: grid; gap: 1rem; }
@media (width >= 40rem) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 62rem) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--rounded-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-cover {
  position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 1rem 1.25rem; overflow: hidden; color: #fff;
  background-color: var(--color-primary);
}
.post-cover .swirl { position: absolute; right: -10%; top: -10%; width: 80%; height: 120%; color: var(--color-mist); opacity: 0.55; }
.post-cover span { position: relative; font-size: 0.8125rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--color-mist); }
.post-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.post-body h3 a { color: var(--color-on-surface); text-decoration: none; }
.post-body h3 a::after { content: ""; position: absolute; inset: 0; }
.post-body p { color: var(--color-muted); font-size: 1rem; }

/* ---------- Cierre con WhatsApp ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band .container { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1rem; }
.cta-band .display { max-width: 22ch; }
.cta-phone { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); font-weight: 300; color: #fff; text-decoration: none; letter-spacing: 0.04em; }
.cta-phone:hover { color: var(--color-mist); }

/* ---------- Migas ---------- */
.crumbs { font-size: 0.85rem; color: var(--color-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.25rem; }
.crumbs li + li::before { content: "/"; color: var(--color-line); padding-right: 0.25rem; }
.crumbs a { color: var(--color-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs a:hover { color: var(--color-primary); }
.crumbs [aria-current] { color: var(--color-on-surface); }

/* ---------- Categoría ---------- */
.cat-hero { position: relative; overflow: hidden; background-color: var(--color-neutral); margin-bottom: 0.5rem; padding-block: 0.5rem clamp(1.5rem, 3vw, 2.25rem); }
.cat-hero .swirl { position: absolute; right: -6%; top: -20%; width: min(40rem, 70%); height: 140%; opacity: 0.35; pointer-events: none; }
.cat-hero .container { position: relative; }
.cat-hero h1 { margin-top: 0.5rem; max-width: 34ch; }
.h1-page { font-size: 0.55em; color: var(--color-muted); white-space: nowrap; }
.cat-intro { margin-top: 0.75rem; max-width: 70ch; color: var(--color-muted); font-size: var(--fs-lg); }
.cat-chips { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 1.25rem; padding-bottom: 0.25rem; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.1rem; border-radius: var(--rounded-full);
  border: 1px solid var(--color-line); background: #fff; color: var(--color-on-surface); text-decoration: none; font-size: 0.9rem; white-space: nowrap;
  transition: all var(--t-fast) ease;
}
.cat-chips a:hover, .cat-chips a[aria-current="page"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.5rem 1rem; margin-bottom: 1rem; }
.toolbar-count { color: var(--color-muted); font-size: 0.95rem; }
.toolbar-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.seg { display: inline-flex; border: 1px solid var(--color-line); border-radius: var(--rounded-full); padding: 3px; background: #fff; }
.seg a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; min-width: 2.75rem; padding: 0.3rem 0.9rem; border-radius: var(--rounded-full); color: var(--color-muted); text-decoration: none; font-size: 0.875rem; white-space: nowrap; }
.seg a[aria-current="true"] { background: var(--color-primary); color: #fff; }
.select { position: relative; }
.select select {
  appearance: none; min-height: 2.75rem; padding: 0.4rem 2.4rem 0.4rem 1rem; border: 1px solid var(--color-line); border-radius: var(--rounded-full); background: #fff; font-size: 0.9rem;
}
.select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid var(--color-muted); border-bottom: 1.5px solid var(--color-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: var(--rounded-full); border: 1px solid var(--color-line); text-decoration: none; color: var(--color-on-surface); }
.pager [aria-current] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pager a:hover { border-color: var(--color-primary); }
.seo-text { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--rounded-md); background: var(--color-neutral); }
@media (width >= 62rem) { .seo-text .prose { columns: 2; column-gap: 3rem; } .seo-text .prose > * { break-inside: avoid; } .seo-text .prose h2 { column-span: all; } }
.empty { padding: 3rem 1rem; text-align: center; color: var(--color-muted); }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; gap: clamp(1.25rem, 4vw, 3rem); padding-bottom: var(--section); }
.gallery { min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--rounded-md); overflow: hidden; background: #fff; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5%; transition: opacity var(--t-med) ease, transform var(--t-slow) var(--ease-out); }
.gallery-main img.is-changing { opacity: 0; transform: scale(0.98); }
.gallery-main .card-label { position: absolute; }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex-shrink: 0; width: 4.5rem; height: 4.5rem; border-radius: var(--rounded-sm); border: 1px solid var(--color-line); background: #fff; padding: 3px; }
.thumbs button[aria-pressed="true"] { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox { min-width: 0; }
.buybox h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-top: 0.5rem; }
.buybox .price { margin-top: 1rem; gap: 0.5rem 0.75rem; }
.buybox .price-now { font-size: 2rem; font-weight: 400; }
.buybox .price-was { font-size: 1rem; }
.save { font-size: 0.85rem; color: var(--color-secondary-ink); font-weight: 500; }
.promo-box { display: flex; gap: 0.9rem; align-items: center; margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: var(--rounded-md); background: var(--color-mist); }
.promo-box b { display: block; color: var(--color-primary); font-weight: 500; }
.promo-box span { font-size: 0.9rem; color: var(--color-muted); }
.promo-box .promo-mark { width: 3.5rem; font-size: 1.1rem; flex-shrink: 0; }
.promo-box .promo-mark::after { inset: -4px; }
.short { margin-top: 1rem; color: var(--color-muted); font-size: var(--fs-lg); }
.buy { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.buy-row { display: flex; gap: 0.75rem; }
.qty { display: inline-flex; align-items: center; background: var(--color-neutral); border-radius: var(--rounded-full); flex-shrink: 0; }
.qty button { width: 2.75rem; height: 2.9rem; border: 0; background: none; font-size: 1.2rem; color: var(--color-primary); border-radius: 50%; }
.qty input { width: 2.5rem; min-height: 2.75rem; border: 0; text-align: center; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1; }
.trust { display: grid; gap: 0.6rem; margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: var(--rounded-md); background: var(--color-neutral); }
.trust li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; }
.trust svg { flex-shrink: 0; color: var(--color-secondary-ink); margin-top: 0.15rem; }
.specs { margin-top: 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); row-gap: 0.25rem; }
.specs dt, .specs dd { margin: 0; padding: 0.55rem 0.9rem; background: var(--color-neutral); font-size: 1rem; }
.specs dt { border-radius: var(--rounded-sm) 0 0 var(--rounded-sm); }
.specs dd { border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0; }
.specs dt { color: var(--color-muted); padding-right: 1.5rem; }
.pdp-desc { display: grid; gap: 1.5rem; }
@media (width >= 56rem) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
  .pdp-desc { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
}

/* ---------- Texto largo ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--color-secondary); }
.prose strong { font-weight: 600; }
.prose table { margin-block: 1.25rem; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.prose th { background: var(--color-neutral); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.page-hero { position: relative; overflow: hidden; background-color: var(--color-neutral); margin-bottom: 1.5rem; padding-block: 0.5rem clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .swirl { position: absolute; right: -6%; top: -20%; width: min(40rem, 70%); height: 140%; opacity: 0.35; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { margin-top: 0.5rem; max-width: 26ch; }
.page-hero .lead { margin-top: 0.75rem; }
.page-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--section); }
@media (width >= 62rem) { .page-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .page-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.aside-card { padding: 1.5rem; border-radius: var(--rounded-md); background: var(--color-primary); color: #fff; position: relative; overflow: hidden; }
.aside-card .swirl { position: absolute; right: -20%; bottom: -20%; width: 90%; color: var(--color-mist); opacity: 0.4; }
.aside-card > * { position: relative; }
.aside-card p { color: #e0edd6; margin-top: 0.5rem; }
.aside-card .btn { width: 100%; margin-top: 1rem; }
.aside-links { margin-top: 1rem; display: grid; gap: 0.25rem; }
.aside-links a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.25rem 0.75rem; border-radius: var(--rounded-sm); color: var(--color-on-surface); text-decoration: none; }
.aside-links a:hover { background: var(--color-neutral); color: var(--color-primary); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field .field-label { font-size: 0.9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; border: 1px solid #bccab4; border-radius: var(--rounded-sm); background: #fff;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31, 95, 47, 0.18); }
.field-hint { font-size: 0.85rem; color: var(--color-muted); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; min-height: 2.75rem; padding: 0.4rem 0; font-size: 0.92rem; cursor: pointer; }
.check input { width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; flex-shrink: 0; accent-color: var(--color-primary); }
.alert { padding: 0.9rem 1rem; border-radius: var(--rounded-sm); background: #fdeceb; color: #7a1a14; border-left: 3px solid var(--color-error); }
.alert ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.note { font-size: 0.85rem; color: var(--color-muted); }
.form-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--rounded-md); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); }
@media (width >= 40rem) { .form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Carrito ---------- */
.cart { display: grid; gap: 1.5rem; padding-bottom: var(--section); }
.cart-items { display: grid; gap: 0.75rem; }
.cart-item { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.9rem; padding: 0.9rem; border-radius: var(--rounded-md); border: 1px solid var(--color-line); background: #fff; }
.cart-item-media { position: relative; width: 5rem; aspect-ratio: 1; border-radius: var(--rounded-sm); overflow: hidden; background: #fff; }
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item-media .card-label b { font-size: 0.7rem; }
.cart-item-media .card-label span { display: none; }
.cart-item h2 { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.cart-item h2 a { color: var(--color-on-surface); text-decoration: none; }
.cart-item-meta { font-size: 0.85rem; color: var(--color-muted); }
.cart-item-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-row form { display: inline-flex; }
.cart-line { font-weight: 500; color: var(--color-primary); white-space: nowrap; }
.link-btn { border: 0; background: none; color: var(--color-muted); text-decoration: underline; min-height: 2.75rem; padding: 0 0.25rem; font-size: 0.875rem; }
.link-btn:hover { color: var(--color-error); }
.summary { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--rounded-md); background: var(--color-neutral); }
.summary h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.95rem; }
.sum-row.is-discount { color: var(--color-secondary-ink); }
.sum-total { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; margin-top: 0.5rem; border-top: 1px solid var(--color-line); font-size: 1.15rem; font-weight: 500; }
.promo-hint { margin-top: 0.75rem; padding: 0.75rem 0.9rem; border-radius: var(--rounded-sm); background: #fff; font-size: 0.9rem; border: 1px dashed var(--color-secondary); }
.summary .form { margin-top: 1.25rem; }
.summary .btn { width: 100%; }
@media (width >= 62rem) { .cart { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } .summary { position: sticky; top: calc(var(--header-h) + 1rem); } }

/* ---------- Pie ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--color-primary); color: #ebf3e5; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; margin-top: 0; }
.footer-swirl { position: absolute; left: 0; top: 0; width: 100%; height: 7rem; color: var(--color-mist); opacity: 0.3; }
.footer-grid { position: relative; display: grid; gap: 2rem; }
.footer-brand img { height: 9rem; width: auto; }
@media (width >= 48rem) { .footer-brand img { height: 11rem; } }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.verse { font-style: italic; color: var(--color-mist); }
.verse span { font-style: normal; font-size: 0.8125rem; letter-spacing: 0.08em; }
.footer-h { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--color-mist); margin-bottom: 0.75rem; }
.footer-col ul { display: grid; gap: 0.1rem; list-style: none; padding: 0; margin: 0; }
.footer-col a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-col a:hover { color: var(--color-mist); text-decoration: underline; }
.footer-contact .btn { color: #fff; margin-bottom: 0.5rem; }
.footer-contact p a { min-height: 2.75rem; }
.libro { gap: 0.6rem; margin-top: 0.5rem; padding: 0.5rem 0.9rem !important; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--rounded-sm); }
.footer-legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding: 1rem 1.25rem; border-radius: var(--rounded-md); background: var(--color-primary-hover); font-size: 0.85rem; color: #cfe2c0; }
.footer-legal a { color: #fff; display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (width >= 48rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 64rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; } }

/* ---------- WhatsApp flotante y aviso ---------- */
.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: 0.6rem; height: 3.5rem; min-width: 3.5rem; padding: 0 0.85rem; border-radius: var(--rounded-full);
  background: var(--color-whatsapp); color: #fff; text-decoration: none; box-shadow: var(--shadow-md);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast) ease;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(14, 122, 67, 0.5); animation: pulse 2.8s ease-out infinite; }
.wa-float:hover { color: #fff; transform: translateY(-2px); background: #0b6337; }
.wa-float-label { display: none; font-weight: 500; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 122, 67, 0.45); } 70% { box-shadow: 0 0 0 14px rgba(14, 122, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 122, 67, 0); } }
@media (width >= 64rem) { .wa-float-label { display: inline; } .wa-float { padding-right: 1.25rem; } }
.toast {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: var(--z-toast); width: min(calc(100% - 2rem), 26rem);
  display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-radius: var(--rounded-md);
  background: var(--color-on-surface); color: #fff; box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) ease;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-whatsapp); flex-shrink: 0; }
.toast-text { flex: 1; min-width: 0; font-size: 0.92rem; }
.toast-link { color: var(--color-mist); font-weight: 500; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; }
.toast-link:hover { color: #fff; }
.fly { position: fixed; z-index: var(--z-toast); width: 14px; height: 14px; border-radius: 50%; background: var(--color-secondary); pointer-events: none; box-shadow: 0 0 0 4px rgba(63, 143, 42, 0.25); }

/* ---------- Aparición al bajar (el contenido es visible si no hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d5 { --i: 5; }
.mt { margin-top: 1rem; } .mt-lg { margin-top: 1.5rem; } .mb { margin-bottom: 1rem; }
.center { justify-content: center; }
.also a { color: #fff; }
.mist span:nth-child(1) { --s: 16rem; left: 6%; --d: 18s; --x: 5rem; }
.mist span:nth-child(2) { --s: 10rem; left: 38%; --d: 14s; --delay: -6s; --x: -3rem; }
.mist span:nth-child(3) { --s: 22rem; left: 62%; --d: 22s; --delay: -11s; --x: -6rem; }
.mist span:nth-child(4) { --s: 12rem; left: 84%; --d: 16s; --delay: -3s; --x: 2rem; }
/* Frascos de la portada: posición, entrada escalonada y flotación de cada uno */
.b1 { --w: 31%; left: 2%; bottom: 4%; --in: 0.15s; --f: 7s; z-index: 2; }
.b2 { --w: 36%; left: 32%; bottom: 0; --in: 0.3s; --f: 8s; z-index: 3; }
.b3 { --w: 30%; left: 68%; bottom: 6%; --in: 0.45s; --f: 6.5s; z-index: 2; }
.b4 { --w: 24%; left: 14%; bottom: 50%; --in: 0.6s; --f: 9s; z-index: 1; }
.b5 { --w: 22%; left: 60%; bottom: 54%; --in: 0.75s; --f: 8.5s; z-index: 1; }
@media (width < 64rem) { .b4, .b5 { display: none; } }
@media (width < 48rem) {
  .b1 { --w: 32%; } .b2 { --w: 36%; } .b3 { --w: 30%; }
  .hero-grid { gap: 0.25rem; padding-bottom: 0.75rem; }
  .hero-art { min-height: 0; aspect-ratio: 2.4; }
  .hero .lead { margin-top: 0.75rem; }
  .hero .btn-row { margin-top: 1.1rem; }
  .hero .btn-row .btn { flex: 1 1 auto; padding-inline: 1rem; }
  .hero-price { margin-top: 0.9rem; }
  .promo-head .promo-mark { display: none; }
}

/* ---------- Varios ---------- */
.search-big { display: flex; gap: 0.5rem; max-width: 36rem; margin-top: 1.25rem; }
.search-big input { flex: 1; min-width: 0; min-height: 3rem; padding: 0 1.1rem; border: 1px solid #bccab4; border-radius: var(--rounded-full); background: #fff; }
.zones-help { margin-top: 0.4rem; font-size: 0.875rem; color: var(--color-muted); }
.zones-help summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; color: var(--color-primary); }
.zones-help ul { padding-left: 1rem; display: grid; gap: 0.4rem; }
.blog-intro { margin-bottom: 1.5rem; }
.libro-wrap { padding-bottom: var(--section); }
.libro-wrap fieldset { border: 1px solid var(--color-line); border-radius: var(--rounded-md); padding: 1rem 1.25rem 1.25rem; margin: 1.25rem 0 0; }
.libro-wrap legend { padding: 0 0.5rem; font-weight: 500; }
.libro-wrap .form-grid { display: grid; gap: 1rem; }
@media (width >= 48rem) { .libro-wrap .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .libro-wrap .is-wide { grid-column: 1 / -1; } }
.libro-wrap .field select { min-height: 3rem; }
.libro-wrap .radio { display: flex; gap: 0.6rem; align-items: flex-start; min-height: 2.75rem; padding: 0.3rem 0; }
.libro-wrap .libro-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.libro-wrap .hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: var(--rounded-md); background: var(--color-neutral); border-left: 3px solid var(--color-secondary); margin-top: 1.25rem; }
.notice.is-ok { border-left-color: var(--color-whatsapp); }
.sheet { white-space: pre-wrap; font-size: 0.85rem; background: var(--color-neutral); padding: 1rem; border-radius: var(--rounded-sm); overflow-x: auto; }
.qty-form { display: inline-flex; }

/* ---------- Web de suplementos Fruto de Vida (subdominio; colores en frutodevida.css, ver DESIGN.md) ---------- */
.nav-ext svg { opacity: 0.7; }
/* Logo oficial a color (verde, rojo y naranja): la cabecera de esta web es blanca, porque sus letras verdes no se leen
   sobre el verde primario. El pie sigue verde y el logo va en una placa blanca. */
.sitio-fv .site-header { background: var(--color-surface); color: var(--color-on-surface); border-bottom: 1px solid var(--color-line); }
.sitio-fv .site-header.is-solid { box-shadow: 0 8px 24px -14px rgba(20, 42, 26, 0.35); }
.brand-fv img { height: clamp(3rem, 12vw, 3.6rem); width: auto; }
.sitio-fv .icon-btn:hover { background: var(--color-neutral); }
.sitio-fv .cart-count { background: var(--color-primary); color: var(--color-on-primary); }
.fv-logo-pie { display: inline-block; margin-bottom: 1rem; padding: 0.6rem 0.8rem; border-radius: var(--rounded-md); background: #fff; }
.fv-logo-pie img { display: block; width: 7.5rem; height: auto; }
@media (width >= 40rem) {
  .sitio-fv .header-search input { color: var(--color-on-surface); }
  .sitio-fv .header-search input::placeholder { color: var(--color-muted); }
  .sitio-fv .header-search.is-open, .sitio-fv .header-search:focus-within { border-color: var(--color-line); background: var(--color-neutral); }
  .sitio-fv .header-search button { color: var(--color-on-surface); }
  .sitio-fv .header-search button:hover { background: var(--color-neutral); }
}
@media (width >= 64rem) { .brand-fv img { height: 4.4rem; } }
@media (width >= 80rem) {
  .sitio-fv .nav-link { color: var(--color-on-surface); }
  .sitio-fv .nav-link:hover, .sitio-fv .sub-toggle[aria-expanded="true"] { background: var(--color-neutral); color: var(--color-primary); }
}

/* Portada clara: las fotos traen fondo blanco y se funden con el verde claro (mix-blend-mode: multiply) */
.hero-fv { color: var(--color-on-surface); background-color: #eef6e6; }
.hero-fv .label { color: var(--color-secondary-ink); }
.hero-fv h1 em { color: var(--color-primary); font-weight: 500; }
.hero-fv .lead { color: var(--color-muted); }
.hero-fv .hero-price { color: var(--color-muted); }
.hero-fv .hero-price strong { color: var(--color-primary); }
.hero-fv .chip { background: #fff; border-color: var(--color-line); color: var(--color-on-surface); }
.hero-fv .chip:hover { background: #fff; border-color: var(--color-primary); color: var(--color-primary); }
/* Sin z-index aquí: crearía un grupo aislado y el multiply ya no se fundiría con el fondo de la portada */
.fv-jars { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2%; padding-bottom: 0.75rem; }
.jar {
  position: relative; flex: 0 0 auto; width: var(--w, 20%); mix-blend-mode: multiply;
  opacity: 0; animation: jar-in 0.9s var(--ease-out) forwards, float var(--f, 7s) ease-in-out infinite;
  animation-delay: var(--in, 0s), calc(var(--in, 0s) + 0.9s);
}
.jar img { display: block; width: 100%; height: auto; }
.jar::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -0.55rem; height: 0.7rem; border-radius: 50%; background: rgba(20, 42, 26, 0.16); filter: blur(5px); }
.jar.j1 { --w: 30%; --in: 0.05s; --f: 8s; }
.jar.j2 { --w: 20%; --in: 0.2s; --f: 6.5s; }
.jar.j3 { --w: 23%; --in: 0.35s; --f: 7.5s; }
.jar.j4 { --w: 20%; --in: 0.5s; --f: 6s; }
.jar.j5 { display: none; --w: 19%; --in: 0.65s; --f: 7s; }
@keyframes jar-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (width >= 40rem) { .fv-jars { max-width: 34rem; margin-inline: auto; } }
@media (width >= 64rem) {
  .fv-jars { max-width: none; height: 100%; align-items: center; }
  .jar.j1 { --w: 25%; } .jar.j2 { --w: 16%; } .jar.j3 { --w: 18%; } .jar.j4 { --w: 16%; }
  .jar.j5 { display: block; --w: 17%; }
}
.fv-plantas { display: grid; gap: 1rem; }
.fv-plantas-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fv-plantas-list a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.1rem; border-radius: var(--rounded-full);
  border: 1px solid var(--color-line); background: #fff; color: var(--color-on-surface); text-decoration: none;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-med) var(--ease-out);
}
.fv-plantas-list a:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.fv-plantas-list span { font-size: 0.8125rem; color: var(--color-secondary-ink); }
@media (width >= 48rem) { .fv-plantas { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem; } }
.fv-aviso { padding: 1.25rem 1.5rem; border-radius: var(--rounded-md); background: var(--color-neutral); border-left: 3px solid var(--color-secondary); }
.fv-aviso p { margin-top: 0.4rem; color: var(--color-muted); max-width: 75ch; }
.fv-facts { margin-top: 0; }
.section-blue .fact { background: rgba(255, 255, 255, 0.1); }
.section-blue .fact b { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.section-blue .fact span { color: #e0edd6; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .jar { opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .mist { display: none; }
  .bottle { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .swirl path { stroke-dashoffset: 0; }
}
