/* ============================================================================
   PLATAFORMA TIENDA — shop.css
   Primitivas del kit (registro shop neutro) + secciones de la home `pagina`.
   Depende de tokens.css. CSS vanilla, sin frameworks.
   ============================================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-accent); color: var(--brand-accent-ink); }

/* ---------- TIPO ---------- */
h1, h2, h3, h4 { line-height: var(--lh-tight); letter-spacing: var(--ls-tight); font-weight: var(--fw-black); text-wrap: balance; }
/* Headings de PRESENTACIÓN consumen el hook de fuente display de marca
   (--brand-font-display). Default = --font-body, así que sin fonts.display
   custom nada cambia. Solo títulos grandes; NO la base h1–h4 ni UI densa. */
p { text-wrap: pretty; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--brand-accent); flex: none; }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: clamp(var(--space-7), 7vw, var(--space-9)); }
.section--tight { padding-block: clamp(var(--space-6), 5vw, var(--space-7)); }
.bg-surface { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: clamp(var(--space-6), 4vw, var(--space-7)); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head h1 { font-family: var(--brand-font-display); font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl)); }
.section-head h2 { font-family: var(--brand-font-display); font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl)); }
.section-head p { margin-top: var(--space-4); color: var(--ink-2); font-size: var(--fs-md); max-width: 52ch; }
.section-head--center p { margin-inline: auto; }

/* ============================================================
   PRIMITIVA · BOTONES
   ============================================================ */
/* Tokens de marca referenciados DIRECTAMENTE (no vía indirección --_bg/--_fg):
   un `background: var(--_bg)` no re-resuelve al cambiar --brand-accent en un
   ancestro (gap de invalidación de custom properties con indirección). Las
   variantes sobreescriben los longhands background/color directamente. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 13px 22px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: -.01em;
  background: var(--brand-accent); color: var(--brand-accent-ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--brand-accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--secondary { background: var(--surface-2); color: var(--ink); }
.btn--secondary:hover { background: var(--line); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-3); box-shadow: none; }
.btn--on-accent { background: var(--bg); color: var(--brand-accent); }
.btn--lg { padding: 16px 28px; font-size: var(--fs-base); }
.btn--sm { padding: 9px 14px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid transparent; transition: all var(--dur);
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

.arrow-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-bold); color: var(--brand-accent); }
.arrow-link svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ============================================================
   PRIMITIVA · CAMPOS DE FORMULARIO
   ============================================================ */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field-label { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink); }
.field-label .opt { color: var(--ink-3); font-weight: var(--fw-regular); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-accent); box-shadow: var(--shadow-focus); }
.textarea { resize: vertical; min-height: 96px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A85' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field .help { font-size: var(--fs-xs); color: var(--ink-3); }
.field.is-error .input, .field.is-error .select { border-color: var(--danger); }
.field .err-msg { display: none; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--danger); font-weight: var(--fw-bold); }
.field .err-msg svg { width: 14px; height: 14px; flex: none; }
.field.is-error .err-msg { display: flex; }
.field.is-success .input { border-color: var(--ok); }

/* ---- Estados de formulario añadidos para cubrir auth (reutilizables) ----
   [hallazgo de la propagación a seguridad: el kit tenía error de campo en
   línea, pero faltaban alerta a nivel de formulario y botón en carga.] */
.form-alert { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.form-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.form-alert.is-error { background: var(--danger-soft); color: var(--danger); }
.form-alert.is-success { background: var(--ok-soft); color: var(--ok); }
.form-alert.is-info { background: var(--info-soft); color: var(--info); }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border: 2px solid color-mix(in srgb, var(--brand-accent-ink) 45%, transparent); border-top-color: var(--brand-accent-ink); border-radius: 50%; animation: btn-spin .6s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation: none; } }

