/* ═══════════════════════════════════════════════════════════════
   PATAS Y BIGOTES — estilos (versión minimalista)
   DECISION (dirección visual):
   - Blanco y aire. Aguamarina (azulada) y morado como acentos puntuales.
   - Líneas finas de 1px, sin sombras duras ni bloques de color grandes.
   - Bricolage Grotesque (títulos) + Figtree (texto), autoalojadas.
   - Íconos Phosphor (sprite /img/icons.svg), sin emojis.
   - Identidad: el gato del logo, que sale a pasear por la página (js/gato.js).
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --white: #FFFFFF;
  /* DECISION (Identidad Visual LUNA, 2026-11-29): turquesa profundo + beige cálido + blanco. Sin celeste ni morado.
     Son tonos APROXIMADOS hechos por Nyxel, no los códigos oficiales de LUNA (el PDF prohíbe declararlos oficiales):
     cuando LUNA mande los suyos, se cambian solo aquí. */
  --turq: #0E6B70;
  --turq-deep: #0A5256;
  --turq-2: #13858A;
  --turq-tint: #E6F1F0;
  --beige: #F2EADF;
  --ink: #142326;
  --ink-2: #5B6466;
  --line: #E7E2DA;
  --soft: #F8F4EE;

  --r-lg: 24px;
  --r: 16px;
  --r-sm: 12px;

  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .45em; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-stretch: 94%; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
a { color: var(--turq); text-underline-offset: 3px; }
code { font-size: .88em; background: var(--soft); padding: .1em .4em; border-radius: 6px; }
::selection { background: var(--turq-2); color: #fff; }
:focus-visible { outline: 2px solid var(--turq-2); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.accent { color: var(--turq); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--body); padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--turq); color: #fff; }
.btn--primary:hover { background: var(--turq-deep); }
.btn--primary:active { transform: scale(.98); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--soft); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--lg { padding: 16px 26px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--turq-2); padding-bottom: 2px; }
.link-arrow:hover { color: var(--turq); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--turq); font: 600 .95rem var(--body); cursor: pointer; margin-bottom: 18px; }

/* ── Barra superior + header ── */
.topbar { border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; text-align: center; }
.topbar p { margin: 0; padding: 7px 0; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__logo { height: 44px; width: auto; }
@media (max-width: 639px) { .brand__logo { height: 32px; } }
.header__buy { padding-inline: 16px; }
@media (max-width: 359px) { .header__buy { display: none; } }
.nav { display: none; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s; }
.cart-btn:hover { border-color: var(--ink); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--turq-2); color: #fff; font: 700 .72rem/20px var(--body); text-align: center; }
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
.hide-mobile { display: none; }

/* ── El gato (dibujo: js/gato-rig.js · comportamiento: js/gato.js) ──
   DECISION: tamaño FIJO en px por unidad del gato (1 px escritorio, 0.9 tablet, 0.8 móvil).
   El viewBox del logo mide 24 × 35.5 unidades; el gato que pasea usa la misma escala (la lee de aquí). */
.brand__cat { width: 24px; height: 35.5px; flex: none; overflow: visible; }
.cat__body { fill: var(--cat-ink, #17132B); }
.cat__far { fill: var(--cat-far, #2A2540); }
.cat-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 45; pointer-events: none; }
.cat-sprite { position: absolute; left: 0; top: 0; overflow: visible; transform-origin: 0 0; opacity: 0; will-change: transform; pointer-events: none; }
.cat-layer.is-on .cat-sprite { opacity: 1; }
.cat-layer.is-on .cat-sprite path { pointer-events: visiblePainted; cursor: pointer; }
.cat-yarn { position: absolute; left: 0; top: 0; overflow: visible; opacity: 0; transition: opacity .2s; will-change: transform; }
.cat-yarn.is-on { opacity: 1; }
.cat-yarn__ball { transform-box: fill-box; transform-origin: center; }
.cat-yarn__ball circle { fill: var(--turq); }
.cat-yarn__ball path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .45; stroke-linecap: round; }
@media (max-width: 1023px) { .brand__cat { width: 21.6px; height: 31.95px; } }
@media (max-width: 639px) { .brand__cat { width: 19.2px; height: 28.4px; } }

/* ── Hero ── */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--turq); margin-bottom: 52px; }
.kicker svg { width: 18px; height: 18px; }
.hero__title { font-size: clamp(3rem, 7.2vw, 5.6rem); font-stretch: 90%; line-height: .95; letter-spacing: -.03em; margin-bottom: .4em; }
.hero__title-sub { display: block; margin-top: .35em; font-size: .4em; line-height: 1.1; letter-spacing: -.015em; color: var(--ink-2); font-weight: 600; }
.scribble { position: relative; display: inline-block; color: var(--turq); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.16rem); color: var(--ink-2); max-width: 32em; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 30px 0 38px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .93rem; }
.facts svg { width: 20px; height: 20px; color: var(--turq-2); }
.hero__media { position: relative; }

