/* ==========================================================================
   Vitasei US · Biohacking Protocol
   --------------------------------------------------------------------------
   UN SOLO TONO. Todo el sitio es ocre #6B5227 mas claro o mas oscuro.
   Fuera del ocre solo existen dos cosas: el crema del texto y el pale de las
   pastillas. Si un elemento pide un tercer color, sobra el elemento.
   ========================================================================== */

:root {
  /* la escala — 7 escalones del mismo pigmento */
  --deep:    #2A1D0B;
  --dark:    #3B2A11;
  --field:   #6B5227;   /* el campo: fondo de casi todo */
  --raised:  #775C2E;   /* tarjetas: 8% mas claro que el campo, igual que Seed */
  --muted:   #8A7A62;
  --pale:    #FAD399;   /* unico acento. solo pastillas y datos */
  --surface: #F2E7D7;
  --cream:   #FCFAF7;

  --cream-dim: rgba(252, 250, 247, 0.66);
  --hairline:  rgba(252, 250, 247, 0.16);

  --max: 1320px;
  --gut: clamp(20px, 4.5vw, 56px);
  --r:   26px;          /* radio de tarjeta */
  --rp:  999px;         /* radio de pastilla */

  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-hero: clamp(3rem, 8vw, 7rem);
  --t-h2:   clamp(2rem, 4.4vw, 3.6rem);
  --t-name: clamp(1.5rem, 2.3vw, 2.1rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--field);
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.05vw, 1.09rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 780px; }

/* --- pastillas y etiquetas ---------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  border: 1px solid var(--hairline);
  border-radius: var(--rp);
  padding: 0.42em 1em;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  white-space: nowrap;
}
.pill--solid { background: var(--pale); border-color: var(--pale); color: var(--deep); font-weight: 600; }
.pill--ghost { border-color: rgba(252, 250, 247, 0.34); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 500;
  margin: 0 0 1.4rem;
}

/* --- botones ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  border: 1px solid transparent;
  border-radius: var(--rp);
  padding: 1.05rem 2.4rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.btn--light { background: var(--cream); color: var(--deep); }
.btn--light:hover { background: var(--pale); }
.btn--dark { background: var(--deep); color: var(--cream); }
.btn--dark:hover { background: #1C1207; }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(252, 250, 247, 0.4); }
.btn--ghost:hover { background: var(--cream); color: var(--deep); border-color: var(--cream); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; }

/* --- header: barra flotante en pastilla, como Seed ---------------------- */
.site-header { position: sticky; top: 0; z-index: 60; padding: 14px 0; background: var(--field); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--raised);
  border-radius: var(--rp);
  padding: 0.6rem 0.6rem 0.6rem 1.6rem;
}
.wordmark { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.4em; }
.wordmark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pale); }
.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a { padding: 0.6rem 1.15rem; border-radius: var(--rp); font-size: 0.96rem; transition: background 0.2s ease; }
.nav a:hover { background: rgba(252, 250, 247, 0.12); }
.nav .btn { padding: 0.7rem 1.5rem; font-size: 0.94rem; }
@media (max-width: 800px) { .nav a:not(.btn) { display: none; } }

/* --- hero --------------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { font-size: var(--t-hero); max-width: 14ch; }
.hero__lead { margin: 2rem 0 2.6rem; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--cream-dim); max-width: 46ch; }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* --- tarjetas de producto ----------------------------------------------- */
/* 4 columnas fijas en desktop: si el pilar trae 2 productos las tarjetas
   conservan su ancho en vez de estirarse a media pantalla. */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--raised);
  border-radius: var(--r);
  padding: 2.2rem 1.5rem 1.8rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover { transform: translateY(-5px); }
