html, body { background: #F8F4F0; }

/* ── Sistema de diseño: paleta de Sara (revisión 2, 4 dic 2026) ── */
:root {
  --cream: #F8F4F0;     /* fondo crema */
  --coffee: #795653;    /* café rosado: textos y títulos, 5.87:1 sobre crema */
  --rose: #DAB8B5;      /* rosa suave: bordes */
  --dusty: #B4777D;     /* rosa empolvado: solo decorativo (3.27:1, sirve para bordes/foco, no para texto) */
  --btn: #A2656B;       /* botón: un paso más oscuro que #A3666C (4.49:1) para que el texto blanco pase AA: 4.56:1 */

  --bg: var(--cream);
  --surface: var(--cream);
  --tint: var(--cream);
  --ink: var(--coffee);
  --muted: var(--coffee);
  --dim: #916364;       /* inicio del texto que se ilumina (mezcla café/rosa): 4.60:1 sobre crema */
  --accent: var(--dusty);
  --line: var(--rose);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --sec: clamp(72px, 11vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.eyebrow {
  margin: 0 0 20px; font: 500 12px/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink);
}
/* Títulos: café a opacidad completa, siempre (el efecto de iluminación no los toca) */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--coffee); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(48px, 8vw, 92px); line-height: 1; }
h2 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; }
h3 { font-size: 26px; line-height: 1.15; }
.lead { font-size: 18px; color: var(--muted); max-width: 34ch; margin: 24px 0 0; }

/* Botones: dos variantes, mismo alto y radio en toda la página */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--coffee); box-shadow: 0 10px 22px -12px rgba(121, 86, 83, .7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 244, 240, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
/* Wordmark tipográfico (hasta tener el PNG/SVG transparente de Sara) */
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--coffee); text-decoration: none; line-height: 1; }
.logo .bow { width: 22px; height: 11px; margin-bottom: 1px; }
.logo-name { font: 600 25px/1 var(--serif); letter-spacing: .01em; }
.logo-tag { font: 500 6.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; margin: 4px 0 0 .34em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--dusty); text-underline-offset: 5px; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.menu-btn {
  display: none; width: 40px; height: 40px; place-items: center; padding: 0;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.nav-links { display: contents; }

.ph { position: relative; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* 1 · Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--sec); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .ph { aspect-ratio: 4 / 5; }
.hero .lead { font-size: 17px; } /* una gotica más pequeño que el .lead general (18px) */
/* Logo real de Sara: recorte circular; multiply hace desaparecer el fondo blanco.
   No ponerlo dentro de .reveal: opacity/transform aíslan el blend y reaparece el blanco. */
.brand-logo {
  width: clamp(240px, 24vw, 300px); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; mix-blend-mode: multiply; margin: 0 0 28px -12px;
}

/* 2 · Qué es Selah */
.about { background: var(--cream); border-block: 1px solid var(--line); }
.about .wrap { max-width: 880px; text-align: center; }
.about h2 { font-size: clamp(34px, 5vw, 56px); }
.statement { font: 500 clamp(24px, 3.1vw, 34px)/1.4 var(--serif); margin: 32px auto 0; max-width: 30ch; }
.about .sign { margin: 32px 0 0; color: var(--muted); font-size: 15px; }
.about .sign span { color: var(--ink); }

/* 3 · Productos */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.head p { margin: 0; color: var(--muted); max-width: 32ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--dusty); box-shadow: 0 18px 40px -24px rgba(121, 86, 83, .45); }
.card .ph { aspect-ratio: 4 / 3; }
.card .body { padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .meta { margin: 0; font-size: 13px; color: var(--muted); }
.card .desc { margin: 0; font-size: 15px; color: var(--muted); }
.price { margin: auto 0 0; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price strong { font: 600 22px/1 var(--sans); letter-spacing: -.01em; }
.price small { font-size: 13px; color: var(--muted); }
.badge {
  align-self: flex-start; font: 500 12px/1 var(--sans); padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--coffee); border: 1px solid var(--rose);
}
.card-wide { grid-column: 1 / -1; }
.card-wide .body { padding-bottom: 20px; }
.teaser { margin: 40px 0 0; text-align: center; color: var(--ink); }
.teaser a { text-underline-offset: 4px; }
.skip { font-size: 14px; color: var(--ink); text-underline-offset: 4px; align-self: flex-start; } /* nombre y precio antes de la galería */
.pins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.pins figure { margin: 0; }
.pins img, .set-row img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.card .ph img.whole { object-fit: contain; } /* peluche: única foto, se ve completo */
.pins img.fit { object-fit: contain; background: var(--cream); } /* recortes de Sara que no son verticales */
.pins figcaption { margin: 8px 4px 4px; font-size: 12px; line-height: 1.35; letter-spacing: .02em; color: var(--ink); }
.card .set-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; aspect-ratio: auto; background: none; }
.set-row img { border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: 12px; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); }