/* check / radio */
.check, .radio { display: inline-flex; align-items: flex-start; gap: var(--space-2); cursor: pointer; font-size: var(--fs-sm); }
.check input, .radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box, .radio .dot { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; transition: all var(--dur); margin-top: 1px; }
.check .box { border-radius: 6px; }
.radio .dot { border-radius: 50%; }
.check .box svg { width: 13px; height: 13px; color: var(--brand-accent-ink); opacity: 0; }
.check input:checked + .box { background: var(--brand-accent); border-color: var(--brand-accent); }
.check input:checked + .box svg { opacity: 1; }
.radio .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-accent); transform: scale(0); transition: transform var(--dur) var(--ease); }
.radio input:checked + .dot { border-color: var(--brand-accent); }
.radio input:checked + .dot::after { transform: scale(1); }
.check input:focus-visible + .box, .radio input:focus-visible + .dot { box-shadow: var(--shadow-focus); }

/* stepper de cantidad */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 38px; height: 40px; display: grid; place-items: center; color: var(--ink-2); transition: background var(--dur); }
.qty button:hover { background: var(--surface-2); color: var(--ink); }
.qty button svg { width: 16px; height: 16px; }
.qty .qty-val { min-width: 38px; text-align: center; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }

/* ============================================================
   PRIMITIVA · BADGES DE ESTADO
   Robustez white-label: SIEMPRE ícono + label. Nunca solo color.
   Independiente del acento de marca.
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 9px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; flex: none; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--neutral { background: var(--neutral-soft); color: var(--neutral); }

/* chip / tag genérico */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink-2); background: var(--bg); }

/* ============================================================
   PRIMITIVA · CARD DE PRODUCTO  ("Desde $X" + CTA, sin precio por variante)
   ============================================================ */
.product-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); transition: transform var(--dur) var(--ease), box-shadow var(--dur); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .pc-media { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-flag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-card .pc-flag .badge { background: var(--brand-accent); color: var(--brand-accent-ink); }
.product-card .pc-body { padding: var(--space-4); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .pc-cat { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--ink-3); }
.product-card .pc-name { font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: -.01em; line-height: var(--lh-snug); }
.product-card .pc-foot { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-2); }
.product-card .pc-price { line-height: 1.2; }
.product-card .pc-price .from { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.product-card .pc-price .amt { font-size: var(--fs-lg); font-weight: var(--fw-black); letter-spacing: -.02em; color: var(--ink); }
.product-card .pc-swatches { display: flex; gap: 4px; }
.product-card .pc-swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }

/* ============================================================
   PRIMITIVA · CARD DE CATEGORÍA
   ============================================================ */
.cat-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); display: flex; align-items: flex-end; isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgba(20,18,16,.72)); }
.cat-card .cc-body { padding: var(--space-4); color: #fff; display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--space-2); }
.cat-card .cc-name { font-size: var(--fs-md); font-weight: var(--fw-black); letter-spacing: -.01em; }
.cat-card .cc-arrow { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; flex: none; transition: background var(--dur); }
.cat-card:hover .cc-arrow { background: var(--brand-accent); }
.cat-card .cc-arrow svg { width: 16px; height: 16px; }

/* card genérica (beneficios, pasos) */
.card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); padding: var(--space-5); }
.card-ico { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--brand-accent-soft); color: var(--brand-accent); display: grid; place-items: center; margin-bottom: var(--space-4); }
.card-ico svg { width: 23px; height: 23px; }

/* ============================================================
   PRIMITIVA · HEADER (announcement bar + nav + buscador + carrito)
   ============================================================ */
.announce { background: var(--panel); color: var(--panel-ink); height: var(--announce-h); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em; }
.announce .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent); margin: 0 10px; }

