/* ==========================================================
   Design system v2 — warm sand / ink / sunset
   Referencias: Sunski, Huckberry, Knockaround, Warby Parker
   ========================================================== */
:root {
  --sand: #f6f1e7;
  --sand-2: #efe8da;
  --paper: #fffdf9;
  --ink: #10100e;
  --ink-2: #2a2a26;
  --muted: #6f6a5f;
  --line: #e2dacb;
  --sun: #f2542d;
  --sun-ink: #fffdf9;
  --pine: #1f3a34;
  --lens: #14161a;
  --radius: 18px;
  --max: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
/* [hidden] del navegador pierde contra cualquier clase con display propio
   (.landed, .card, .shop-tools…). Sin esta regla el bloque de Chile se ve
   hasta que el JS lo apaga y, con JS desactivado, se queda visible para todo
   el mundo. Ya pasó tres veces; una sola regla evita la cuarta. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay — 让画面不“塑料” */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo {
  font-weight: 800; font-size: 21px; letter-spacing: -.045em;
  text-transform: lowercase;
}
.logo span { color: var(--sun); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; letter-spacing: .01em; }
.nav a { color: var(--ink-2); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--sun); transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }
.lang { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.lang a { padding: 6px 9px; border-radius: 999px; color: var(--muted); transition: color .2s var(--ease), background .2s var(--ease); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--ink); background: transparent;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  transition: background .2s, color .2s;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-count {
  background: var(--sun); color: #fff; min-width: 19px; height: 19px;
  border-radius: 999px; display: none; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; padding: 0 6px;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 720px; height: 720px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(242,84,45,.22), rgba(242,84,45,0) 62%);
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-24px, 26px, 0) scale(1.06); }
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding-bottom: 64px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--sun);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(38px, 5.6vw, 70px); line-height: .98;
  letter-spacing: -.045em; margin: 0 0 22px; font-weight: 800;
}
/* que no quede una palabra huérfana en la última línea del titular */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.lede { font-size: 18px; color: var(--muted); max-width: 44ch; margin: 0 0 30px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price-note { font-size: 14px; color: var(--muted); }
.price-note b { color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.hero-note { margin: 26px 0 0; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.hero-note::before { content: "◆"; color: var(--sun); margin-right: 8px; font-size: 9px; vertical-align: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em;
  background: var(--ink); color: var(--paper);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16,16,14,.18); }
.btn.accent { background: var(--sun); color: #fff; }
.btn.accent:hover { box-shadow: 0 16px 34px rgba(242,84,45,.32); }
.btn.block { width: 100%; }

/* producto en hero */
.hero-art {
  position: relative; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 100% at 78% 12%, #ffd9c6 0%, #f7c4a8 26%, #efe2cf 62%, #e6dcc8 100%);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 70px rgba(31,26,18,.14);
}
.hero-art svg { width: 74%; filter: drop-shadow(0 22px 34px rgba(20,18,14,.22)); }
/* Con foto real el dibujo sobra: la imagen manda. */
.hero-art.has-photo { background: var(--paper); align-items: stretch; }
.hero-art.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art .sun-disc {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); opacity: .9; top: -12%; right: -8%;
  filter: blur(2px);
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  background: var(--ink); color: var(--sand); overflow: hidden;
  padding: 13px 0; white-space: nowrap; position: relative; z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: slide 26s linear infinite; will-change: transform; }
.marquee-track span { font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; padding-right: 44px; }
.marquee-track span::after { content: "—"; margin-left: 44px; opacity: .45; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 92px 0; position: relative; z-index: 2; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
/* scroll-margin: el menú enlaza a #cat-… y el encabezado fijo no debe taparlo. */
.group-head { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 64px 0 22px; scroll-margin-top: 92px; }
.group-head:first-of-type { margin-top: 0; }
.section h2 {
  font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.04em;
  margin: 0; font-weight: 800; line-height: 1.02;
}
.section-link { font-size: 14px; font-weight: 700; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* Un solo destacado: ficha ancha. Una tarjeta suelta con media pantalla
   vacía al lado se lee como catálogo de maqueta. */
.spot {
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit;
  box-shadow: 0 18px 44px rgba(31,26,18,.07);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.spot:hover { box-shadow: 0 26px 62px rgba(31,26,18,.13); transform: translateY(-3px); }
.spot-ph { background: #fff; display: flex; align-items: center; }
/* contain: recortar la foto parte el producto por la mitad en una columna alta */
.spot-ph img { display: block; width: 100%; height: 100%; object-fit: contain; }
.spot-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.spot-body .badge { align-self: flex-start; }
.spot-body h3 { margin: 0 0 8px; font-size: clamp(23px, 2.5vw, 31px); letter-spacing: -.03em; line-height: 1.12; }
.spot-sub { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.spot-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.spot-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.spot-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sun); font-weight: 800; }
.spot-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.spot-foot b { font-size: 26px; letter-spacing: -.02em; }

/* ---------- product card ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: block;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(31,26,18,.13); border-color: #d6cbb8; }
.ph {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fff5ec 0%, #f2e7d6 48%, #e9dcc6 100%);
  display: flex; align-items: center; justify-content: center;
}
.ph svg { width: 66%; transition: transform .5s var(--ease), filter .4s; filter: drop-shadow(0 14px 20px rgba(20,18,14,.16)); }
.ph svg .lens, .hero-art svg .lens, .gallery svg .lens, .thumb svg .lens { fill: var(--lens); transition: fill .35s var(--ease); }
.card:hover .ph svg { transform: scale(1.06) rotate(-2deg); }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: 17px; margin: 0 0 5px; letter-spacing: -.02em; font-weight: 700; }
.card .sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.price .now { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.landed { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 9px 0 0; font-size: 14.5px; }
.landed .landed-now { font-weight: 800; color: var(--pine); letter-spacing: -.01em; }
.landed .landed-clp { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.landed span + span { color: var(--muted); }
.landed-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 6px 0 20px; max-width: 46ch; }
.landed-note a { color: var(--sun); }
/* Destino neutro (cualquier país que no sea Chile): sólo la advertencia de aduana. */
.tax-line { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 10px 0 20px; max-width: 46ch; }
.tax-line a { color: var(--sun); }
/* Selector de país de destino dentro del carrito */
.region-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.region-pick select { font: inherit; font-size: 13px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; background: var(--sun); color: #fff;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- value tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.tile { padding: 34px 30px 38px; border-right: 1px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile .num { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--sun); margin-bottom: 14px; }
.tile h4 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; font-weight: 700; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- product page ---------- */
/* Ojo: .buy-grid va junto a .wrap, que ya pone el padding lateral (24px).
   Aquí solo se tocan el alto y el bajo; si se escribe el atajo `padding`
   se borra el lateral y en móvil el texto queda pegado al borde. */
.buy-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; padding-top: 52px; padding-bottom: 84px; }
.gallery {
  border-radius: 26px; overflow: hidden; position: sticky; top: 92px;
  background: radial-gradient(110% 110% at 70% 8%, #ffd9c6 0%, #f4e5d2 45%, #e8ddc9 100%);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 26px 60px rgba(31,26,18,.12);
}
.gallery svg { width: 76%; filter: drop-shadow(0 22px 34px rgba(20,18,14,.22)); }
.gallery .ph { all: unset; display: contents; }
/* Dos tarjetas en la galería ⇒ se quita el sticky (una columna fija de 1300 px
   se cortaría en pantallas bajas). */
.gallery-col { display: grid; gap: 18px; align-content: start; }
.gallery-col .gallery { position: static; }
.gallery-2 { aspect-ratio: 800 / 1066; background: #f6f1e7; }
.gallery-2 svg { width: 100%; height: 100%; filter: none; }

/* Fotos reales: fondo blanco y `contain`, para no recortar nada. Las fotos de
   proveedor suelen venir con fondo blanco y cualquier proporción; `cover`
   cortaría las patillas en las horizontales. */
.gallery.has-photo { background: #fff; aspect-ratio: 1 / 1; }
.gallery.has-photo .shot { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Miniaturas de tamaño fijo: con `1fr` dos fotos se estiraban a media pantalla. */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.shot-thumb {
  border: 2px solid transparent; border-radius: 14px; background: #fff; padding: 0;
  overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; display: block;
  width: 84px; flex: 0 0 auto;
}
.shot-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* El `display:block` de arriba gana al `[hidden]` del navegador: hay que apagarlo aquí. */
.shot-thumb[hidden] { display: none; }
.shot-thumb[aria-pressed="true"] { border-color: var(--ink); }
.ph.has-photo { background: #fff; }
.ph.has-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.buy h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; margin-bottom: 12px; }
.buy .sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.buy .price .now { font-size: 32px; }
.buy .price .was { font-size: 17px; }
/* En la ficha, el aproximado en pesos no es letra chica: el cliente chileno
   compara en pesos. Va al lado del precio y con el tipo de cambio debajo. */
.buy .price .clp { font-size: 19px; font-weight: 700; color: var(--ink-2); }
.buy .clp-rate { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.buy .clp-rate b { color: var(--ink-2); font-weight: 600; }

/* Cantidad en la ficha: el cliente elige color y cuántos antes de añadir, en
   vez de tener que abrir el carrito a subir el número. */
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.buy-row .btn { flex: 1; padding-left: 18px; padding-right: 18px; }
.qty-pick { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; flex: none; }
.qty-pick button { width: 42px; align-self: stretch; border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink); }
.qty-pick span { min-width: 22px; text-align: center; font-size: 15px; font-weight: 700; }
.multi-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
/* debajo del botón: qué pasa si algo sale mal, en una línea y con una persona al otro lado */
.buy-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); max-width: 46ch; }

.lens-row { margin: 26px 0 28px; }
.lens-row .label {
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block;
}
.swatches { display: flex; gap: 12px; align-items: center; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
  transition: transform .2s var(--ease), border-color .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.lens-name { font-size: 14px; color: var(--ink-2); margin-left: 6px; }

.features { list-style: none; padding: 0; margin: 26px 0 0; }
.features li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2); font-size: 15px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--pine);
}
.features li::after {
  content: ""; position: absolute; left: 5.5px; top: 10px; width: 6px; height: 3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.trust {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.trust a { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.trust a:hover { color: var(--ink); border-color: var(--sun); }
.buy > .trust { margin-top: 20px; padding-top: 18px; }

/* sticky buy bar */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--paper); border-top: 1.5px solid var(--ink);
  padding: 12px 24px; display: flex; align-items: center; gap: 18px;
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy .sb-name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.sticky-buy .sb-price { font-weight: 800; font-size: 17px; margin-left: auto; }
.sticky-buy .btn { padding: 12px 22px; }

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(16,16,14,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); z-index: 90;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--paper); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .3s var(--ease);
  box-shadow: -12px 0 50px rgba(0,0,0,.16);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.drawer-body { flex: 1; overflow: auto; padding: 6px 24px; }
.drawer-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }
/* Qué pasa después de pulsar «Pedir por WhatsApp»: sin esto el cliente no sabe
   si le cobran ya o si primero hay una confirmación. */
.drawer-flow { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; line-height: 1.5; }
.drawer-help { font-size: 12.5px; margin: 8px 0 0; text-align: center; color: var(--muted); }
.drawer-help a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.drawer-landed { display: none; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; margin: 0 0 16px; }
.drawer-landed .landed-now { font-weight: 800; color: var(--pine); }
.drawer-landed span + span { color: var(--muted); }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px 24px; }
.line-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item .thumb {
  width: 68px; height: 68px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(160deg, #fff5ec, #eadfcb);
  display: flex; align-items: center; justify-content: center;
}
.line-item .thumb svg { width: 78%; }
.line-item .meta { flex: 1; min-width: 0; }
.line-item .name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; margin-top: 9px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; font-size: 15px; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 16px; font-size: 17px; letter-spacing: -.02em; }
.total-row.sub { font-weight: 500; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.total-row.sub + .total-row { margin-top: 12px; }
.ship-hint { font-size: 12.5px; color: var(--sun); margin: 0 0 12px; }
.ship-line { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.ship-line b { color: var(--ink); font-weight: 700; }
.ship-line .ship-free { color: var(--pine); }
.icon-btn { background: none; border: 0; font-size: 24px; cursor: pointer; line-height: 1; color: var(--muted); }

/* ---------- preguntas frecuentes (ficha) ---------- */
.faq-sec { padding-bottom: 100px; }
.faq-title { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; margin: 0 0 20px; }
.faq-item { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 16px; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--sun); font-weight: 800; font-size: 18px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 72ch; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- newsletter ---------- */
.nl { background: var(--sand-2); border-top: 1px solid var(--line); }
.nl-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-top: 46px; padding-bottom: 46px; }
.nl-copy h3 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -.025em; margin: 0 0 6px; font-weight: 800; }
.nl-copy p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input {
  min-width: 260px; flex: 1; padding: 15px 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font-family: inherit; font-size: 15px;
}
.nl-form input::placeholder { color: var(--muted); }
.nl-form input:focus { outline: 2px solid var(--sun); outline-offset: 2px; }
.nl-form .btn { padding: 15px 26px; }
.nl-msg { width: 100%; margin: 0; font-size: 13px; min-height: 0; }
.nl-msg.ok { color: var(--pine); }
.nl-msg.err { color: var(--sun); }
.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;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(20,18,14,.26);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px rgba(20,18,14,.3); }
body.sticky-on .wa-float { bottom: 96px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1.5px solid var(--ink); padding: 44px 0 34px; margin-top: 0;
  color: var(--muted); font-size: 14px; position: relative; z-index: 2;
}
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { font-size: 22px; font-weight: 800; letter-spacing: -.045em; color: var(--ink); text-transform: lowercase; }
/* datos verificables en el pie: de dónde sale, cuánto tarda, cómo se paga */
.footer-facts { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 36ch; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-links a { color: var(--muted); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-social a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-social a:hover { color: var(--ink); }

/* ---------- historia (home) ---------- */
.story { background: var(--sand-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.story-grid h2 { font-size: clamp(26px, 3.1vw, 38px); letter-spacing: -.03em; line-height: 1.18; margin: 14px 0 0; max-width: 15ch; }
.story-body p { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; line-height: 1.72; }
.story-body .section-link { margin-top: 10px; }

/* ---------- páginas de contenido ---------- */
.prose-hero { padding: 68px 24px 0; max-width: 760px; }
.prose-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 16px; }
.prose-hero .lede { font-size: 18px; color: var(--muted); max-width: 56ch; }
.prose { max-width: 760px; margin: 0 auto; padding: 46px 24px 96px; }
.prose h2 { font-size: 21px; letter-spacing: -.02em; margin: 44px 0 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.74; margin: 0 0 16px; }
.story-quote {
  margin: 0 0 48px; padding: 6px 0 6px 24px; border-left: 3px solid var(--sun);
  font-size: clamp(19px, 2.3vw, 24px); font-weight: 700; letter-spacing: -.025em; line-height: 1.4;
}
.policy { list-style: none; padding: 0; margin: 0; }
.policy li { position: relative; padding-left: 24px; margin-bottom: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.68; }
.policy li::before { content: "—"; position: absolute; left: 0; color: var(--sun); font-weight: 700; }
/* fecha al pie de privacidad y términos: se lee pero no compite */
.policy-updated { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.info-list { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.info-list dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 0; border-top: 1px solid var(--line); }
.info-list dd { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.info-list dd a { color: var(--ink); border-bottom: 1.5px solid var(--sun); padding-bottom: 1px; }
.info-list dd a:hover { color: var(--sun); }

/* ---------- foco visible ----------
   Quien navega con teclado tiene que ver dónde está. Sin esto, tabular por la
   página es a ciegas (y en Chile hay mucha compra desde el móvil con teclado
   externo y lectores de pantalla). */
:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .cart-btn:focus-visible, .swatch:focus-visible,
.shot-thumb:focus-visible, .page-btn:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; top: -120px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
}
.skip-link:focus { top: 14px; }

/* ---------- agotado ---------- */
.badge.soldout { background: var(--muted); }
.ph { position: relative; }
.ph .badge.soldout { position: absolute; top: 12px; left: 12px; margin: 0; z-index: 2; }
.spot-ph { position: relative; }
.spot-ph .badge.soldout { position: absolute; top: 16px; left: 16px; margin: 0; }
.soldout-note { font-size: 14px; color: var(--muted); margin: 0; max-width: 46ch; }
.soldout-note a { color: var(--sun); font-weight: 700; }

/* ---------- precio en pesos ---------- */
.price .clp { font-size: 13px; color: var(--muted); }
.price-note .clp { font-size: 13px; color: var(--muted); }
.spot-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.spot-foot .clp { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.landed-clp { color: var(--muted); font-size: 12.5px; }

/* ---------- tienda: buscar / ordenar / paginar ---------- */
.shop-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 30px; }
.shop-tools[hidden] { display: none; }
.shop-tools input[type="search"] {
  flex: 1 1 240px; min-width: 0; padding: 13px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper);
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.shop-tools select {
  padding: 13px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font-family: inherit; font-size: 14px; color: var(--ink);
}
.shop-count { font-size: 13px; color: var(--muted); margin-left: auto; }
.shop-empty { color: var(--muted); padding: 40px 0; font-size: 15px; }
.shop-empty[hidden] { display: none; }
.shop-pages { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }
.shop-pages[hidden] { display: none; }
.page-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.page-btn:hover { border-color: var(--ink); }
.page-btn.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* [hidden] tiene que ganar al display de la tarjeta */
.card[hidden], .group-head[hidden] { display: none; }

/* ---------- carrito: miniatura con foto ---------- */
.line-item .thumb { overflow: hidden; }
.line-item .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qty button { width: 34px; height: 34px; }
.qty-pick button { min-width: 44px; }
.icon-btn { min-width: 44px; min-height: 44px; }
.swatch { width: 40px; height: 40px; }

/* ---------- responsive ---------- */
/* El botón de WhatsApp es «fixed»: al llegar al final de la página se monta
   encima del correo y del ©. Se le deja sitio debajo del pie (medido a 1200,
   1100, 600 y 390 px; en pantallas anchas no llega a tocarlo). */
@media (max-width: 1200px) {
  .site-footer { padding-bottom: 118px; }
}

@media (max-width: 900px) {
  .hero-grid, .buy-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 46px; }
  .hero-grid { padding-bottom: 44px; }
  .grid-3 { grid-template-columns: 1fr; }
  .spot { grid-template-columns: 1fr; }
  .spot-body { padding: 28px 24px 32px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-grid { grid-template-columns: 1fr; gap: 26px; }
  .story-grid h2 { max-width: none; }
  .prose-hero { padding-top: 44px; }
  .info-list { grid-template-columns: 1fr; }
  .info-list dt { padding-bottom: 4px; border-top: 0; }
  .info-list dd { padding-top: 0; }
  /* Cabecera a dos filas: marca / idioma / carrito, y debajo la navegación.
     Ocultarla dejaba al cliente de móvil sin forma de llegar a la tienda. */
  .header-inner { gap: 4px 10px; height: auto; flex-wrap: wrap; padding-top: 9px; }
  .logo { font-size: 19px; }
  .lang { margin-left: auto; }
  .cart-btn { padding: 8px 13px; font-size: 12px; }
  .nav {
    display: flex; order: 3; width: 100%;
    margin: 0 0 9px; gap: 17px; font-size: 13px;
    overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a::after { display: none; }
  /* Zonas táctiles: en el móvil se pulsa con el dedo, no con el ratón.
     Un enlace de 21 px de alto se falla una de cada tres veces. */
  .logo { min-height: 44px; display: inline-flex; align-items: center; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; }
  .lang a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; }
  .cart-btn { min-height: 44px; padding: 0 15px; }
  .qty button { width: 44px; height: 44px; }
  .footer-links { gap: 0; }
  .footer-links a { min-height: 44px; display: flex; align-items: center; }
  /* el correo del pie también se toca con el dedo */
  footer a[href^="mailto:"] { display: inline-block; padding: 12px 0; }
  /* La cabecera ahora es más alta: el ancla de categoría tiene que apartarse más. */
  .group-head { scroll-margin-top: 124px; }
  .section { padding: 62px 0; }
  .gallery { position: static; }
  .buy-grid { padding-top: 30px; padding-bottom: 96px; }
  .nl-inner { padding-top: 34px; padding-bottom: 34px; }
  .nl-form { width: 100%; }
  .nl-form input { min-width: 0; }
  /* buscador a todo el ancho: en el móvil dos campos en fila se salen */
  .shop-tools { flex-direction: column; align-items: stretch; }
  .shop-tools select { width: 100%; }
  .shop-count { margin-left: 0; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  body.sticky-on .wa-float { bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