/* 4 · Cómo pedir */
.how { background: var(--tint); }
.how h2 { max-width: 16ch; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--dusty); color: var(--coffee); font: 600 15px/1 var(--sans); margin-bottom: 24px;
}
.steps h3 { font-size: 24px; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* 5 · Contacto */
.contact .box {
  border: 1px solid var(--line); background: var(--surface); border-radius: calc(var(--r) + 8px);
  padding: clamp(32px, 6vw, 72px); text-align: center;
}
.contact h2 { max-width: 18ch; margin: 0 auto; }
.contact .lead { margin: 20px auto 0; }
.contact .actions { justify-content: center; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }

/* 5 · Envíos */
.ship { padding-top: 0; }
.ship .wrap { max-width: 880px; text-align: center; }
.ship h2 { max-width: 18ch; margin: 0 auto; }
.ship .lead { margin: 24px auto 0; max-width: 40ch; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.legal-links a, .legal-links button { color: var(--ink); text-underline-offset: 4px; }
.linkish { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Aviso de cookies */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto;
  background: var(--cream); border: 1px solid var(--rose); border-radius: var(--r);
  box-shadow: 0 18px 40px -20px rgba(121, 86, 83, .5); padding: 16px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; line-height: 1.5; }
.consent .actions { margin-top: 12px; flex-wrap: nowrap; gap: 8px; }
.consent .actions .btn { height: 44px; width: auto; flex: 1; }
/* escritorio: en la esquina, sin tapar el título del hero */
@media (min-width: 861px) { .consent { left: auto; max-width: 380px; } }

/* Tarjeta de contacto (/tarjeta): se abre desde QR o NFC en el teléfono */
.card-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px 48px; }
.vcard { width: 100%; max-width: 420px; text-align: center; }
.vcard .brand-logo { width: clamp(200px, 60vw, 260px); margin: 0 auto 24px; }
.vcard h1 { font-size: clamp(48px, 14vw, 64px); }
.vcard .tagline { margin: 12px 0 0; font: 500 24px/1.3 var(--serif); }
.vcard .who { margin: 16px 0 0; font-size: 16px; }
.vcard .stack { display: grid; gap: 12px; margin-top: 32px; }
.vcard .btn { height: 56px; width: 100%; font-size: 18px; font-weight: 600; }
.vcard .facts { margin-top: 24px; }
.vcard .more { display: inline-block; margin-top: 24px; font-size: 15px; text-underline-offset: 4px; }

/* Páginas legales */
.legal { padding: clamp(40px, 7vw, 80px) 0 var(--sec); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; }
.legal h2 { font-size: 28px; margin-top: 40px; }
.legal p, .legal li { font-size: 16px; }
.legal .updated { margin-top: 12px; font-size: 14px; }

/* Texto que se ilumina: cada palabra parte apagada solo si JS + GSAP cargaron */
.js-fill [data-fill] .w { color: var(--dim); }

/* Reveal sutil */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal:focus-within { opacity: 1 !important; transform: none !important; } /* nunca un enlace invisible con foco */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .ph { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .nav { gap: 10px; }
  .js-menu .menu-btn { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .pins { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .actions .btn { width: 100%; }
}
/* teléfonos: wordmark compacto (el lema completo ya está en el logo del hero) para que el botón de Instagram quepa */
@media (max-width: 480px) {
  .logo-tag { display: none; }
  .nav .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