.shop-header { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.shop-header .header-row { display: flex; align-items: center; gap: var(--space-4); height: var(--nav-h); }

.brand-lockup { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-black); font-size: var(--fs-lg); letter-spacing: var(--ls-tight); }
.brand-mark { width: 32px; height: 32px; color: var(--brand-accent); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark [data-mark] { display: none; }
[data-brand="fabricante"] .brand-mark [data-mark="fabricante"],
:root .brand-mark [data-mark="fabricante"] { display: block; }
[data-brand="selva"] .brand-mark [data-mark="fabricante"] { display: none; }
[data-brand="selva"] .brand-mark [data-mark="selva"] { display: block; }

.shop-nav { display: flex; align-items: center; gap: 2px; margin-left: var(--space-4); }
.shop-nav a { padding: 8px 13px; border-radius: var(--radius-sm); font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--ink-2); transition: all var(--dur); }
.shop-nav a:hover, .shop-nav a.is-active { color: var(--ink); background: var(--surface); }

.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.header-search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); transition: all var(--dur); }
.header-search input:focus { outline: none; background: var(--bg); border-color: var(--brand-accent); box-shadow: var(--shadow-focus); }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); }
.header-actions { display: flex; align-items: center; gap: 2px; }
.cart-btn .count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--brand-accent); color: var(--brand-accent-ink); font-family: var(--font-mono); font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.hamburger { display: none; }

/* ============================================================
   PRIMITIVA · DRAWER DE CARRITO
   ============================================================ */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(20,18,16,.5); opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur); }
.scrim.is-open { opacity: 1; visibility: visible; }

.cart-drawer { position: fixed; top: 0; right: 0; z-index: 100; height: 100dvh; width: min(420px, 100vw); background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.cart-drawer.is-open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5); border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: var(--fs-lg); }
.cart-free { margin: var(--space-4) var(--space-5); padding: var(--space-3) var(--space-4); background: var(--surface); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.cart-free .bar { height: 6px; border-radius: var(--radius-pill); background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.cart-free .bar i { display: block; height: 100%; width: 62%; background: var(--brand-accent); border-radius: inherit; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 var(--space-5); }
.cart-line { display: flex; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.cart-line .cl-media { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-2); flex: none; overflow: hidden; }
.cart-line .cl-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .cl-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-line .cl-name { font-weight: var(--fw-bold); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.cart-line .cl-var { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-3); }
.cart-line .cl-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-line .cl-price { font-weight: var(--fw-black); }
.cart-foot { padding: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-3); }
.cart-foot .row { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-2); }
.cart-foot .row.total { font-size: var(--fs-lg); font-weight: var(--fw-black); color: var(--ink); }

/* ============================================================
   PRIMITIVA · FOOTER
   ============================================================ */