.card__flag { position: absolute; top: 14px; left: 14px; font-size: 0.72rem; }
.card__code { margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.card__name { font-size: var(--t-name); margin-bottom: 1.6rem; }
.card__media { width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; margin-bottom: 1.8rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__note { color: var(--cream-dim); font-size: 0.92rem; margin: 0 0 1.6rem; max-width: 32ch; }
.card .btn { margin-top: auto; }
.card__price { margin: 1rem 0 0; font-size: 0.92rem; color: var(--cream-dim); }

/* --- franjas ------------------------------------------------------------ */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--deep { background: var(--deep); border-radius: var(--r); }
.section--surface { background: var(--surface); color: var(--deep); border-radius: var(--r); }
.section--surface .eyebrow, .section--surface .card__note { color: rgba(42, 29, 11, 0.66); }
.band { margin: clamp(1rem, 3vw, 2rem) var(--gut); }

.section__head { max-width: 700px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: var(--t-h2); }
.section__head p { color: var(--cream-dim); margin: 1.4rem 0 0; }
.section--surface .section__head p { color: rgba(42, 29, 11, 0.7); }

/* --- el dato ------------------------------------------------------------ */
.stat { text-align: center; }
.stat__n { display: block; font-size: clamp(5rem, 17vw, 13rem); line-height: 0.82; letter-spacing: -0.05em; color: var(--pale); }
.stat__u { display: block; margin-top: 1.6rem; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-dim); }
.stat p { max-width: 48ch; margin: 2.2rem auto 0; color: var(--cream-dim); }

/* --- pasos -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); }
.step__n { display: block; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--pale); margin-bottom: 1.1rem; }
.step h3 { font-size: 1.22rem; margin-bottom: 0.7rem; letter-spacing: -0.015em; }
.step p { color: var(--cream-dim); font-size: 0.94rem; margin: 0; }
.section--surface .step p { color: rgba(42, 29, 11, 0.7); }
.section--surface .step__n { color: #8A6A2A; }

/* --- PDP ---------------------------------------------------------------- */
.pdp { padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.pdp__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start; }
.gallery__main { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--raised); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.gallery__thumbs button {
  aspect-ratio: 1; padding: 0; cursor: pointer; overflow: hidden;
  border: 2px solid transparent; border-radius: 14px; background: var(--raised);
  transition: border-color 0.2s ease;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--pale); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { position: sticky; top: 100px; }
.buybox h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); margin: 1rem 0 1.2rem; }
.buybox__blurb { color: var(--cream-dim); margin: 0 0 2.2rem; }
.buybox__price { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.6rem; }
.buybox__price strong { font-size: 2rem; font-weight: 500; }
.buybox__price s { color: var(--cream-dim); font-size: 1.05rem; }

.reassure { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.reassure li { font-size: 0.9rem; color: var(--cream-dim); padding-left: 1.6rem; position: relative; }
.reassure li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pale);
}

@media (max-width: 920px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
}

/* --- beneficios --------------------------------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.benefit { background: var(--raised); border-radius: var(--r); padding: clamp(1.7rem, 2.6vw, 2.3rem); }
.benefit h3 { font-size: 1.1rem; margin-bottom: 0.75rem; letter-spacing: -0.015em; }
.benefit p { color: var(--cream-dim); font-size: 0.92rem; margin: 0; }

/* --- FAQ ---------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.7rem 3rem 1.7rem 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--pale);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--cream-dim); margin: 0 0 1.9rem; max-width: 64ch; }

/* --- standards ---------------------------------------------------------- */
.marks { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--deep); border-radius: var(--r) var(--r) 0 0; margin: clamp(1rem, 3vw, 2rem) var(--gut) 0; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.site-footer .wordmark { margin-bottom: 2.2rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2.4rem; margin-bottom: 3rem; }
.site-footer h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); margin: 0 0 1.1rem; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.site-footer a { font-size: 0.95rem; color: var(--cream); }
.site-footer a:hover { color: var(--pale); }
.disclaimer { border-top: 1px solid var(--hairline); padding-top: 2rem; font-size: 0.78rem; line-height: 1.7; color: rgba(252, 250, 247, 0.42); max-width: 74ch; }

/* --- utilidades --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