/* ── Espacios para fotos: se reemplazan solos cuando la imagen existe ── */
.ph { position: relative; overflow: hidden; background: var(--soft); border-radius: var(--r); isolation: isolate; }
.ph::before { content: ""; position: absolute; inset: 0; margin: auto; width: 26%; aspect-ratio: 1; background: var(--ink); opacity: .06; -webkit-mask: url("/img/cat.svg") center / contain no-repeat; mask: url("/img/cat.svg") center / contain no-repeat; z-index: -1; }
html:not(.is-dev) .ph--missing, html:not(.is-dev) .texture:has(.ph--missing) { display: none; }
html:not(.is-dev) .ph::after { display: none; }
.ph::after { content: "Foto · " attr(data-label); position: absolute; left: 14px; bottom: 12px; font: 500 .72rem var(--body); color: var(--ink-2); background: rgba(255, 255, 255, .9); padding: 4px 9px; border-radius: 6px; }
.ph.has-img::before, .ph.has-img::after { display: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:not(.has-img) img { opacity: 0; }
/* Fotos de producto: vienen con fondo blanco puro (procesadas con sharp); "multiply" hace que ese blanco
   tome el tinte del marco, así todas las bolsas se ven sobre el mismo fondo. */
.ph--product img { object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.ph--arch.ph--product img { padding: 9% 5% 3%; }
.cart-item .ph--product img { padding: 4%; }
.ph--arch { aspect-ratio: 5 / 6; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--beige); }
.ph--arch::after { left: auto; right: 16px; }

/* ── Secciones ── */
.section { padding: clamp(80px, 11vw, 144px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--tint { background: var(--soft); }
.section--beige { background: var(--beige); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head p { font-size: 1.08rem; }
.big-p { font-size: clamp(1.04rem, 1.3vw, 1.14rem); color: var(--ink-2); max-width: 36em; }

/* Qué es */
.why { display: grid; gap: 48px; align-items: start; }
.note { display: flex; gap: 10px; align-items: center; padding: 14px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-weight: 500; }
.note svg { width: 20px; height: 20px; color: var(--turq); }
.texture { margin: 0; }
.texture .ph { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.texture figcaption { padding: 16px 2px 0; }
.texture figcaption strong { font: 600 1rem var(--body); }
.texture__tags { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.texture__tags li { font-size: .84rem; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); }

/* Beneficios */
.benefits { display: grid; gap: 40px; }
.benefits__head p { font-size: 1.08rem; margin-bottom: 26px; }
.benefits__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.benefit { display: grid; grid-template-columns: 34px 40px 1fr; gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.benefit__n { font: 600 .85rem var(--display); color: var(--ink-2); padding-top: 3px; }
.benefit__icon { width: 34px; height: 34px; color: var(--turq); }
.benefit h3 { margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--ink-2); }

/* Variedades */
[data-v="moca-coffee"] { --v: #8A6A4E; --v-tint: #F5EFE8; }
[data-v="manzana-verde"] { --v: #8DB23A; --v-tint: #F4F8E6; }
[data-v="manzanilla"] { --v: #C4A955; --v-tint: #FAF6E8; }
[data-v="sandia"] { --v: #E07A98; --v-tint: #FCEFF3; }
[data-v="arandano"] { --v: #9A7BB0; --v-tint: #F4EFF7; }
[data-v="carbon-activado"] { --v: #6E6B68; --v-tint: #F1F0EF; }
.variants { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.variant { display: grid; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .25s var(--ease); }
.variant:hover { border-color: var(--ink); transform: translateY(-3px); }
.variant .ph { border-radius: 0; aspect-ratio: 5 / 4; background: var(--v-tint); }
.variant .ph img { transition: transform .5s var(--ease); }
.variant:hover .ph img { transform: scale(1.03); }
.variant__body { padding: 16px 20px 20px; }
.variant__kind { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
.variant__kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--v); }
.variant h3 { font-size: 1.35rem; margin: 0 0 4px; }
.variant__price { margin: 0; color: var(--ink-2); font-size: .95rem; }
.variant__price b { color: var(--ink); font-weight: 600; }
.variant__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: .95rem; color: var(--turq); }
.variant__cta svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.variant:hover .variant__cta svg { transform: translateX(3px); }
.carbon { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 28px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.carbon__icon { width: 30px; height: 30px; color: var(--turq); }
.carbon h3 { margin-bottom: 6px; }
.carbon p { margin: 0; color: var(--ink-2); max-width: 62em; }

/* Comprar */
.shop__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: clamp(32px, 4vw, 48px); }
.shop__head h2 { margin: 0; }
.shop__pay { display: inline-flex; gap: 8px; align-items: center; margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 30em; }
.shop__pay svg { width: 18px; height: 18px; color: var(--turq); }
.buy { display: grid; gap: 28px; align-items: start; }
.buy__media { position: relative; }
.ph--buy { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--v-tint, var(--soft)); transition: background .3s; }
.buy__badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 6px 13px; font-weight: 600; font-size: .88rem; }
.buy__badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--v, var(--turq-2)); }
.buy__badge:empty { display: none; }
.buy__photo-note { position: absolute; right: 16px; bottom: 14px; margin: 0; font-size: .78rem; color: var(--ink-2); background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 99px; }
.buy__brand { font: 700 .78rem var(--body); letter-spacing: .32em; color: var(--turq); margin: 0 0 4px; }
.buy__title { font-size: clamp(2.2rem, 4vw, 3rem); font-stretch: 92%; margin: 0; }
.buy__variant { color: var(--ink-2); margin: 4px 0 22px; min-height: 1.6em; }
.opt { border: 0; padding: 0; margin: 0 0 22px; }
.opt legend { font-weight: 600; font-size: .9rem; margin-bottom: 10px; padding: 0; }
.opt__variants { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .opt__sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 500; font-size: .94rem; background: #fff; transition: border-color .15s, background .15s; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--v); }
.chip:hover { border-color: var(--ink-2); }
.opt input:checked + .chip { border-color: var(--ink); background: var(--v-tint); font-weight: 600; }
.opt input:focus-visible + .chip, .opt input:focus-visible + .size { outline: 2px solid var(--turq-2); outline-offset: 2px; }
.opt__or { flex-basis: 100%; font-size: .8rem; color: var(--ink-2); margin: 4px 0 0; }
.size { display: grid; gap: 1px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.size b { font: 700 1.1rem var(--display); }
.size span { font-size: .85rem; color: var(--ink-2); }
.size:hover { border-color: var(--ink-2); }
.opt input:checked + .size { border-color: var(--ink); background: var(--soft); }
.opt input:disabled + .size { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.buy__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy__price { font: 700 clamp(2.1rem, 3.6vw, 2.6rem)/1 var(--display); letter-spacing: -.02em; margin: 0; }
.buy__note { margin: 0; font-size: .85rem; color: var(--ink-2); }
.buy__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.buy__actions .btn { flex: 1; min-width: 180px; }
.buy__yield { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: .88rem; color: var(--ink-2); }
.buy__yield svg { width: 22px; height: 22px; color: var(--turq); }
.buy__yield strong { color: var(--ink); font-weight: 600; }
.product__soldout { font-weight: 600; color: var(--turq-deep); margin: 0; }
.qty { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.qty button { width: 40px; height: 48px; border: 0; background: transparent; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.qty button svg { width: 14px; height: 14px; }
.qty button:hover { background: var(--soft); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }

/* Tabla de precios */
.prices { margin-top: 56px; }
.prices h3 { font-size: 1.3rem; }
.prices__scroll { overflow-x: auto; }
.prices table { width: 100%; max-width: 720px; border-collapse: collapse; }
.prices thead th small { display: block; font-weight: 400; font-size: .75rem; color: var(--ink-2); }
.prices th, .prices td { padding: 14px 12px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.prices thead th { font: 600 .85rem var(--body); color: var(--ink-2); border-bottom-color: var(--ink); }
.prices thead th:first-child, .prices tbody th { text-align: left; padding-left: 0; }
.prices tbody th { font-weight: 600; }
.prices tbody th small { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.prices__foot { font-size: .85rem; margin-top: 12px; }
.preview-note { margin-top: 18px; color: var(--ink-2); font-size: .88rem; }

/* Cómo se usa */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 28px; }
.step { padding-top: 18px; border-top: 1px solid var(--ink); }
.step__n { display: block; font: 600 .85rem var(--display); color: var(--turq); margin-bottom: 8px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); }
.tips { margin: 0 0 48px; }
.tips h3 { font-size: 1rem; margin-bottom: 12px; }
.tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 24px; }
.tips li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.tips svg { width: 18px; height: 18px; color: var(--turq-2); }
.gallery { display: grid; }
.ph--g1 { aspect-ratio: 3 / 2; border-radius: var(--r-lg); }

/* Mayoristas */
.ship { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: var(--r-lg); background: var(--beige); }
.ship h2 { margin-bottom: .3em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ship p { margin: 0; color: var(--ink-2); max-width: 36em; }
.ship .btn { justify-self: start; }
.ship .btn svg { width: 20px; height: 20px; color: #1FA855; }

/* Preguntas */
.faq-wrap { display: grid; gap: 40px; }
.faq-wrap__head p { font-size: 1.05rem; margin-bottom: 24px; }
.faq-wrap__head .btn svg { width: 20px; height: 20px; color: #1FA855; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font: 600 1.08rem/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--ink-2); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--turq); }
.faq details p { color: var(--ink-2); padding: 0 40px 22px 0; margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 104px) 0 28px; overflow: hidden; }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 48px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__cta h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.footer__grid { display: grid; gap: 28px; margin-bottom: 48px; font-size: .95rem; color: var(--ink-2); }
.footer h3 { color: var(--ink); font: 600 .9rem var(--body); margin-bottom: 8px; }
.footer a:not(.btn) { color: var(--ink); }
.footer__logo { width: clamp(170px, 18vw, 230px); height: auto; margin: 0 0 32px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; font-size: .88rem; }
.footer__legal a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.footer__legal a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--ink-2); padding-bottom: 60px; }

/* ── Carrito (drawer) ── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(23, 19, 43, .35); z-index: 60; opacity: 0; transition: opacity .3s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 440px); background: #fff; z-index: 61; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -24px 0 60px -30px rgba(23, 19, 43, .35); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.45rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .ph { aspect-ratio: 1; border-radius: 12px; background: var(--v-tint, var(--soft)); }
.cart-item .ph::after { display: none; }
.cart-item .ph::before { width: 50%; }
.cart-item__name { font-weight: 600; line-height: 1.3; margin: 0; }
.cart-item__price { color: var(--ink-2); font-size: .88rem; margin: 2px 0 8px; }
.cart-item .qty button { width: 32px; height: 34px; }
.cart-item__total { font-weight: 600; text-align: right; }
.cart-item__remove { display: block; margin: 6px 0 0 auto; background: none; border: 0; color: var(--ink-2); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; padding: 56px 0; color: var(--ink-2); }
.cart-empty svg { width: 56px; height: 56px; color: var(--turq); margin-bottom: 10px; }
.totals { margin: 0 0 16px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; }
.totals__total { font: 700 1.25rem var(--display); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals__total dt { color: var(--ink); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; color: var(--ink-2); margin: 12px 0 0; }
.secure svg { width: 14px; height: 14px; }

/* Checkout */
.checkout fieldset { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.checkout legend { font: 700 1.1rem var(--display); margin-bottom: 10px; }
.checkout label { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.checkout input, .checkout select, .checkout textarea { font: 400 1rem var(--body); color: var(--ink); padding: 12px 14px; border: 1px solid #D6D4DE; border-radius: var(--r-sm); background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: 0; border-color: var(--turq); box-shadow: 0 0 0 3px var(--turq-tint); }
.checkout .is-invalid { border-color: #D6336C; background: #FFF7F9; }
.checkout .row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.checkout .row__s { min-width: 0; }
.checkout .check { display: flex; gap: 10px; align-items: flex-start; }
.checkout .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--turq); flex: none; }
.checkout .check a { color: var(--turq); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #C2255C; font-weight: 600; font-size: .9rem; min-height: 1.2em; margin: 10px 0 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 10px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-weight: 500; font-size: .95rem; z-index: 80; opacity: 0; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 40px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Página de gracias (estado del pedido) */
.thanks { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 48px 0; }
.thanks__card { width: min(100%, 520px); text-align: center; }
.thanks__badge { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.thanks__badge > * { grid-area: 1 / 1; display: none; }
.thanks__badge svg { width: 34px; height: 34px; }
.thanks__spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--turq); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[data-state="loading"] .thanks__spinner, [data-state="pending"] .thanks__spinner { display: block; }
[data-state="pending"] .thanks__badge { background: var(--turq-tint); }
[data-state="ok"] .thanks__badge { background: #E7F6EE; color: #1F8A57; }
[data-state="ok"] .thanks__ok { display: block; }
[data-state="fail"] .thanks__badge { background: #FDECEF; color: #C2334D; }
[data-state="fail"] .thanks__fail { display: block; }
.thanks__card h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-stretch: 92%; margin-bottom: 10px; }
.thanks__text { color: var(--ink-2); margin: 0 auto 26px; max-width: 30em; }
.thanks__order { text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 24px; }
.thanks__ref { font-size: .9rem; color: var(--ink-2); margin: 0 0 10px; }
.thanks__ref strong { color: var(--ink); font-variant-numeric: tabular-nums; word-break: break-all; }
.thanks__items { list-style: none; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.thanks__items li { display: flex; justify-content: space-between; gap: 12px; }
.thanks__totals { margin: 0; display: grid; gap: 4px; }
.thanks__totals div { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .95rem; }
.thanks__totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.thanks__totals .thanks__total { color: var(--ink); font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .thanks__spinner { animation-duration: 3s; } }

/* ── Aparición al hacer scroll ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive (mobile-first) ── */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .tips ul { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .hide-mobile { display: inline-flex; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .why { grid-template-columns: 1.15fr .85fr; gap: 80px; }
  .benefits { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .benefits__head { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
  .buy { grid-template-columns: 1fr 1fr; gap: 56px; }
  .buy__media { position: sticky; top: calc(var(--header-h) + 24px); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .ship { grid-template-columns: 1fr auto; }
  .ship .btn { justify-self: end; }
  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .faq-wrap__head { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
}
@media (max-width: 640px) {
  .topbar__extra { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ── WhatsApp flotante ── */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 28px -12px rgba(23, 19, 43, .5); transition: transform .25s var(--ease); }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:focus-visible { outline-offset: 4px; }
body:has(.drawer.is-open) .wa-float { display: none; }
@media (max-width: 639px) { .toast { bottom: 80px; } .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; } }

/* ── Páginas de texto (legales) ── */
.legal { padding: clamp(40px, 6vw, 72px) 0 80px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-stretch: 92%; margin-bottom: 8px; }
.legal__date { color: var(--ink-2); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; font-stretch: 100%; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal p, .legal li { color: #3B3852; }
.legal ul, .legal ol { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal__box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 0 0 28px; background: var(--soft); }
.legal__box p { margin: 0; }
.legal .legal__toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; margin: 0 0 8px; font-size: .9rem; }
.todo { background: #FFF3BF; color: var(--ink); padding: 0 4px; border-radius: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 40px; }

/* ── 404 ── */
.notfound { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound img { width: 120px; margin: 0 auto 18px; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-stretch: 92%; }
.notfound p { color: var(--ink-2); max-width: 30em; margin: 0 auto 24px; }
.mini-footer { border-top: 1px solid var(--line); padding: 22px 0 36px; font-size: .85rem; color: var(--ink-2); }
.mini-footer .container { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.mini-footer a { color: var(--ink-2); }