.shop-footer { background: var(--panel); color: var(--panel-ink); padding-block: clamp(var(--space-7), 6vw, var(--space-8)) var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(var(--space-5), 4vw, var(--space-7)); }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-black); font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.shop-footer .blurb { color: var(--panel-ink-2); font-size: var(--fs-sm); max-width: 32ch; }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--panel-line); display: grid; place-items: center; color: var(--panel-ink-2); transition: all var(--dur); }
.footer-social a:hover { color: #fff; background: var(--brand-accent); border-color: var(--brand-accent); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--panel-ink-2); margin-bottom: var(--space-4); font-weight: 600; }
.footer-col a { display: block; color: var(--panel-ink-2); font-size: var(--fs-sm); padding: 5px 0; transition: color var(--dur); }
.footer-col a:hover { color: var(--panel-ink); }
.footer-bottom { margin-top: clamp(var(--space-6), 5vw, var(--space-7)); padding-top: var(--space-5); border-top: 1px solid var(--panel-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.footer-bottom .legal { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--panel-ink-2); }
/* crédito de fabricante: texto, SIN redirección en pagina/landing */
.maker-credit { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--panel-ink-2); }
.maker-credit strong { color: var(--panel-ink); font-weight: 600; }

/* ============================================================================
   SECCIONES DE LA HOME `pagina`  (orden del inventario funcional)
   ============================================================================ */

/* ---- HERO — FUNDACIONAL (Opción B · unidad contenida / card) ----
   Default de las superficies TIENDA. Texto + imagen en UN card; en <860px
   la imagen pasa a banda superior y el plato de texto solapa hacia arriba:
   leen como una sola unidad, no dos secciones apiladas. */
.hero { padding-block: clamp(var(--space-6), 5vw, var(--space-8)); }
.hero-card { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--brand-accent-soft); border: 1px solid var(--brand-accent-line); border-radius: var(--radius-lg); overflow: hidden; }
.hero-card .hc-copy { padding: clamp(var(--space-5), 4vw, var(--space-7)); align-self: center; }
.hero-card .hc-copy .eyebrow { margin-bottom: var(--space-4); }
.hero-card h1 { font-family: var(--brand-font-display); font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl)); line-height: 1.0; margin-bottom: var(--space-4); }
.hero-card h1 em { font-style: normal; color: var(--brand-accent); }
.hero-card .sub { font-size: var(--fs-md); color: var(--ink-2); max-width: 42ch; margin-bottom: var(--space-5); }
.hero-card .hc-media { position: relative; min-height: 360px; }
.hero-card .hc-media .img-ph, .hero-card .hc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card .hc-media .hv-tag { position: absolute; left: var(--space-4); bottom: var(--space-4); z-index: 2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- HERO — VARIANTE (Opción A · inmersivo full-bleed) ----
   Reusable. Texto superpuesto sobre imagen a sangre + scrim. Usar SOLO
   cuando hay fotografía fuerte garantizada (landings de campaña, lifestyle).
   El default es .hero-card; esta es la alternativa. */
.hero--immersive { position: relative; isolation: isolate; min-height: 440px; display: flex; align-items: center; color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.hero--immersive .hi-img { position: absolute; inset: 0; z-index: -2; }
.hero--immersive .hi-img img { width: 100%; height: 100%; object-fit: cover; }
.hero--immersive::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,10,8,.82) 0%, rgba(12,10,8,.55) 42%, rgba(12,10,8,.12) 100%); }
.hero--immersive .hi-inner { padding: clamp(var(--space-5), 5vw, var(--space-8)); max-width: 60%; }
.hero--immersive .eyebrow { color: #fff; }
.hero--immersive h1, .hero--immersive h2 { font-family: var(--brand-font-display); color: #fff; font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl)); line-height: 1.0; margin: var(--space-3) 0 var(--space-4); }
.hero--immersive h1 em, .hero--immersive h2 em { font-style: normal; color: color-mix(in srgb, var(--brand-accent) 64%, #fff); }
.hero--immersive .sub { color: rgba(255,255,255,.86); font-size: var(--fs-md); max-width: 40ch; margin-bottom: var(--space-5); }

/* image-slot placeholder (cuando no hay foto real) */
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; gap: 10px; color: var(--ink-3); background:
  repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); }
.img-ph svg { width: 38px; height: 38px; opacity: .5; }
.img-ph span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em; }

/* ---- TRUST STRIP ---- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-5); }
.trust-item { display: flex; align-items: center; gap: var(--space-3); }
.trust-item .ti-ico { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-accent); flex: none; }
.trust-item .ti-ico svg { width: 19px; height: 19px; }
.trust-item .ti-text strong { display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.trust-item .ti-text span { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---- CATEGORY GRID ---- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }

/* ---- BENEFITS ---- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.benefit h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: 6px; }
.benefit p { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-normal); }

/* ---- FEATURED PRODUCT (Desde $X + CTA a la tienda; sin precio por variante) ---- */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-6), 5vw, var(--space-8)); align-items: center; }
.featured-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); box-shadow: var(--shadow-md); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy .eyebrow { margin-bottom: var(--space-4); }
.featured-copy h2 { font-family: var(--brand-font-display); font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl)); margin-bottom: var(--space-3); }
.featured-copy p { color: var(--ink-2); font-size: var(--fs-md); margin-bottom: var(--space-5); max-width: 42ch; }
.featured-price { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-5); }
.featured-price .from { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--ink-3); }
.featured-price .amt { font-size: var(--fs-2xl); font-weight: var(--fw-black); letter-spacing: -.02em; color: var(--ink); }
.featured-swatches { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.featured-swatches .lbl { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--ink-3); }
.featured-swatches i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-block; }

/* ---- HOW TO BUY (pasos) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: step; }
.step { position: relative; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.step .step-n { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; color: var(--brand-accent); letter-spacing: var(--ls-mono); }
.step h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin: var(--space-3) 0 6px; }
.step p { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-1); text-align: left; font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: -.01em; transition: color var(--dur); }
.faq-q:hover { color: var(--brand-accent); }
.faq-ico { flex: none; width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: all var(--dur); }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-ico::before { width: 12px; height: 2px; }
.faq-ico::after { width: 2px; height: 12px; transition: transform var(--dur) var(--ease); }
.faq-item.is-open .faq-q { color: var(--brand-accent); }
.faq-item.is-open .faq-ico { background: var(--brand-accent); color: var(--brand-accent-ink); border-color: var(--brand-accent); }
.faq-item.is-open .faq-ico::after { transform: rotate(90deg) scaleX(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease); }
.faq-a-inner { padding: 0 var(--space-1) var(--space-5); color: var(--ink-2); max-width: 64ch; }

/* ============================================================
   SWITCH DE MARCA (demo · prueba el swap de la capa marca en vivo)
   ============================================================ */
.brand-switch { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 6px; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-md); }
.brand-switch .bs-label { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 0 10px; }
.brand-switch button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink-2); transition: all var(--dur); }
.brand-switch button .sw { width: 11px; height: 11px; border-radius: 50%; }
.brand-switch button[data-brand-btn="fabricante"] .sw { background: #D84332; }
.brand-switch button[data-brand-btn="selva"] .sw { background: #117A5E; }
.brand-switch button.on { background: var(--ink); color: var(--bg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .cat-grid, .benefits-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .shop-nav, .header-search { display: none; }
  .hamburger { display: grid; }
  /* sin .header-search (que tenía margin-left:auto), anclar el grupo de
     controles al borde derecho y repartir el espacio logo↔controles */
  .shop-header .header-row { justify-content: space-between; }
  .header-actions { margin-left: auto; gap: var(--space-1); }
  /* hero card (B): imagen banda arriba + texto solapando hacia arriba (unidad) */
  .hero-card { grid-template-columns: 1fr; }
  .hero-card .hc-media { min-height: 0; aspect-ratio: 16/10; order: -1; }
  .hero-card .hc-copy { margin-top: -28px; background: var(--brand-accent-soft); border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; z-index: 2; padding-top: var(--space-5); }
  .hero-card .hero-cta .btn { flex: 1; }
  /* hero variante inmersiva (A): scrim baja, texto al fondo */
  .hero--immersive { min-height: 480px; align-items: flex-end; }
  .hero--immersive::after { background: linear-gradient(0deg, rgba(12,10,8,.88) 0%, rgba(12,10,8,.5) 45%, rgba(12,10,8,.15) 100%); }
  .hero--immersive .hi-inner { max-width: 100%; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .trust-row { gap: var(--space-5); }
  .trust-item { width: calc(50% - var(--space-5)); }
}
@media (max-width: 540px) {
  .cat-grid, .benefits-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-item { width: 100%; }
  .brand-switch .bs-label { display: none; }
}

/* menú móvil */
.mobile-nav { position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(320px, 86vw); background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); padding: var(--space-5); display: flex; flex-direction: column; gap: 4px; }
.mobile-nav.is-open { transform: none; }
.mobile-nav .mn-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.mobile-nav a { padding: 14px var(--space-2); font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
