/* Bravo 2 · hoja de estilos única.
   Sistema "papel": page (papel claro) > plate (tono exacto de las fotos) > card (papel alto).
   Display: Libre Caslon Text (Caslon clasico, contraste moderado y astas
   firmes: legible en pantalla, fuera del look default de sitios IA).
   UI y cuerpo: Archivo. Paleta de la presentación:
   crema, tinta, olivo, rojo. Motion en motion.js; aquí sólo keyframes y transiciones. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-italic-latin.woff2") format("woff2");
}

:root {
  --page: #F7F4EB;
  --plate: #EFE9DB;
  --card: #FCFAF4;
  --ink: #161A19;
  --ink-soft: #4C514E;
  --ink-faint: #7C817D;
  --olive: #646A50;
  --olive-dark: #565C45;
  --red: #A63430;
  --red-dark: #8C2B28;
  --amber: #D9A441;
  --line: #E4DECD;
  --line-strong: #D3CCB8;
  --radius: 6px;
  --shadow: 0 18px 44px rgba(22, 26, 25, .10);
  --shadow-soft: 0 8px 24px rgba(22, 26, 25, .07);
  --font: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Caslon Text", "Caslon", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .21, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grano de papel: textura táctil, casi imperceptible. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: multiply;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.005em; }
h3 { line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--olive-dark); }
button { font-family: inherit; }
::selection { background: var(--red); color: var(--page); }

.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 820px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--page); padding: 10px 18px;
  border-radius: 999px; text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

/* ---------- barra de progreso de lectura ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn .btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--page); }
.btn--primary:hover { background: #000; box-shadow: var(--shadow-soft); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(22, 26, 25, .04); }
.btn--ghost-light { border-color: rgba(247, 244, 235, .5); color: var(--page); }
.btn--ghost-light:hover { border-color: var(--page); background: rgba(247, 244, 235, .1); }
.btn--wa { background: var(--olive); color: var(--page); }
.btn--wa:hover { background: var(--olive-dark); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--buy { width: 100%; background: var(--red); color: #fff; }
.btn--buy:hover { background: var(--red-dark); box-shadow: var(--shadow-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 235, .86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(22, 26, 25, .06); }
.site-header.hidden { transform: translateY(-100%); }
.site-header.nav-open { transform: none; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand img { height: 28px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  position: relative; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .9rem; letter-spacing: .02em; padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-ambient { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: .92fr 1.08fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--olive-dark); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .74rem; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--olive); flex: none; }
.hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  margin-bottom: 26px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--red); }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 50ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-chips {
  list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 0;
}
.hero-chips li {
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px; padding-right: 22px; margin-right: 22px;
  border-right: 1px solid var(--line);
}
.hero-chips li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); flex: none; }

/* El padding superior reserva el espacio del sello: el sello vive arriba de la
   foto y solo entra 16px en la franja vacía del plate, nunca sobre los viales. */
.hero-media { position: relative; padding-top: 152px; }
.hero-stage {
  position: relative; background: var(--plate); border-radius: var(--radius);
  transform-style: preserve-3d; will-change: transform;
  box-shadow: var(--shadow);
}
.hero-img { width: 100%; border-radius: var(--radius); animation: breathe 13s ease-in-out infinite alternate; }
@keyframes breathe {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.045) translateY(-6px); }
}
.hero-sheen {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; pointer-events: none;
}
.hero-sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .34) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-14deg);
  animation: sheen 9.5s var(--ease) 2.2s infinite;
}
@keyframes sheen {
  0% { transform: translateX(-160%) skewX(-14deg); }
  26% { transform: translateX(420%) skewX(-14deg); }
  100% { transform: translateX(420%) skewX(-14deg); }
}
.hero-seal {
  position: absolute; left: auto; right: -24px; top: 0; width: 168px; height: 168px;
  display: grid; place-items: center; pointer-events: none;
  transform: rotate(var(--seal-scroll, 0deg));
}
.hero-seal::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--page); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.seal-ring, .seal-orbit { position: absolute; inset: 0; }
.seal-ring--outer { animation: spin 44s linear infinite; }
.seal-ring--ticks { color: var(--line-strong); animation: spin-rev 30s linear infinite; }
.seal-orbit { animation: spin 18s linear infinite; }
.hero-seal text {
  font-family: var(--font); font-size: 8.2px; font-weight: 700;
  letter-spacing: .2em; fill: var(--ink-soft); text-transform: uppercase;
}
.seal-core {
  position: relative; display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  animation: corepulse 4.5s ease-in-out infinite;
}
.seal-core img { width: 38px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes corepulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ---------- tokens flotantes: partículas pequeñas, solo el emblema ---------- */
.hero-tokens { position: absolute; inset: 0; pointer-events: none; --tscale: 1; }
.token:nth-child(1) { --x: -3%; --y: 30%; --sz: 15px; --spin: 14s; }
.token:nth-child(2) { --x: 100%; --y: 38%; --sz: 11px; --spin: 19s; }
.token:nth-child(3) { --x: 97%; --y: 74%; --sz: 16px; --spin: 12s; }
.token:nth-child(4) { --x: -4%; --y: 80%; --sz: 12px; --spin: 22s; }
.token:nth-child(5) { --x: 30%; --y: -4%; --sz: 13px; --spin: 17s; }
.token {
  position: absolute; left: var(--x); top: var(--y);
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  color: var(--tc); opacity: .85; will-change: transform;
}
.token:nth-child(even) { opacity: .68; }
.token-in {
  display: grid; place-items: center; width: 100%; height: 100%;
  animation: bob var(--bob, 8s) ease-in-out infinite alternate;
}
.token-in svg {
  width: calc(var(--sz, 14px) * var(--tscale, 1));
  height: calc(var(--sz, 14px) * var(--tscale, 1));
  animation: spin var(--spin, 16s) linear infinite;
}
.token:nth-child(2) .token-in svg,
.token:nth-child(4) .token-in svg { animation-direction: reverse; }
@keyframes bob {
  from { transform: translateY(-5px) rotate(-3deg); }
  to { transform: translateY(6px) rotate(4deg); }
}
.hero-caption {
  margin-top: 18px; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; align-items: center; gap: 10px;
}
.hero-caption::before { content: ""; width: 22px; height: 1px; background: var(--line-strong); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0; background: var(--page);
}
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--ink-soft); white-space: nowrap; padding: 0 26px;
  display: flex; align-items: center; gap: 52px;
}
.marquee-track span::after { content: "·"; color: var(--red); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- proceso ---------- */
.process { background: var(--olive); color: var(--page); padding: 44px 0; }
.process-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.process-steps li { position: relative; padding: 0 36px; }
.process-steps li:first-child { padding-left: 0; }
.process-steps li:last-child { padding-right: 0; }
.process-steps li + li { border-left: 1px solid rgba(247, 244, 235, .28); }
.process-num {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: rgba(247, 244, 235, .6); display: block; margin-bottom: 8px;
}
.process-steps strong { display: block; font-size: .98rem; font-weight: 800; letter-spacing: .01em; margin-bottom: 5px; }
.process-steps span:not(.process-num) { font-size: .87rem; opacity: .9; }

/* ---------- secciones ---------- */
section { scroll-margin-top: 92px; }
.catalog, .responsable, .faq { padding: 104px 0; }
.section-head { margin-bottom: 52px; max-width: 760px; }
.section-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--olive-dark);
}
.section-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 16px; text-wrap: balance; }
.section-head p { color: var(--ink-soft); max-width: 62ch; }
.section-head--light .section-eyebrow { color: var(--amber); }
.section-head--light .section-eyebrow::after { background: rgba(247, 244, 235, .22); }
.section-head--light h2, .section-head--light p { color: var(--page); }
.section-head--light p { opacity: .82; }
.catalog-meta {
  margin-top: 20px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
}
.catalog-meta time { color: var(--ink-soft); font-weight: 600; }

/* ---------- catálogo ---------- */
/* ---------- filtro por área de interés ---------- */
.group-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.group-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; font: 600 .82rem var(--font); letter-spacing: .02em;
  color: var(--ink-soft); cursor: pointer;
  transition: background .25s var(--ease), color .25s, border-color .25s;
}
.group-chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.group-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--page); }
.group-count { font-size: .72rem; font-weight: 800; opacity: .65; font-variant-numeric: tabular-nums; }
.filter-status { font-size: .78rem; color: var(--ink-faint); letter-spacing: .04em; margin: 0 0 22px; }
.nojs-note {
  background: var(--plate); border-left: 2px solid var(--amber);
  padding: 12px 14px; margin: 0 0 22px; font-size: .85rem; color: var(--ink-soft);
  border-radius: 0 4px 4px 0;
}
.group-head {
  grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 6px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.group-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.group-head h3 { font-family: var(--serif); font-style: italic; font-size: 1.35rem; font-weight: 600; }
.group-head p { font-size: .85rem; color: var(--ink-soft); flex: 1; min-width: 260px; }
.group-head .group-count { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.product-card[hidden], .group-head[hidden] { display: none; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 28px;
  align-items: start;
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent, var(--olive)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-card:hover::after { transform: scaleX(1); }
.product-media { position: relative; aspect-ratio: 4 / 5; background: var(--plate); overflow: hidden; }
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.045); }
.badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(252, 250, 244, .88); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); color: var(--ink);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ev, var(--olive)); flex: none; }
.badge--clinica { --ev: var(--olive); }
.badge--limitada { --ev: var(--amber); }
.badge--preclinica { --ev: #5B7DB1; }
.badge--sin-validar { --ev: var(--red); }
.badge--por-confirmar { --ev: var(--ink-faint); }
.product-body { display: flex; flex-direction: column; gap: 13px; padding: 20px 20px 22px; flex: 1; }
.product-title { display: flex; align-items: center; gap: 10px; }
.product-title h3 { font-size: 1.16rem; font-weight: 800; }
.product-glyph { flex: none; transition: transform .5s var(--ease); }
.product-card:hover .product-glyph { transform: rotate(90deg); }
.product-tag { font-size: .85rem; color: var(--ink-soft); min-height: 2.5em; }
.product-buy { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.product-buy select {
  flex: 1; min-width: 0; appearance: none; -webkit-appearance: none;
  font: 600 .9rem var(--font); color: var(--ink);
  background: var(--page) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23161A19" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg>') no-repeat right 12px center / 14px;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 34px 10px 14px;
  cursor: pointer; transition: border-color .2s;
}
.product-buy select:hover { border-color: var(--ink-faint); }
.product-price {
  font-weight: 800; font-size: 1.02rem; white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.product-price.flash { animation: priceflash .5s var(--ease); }
@keyframes priceflash {
  0% { color: var(--red); transform: translateY(-2px); }
  100% { color: var(--ink); transform: none; }
}
.ficha-toggle {
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 6px 0 2px; cursor: pointer;
  color: var(--olive-dark); font-weight: 700; font-size: .85rem; letter-spacing: .03em;
}
.ficha-toggle:hover { color: var(--ink); }
.ficha-arrow { transition: transform .3s var(--ease); }
.ficha-toggle:hover .ficha-arrow { transform: translateX(3px); }

/* ---------- ficha completa como dialog ---------- */
.ficha-dialog { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-width: none; }
.ficha-dialog::backdrop { background: rgba(22, 26, 25, .44); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ficha-shell {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 26px 24px; display: grid; gap: 16px;
  max-height: min(85vh, 780px); overflow: auto;
}
.ficha-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ficha-glyph { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.ficha-id { flex: 1; min-width: 200px; }
.ficha-id h3 { font-size: 1.3rem; font-weight: 800; }
.ficha-id .product-tag { min-height: 0; margin-top: 4px; }
.ficha-head .badge { position: static; flex: none; margin-top: 2px; margin-right: 34px; }
.ficha-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: 0; padding: 2px 8px;
  font-size: 1.5rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.ficha-close:hover { color: var(--ink); }
.ficha-body { display: grid; gap: 13px; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }
.ficha-note { font-size: .76rem; color: var(--ink-faint); }
.mech { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 7px; }
.mech li { counter-increment: m; display: flex; gap: 9px; align-items: baseline; }
.mech li::before {
  content: counter(m); flex: none; width: 19px; height: 19px; border-radius: 4px;
  background: var(--accent, var(--olive)); color: #fff; font-size: .68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; transform: translateY(3px);
}
.evidence-note {
  background: var(--plate); border-left: 2px solid var(--accent, var(--olive));
  padding: 11px 13px; border-radius: 0 4px 4px 0; font-size: .82rem;
}
.refs { font-size: .78rem; }
.refs a { color: var(--olive-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- cómo comprar ---------- */
.how { background: var(--ink); color: var(--page); padding: 104px 0; }
.how-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-steps li { border-top: 1px solid rgba(247, 244, 235, .22); padding-top: 24px; }
.how-num {
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1;
  color: var(--amber); display: block; margin-bottom: 16px;
}
.how-steps strong { display: block; font-size: 1.05rem; font-weight: 800; margin-bottom: 9px; letter-spacing: .01em; }
.how-steps p { font-size: .9rem; opacity: .78; }
.how-note { font-size: .92rem; opacity: .9; border-top: 1px solid rgba(247, 244, 235, .22); padding-top: 26px; }
.how-note a { color: var(--page); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- uso responsable ---------- */
.resp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.resp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.resp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.resp-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 12px; }
.resp-card h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--red); margin-bottom: 16px; }
.resp-card p { font-size: .89rem; color: var(--ink-soft); }

/* ---------- declaración de uso responsable ---------- */
.declaracion { padding: 104px 0; background: var(--plate); }
.decl-list { list-style: none; counter-reset: d; margin: 0 0 28px; padding: 0; }
.decl-list li {
  counter-increment: d; position: relative;
  padding: 20px 0 20px 64px; border-top: 1px solid var(--line-strong);
  font-size: .93rem; color: var(--ink-soft);
}
.decl-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.decl-list li::before {
  content: counter(d, decimal-leading-zero);
  position: absolute; left: 0; top: 16px;
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--red);
}
.decl-list strong { color: var(--ink); font-weight: 800; }
.decl-note { font-size: .78rem; color: var(--ink-faint); }

/* ---------- gate de aceptación ---------- */
.ack-gate {
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--card); color: var(--ink); padding: 0;
  max-width: 560px; width: calc(100vw - 40px); box-shadow: var(--shadow);
}
.ack-gate::backdrop { background: rgba(22, 26, 25, .45); backdrop-filter: blur(3px); }
.ack-form { padding: 32px; display: grid; gap: 18px; }
.ack-form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.ack-variant {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  color: var(--olive-dark); text-transform: uppercase;
}
.ack-checks { display: grid; gap: 12px; }
.ack-checks label {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .88rem; color: var(--ink-soft); cursor: pointer;
}
.ack-checks input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 1px 0 0;
  border: 1.5px solid var(--line-strong); border-radius: 5px;
  background: var(--page); cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.ack-checks input:checked { background: var(--olive); border-color: var(--olive); }
.ack-checks input:checked::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid var(--page); border-bottom: 2px solid var(--page);
  transform: rotate(-45deg) translateY(-1px);
}
.ack-link a { font-size: .85rem; font-weight: 700; }
.ack-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ack-actions .btn--primary[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.ack-note { font-size: .75rem; color: var(--ink-faint); }
.ack-gate[open] { animation: gatein .35s var(--ease); }
@keyframes gatein {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; font-weight: 700; font-size: 1rem;
  list-style: none; transition: color .2s;
}
.faq-item summary:hover { color: var(--red); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 13px; height: 13px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--red); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-icon::before { left: 0; top: 5.5px; width: 13px; height: 2px; }
.faq-icon::after { left: 5.5px; top: 0; width: 2px; height: 13px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-a { padding: 0 4px 24px; color: var(--ink-soft); font-size: .93rem; max-width: 68ch; }
.faq-item[open] .faq-a { animation: faqopen .4s var(--ease); }
@keyframes faqopen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- CTA final ---------- */
.cta-final { background: var(--red-dark); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 110%, rgba(22, 26, 25, .35), transparent 70%);
}
.cta-inner { position: relative; text-align: center; max-width: 680px; }
.cta-inner h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 16px; }
.cta-inner h2 em { font-style: italic; color: var(--amber); }
.cta-inner p { opacity: .9; margin-bottom: 34px; }
.cta-inner .hero-cta { justify-content: center; margin-bottom: 0; }
.cta-inner .btn--primary { background: var(--page); color: var(--ink); }
.cta-inner .btn--primary:hover { background: #fff; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: var(--page); padding: 72px 0 48px; position: relative; overflow: hidden;
}
.site-footer::after {
  content: ""; position: absolute; right: -30px; bottom: -46px; width: 340px; height: 52px;
  background: url("../brand/bravo2-logo-light.png") no-repeat center / contain;
  opacity: .06; pointer-events: none;
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr .8fr 1.4fr; gap: 56px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .87rem; opacity: .75; margin-bottom: 16px; max-width: 34ch; }
.footer-wa { color: var(--page); font-weight: 700; font-size: .9rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--page); opacity: .8; text-decoration: none; font-size: .9rem; transition: opacity .2s; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal p { font-size: .75rem; opacity: .6; margin-bottom: 12px; }

/* ---------- FAB WhatsApp ---------- */
.fab-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--olive); color: var(--page);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(22, 26, 25, .28);
  transition: transform .25s var(--ease), background .25s;
}
.fab-wa:hover { transform: scale(1.08) translateY(-2px); background: var(--olive-dark); }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-media { padding-top: 116px; }
  .hero-seal { right: -16px; width: 132px; height: 132px; }
  .seal-core { width: 48px; height: 48px; }
  .seal-core img { width: 28px; }
}
@media (max-width: 960px) {
  .hero { padding: 60px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-media { max-width: 620px; padding-top: 96px; }
  .hero-seal { right: -12px; width: 112px; height: 112px; }
  .hero-tokens { --tscale: .8; }
  .token { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .token:nth-child(1) { --x: 3%; --y: 34%; }
  .token:nth-child(2) { --x: 96%; --y: 44%; }
  .token:nth-child(3) { --x: 94%; --y: 76%; }
  .token:nth-child(4), .token:nth-child(5) { display: none; }
  .declaracion { padding: 76px 0; }
  .process-steps, .how-steps, .resp-grid { grid-template-columns: 1fr; gap: 26px; }
  .process-steps li { padding: 0; }
  .process-steps li + li { border-left: 0; border-top: 1px solid rgba(247, 244, 235, .28); padding-top: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .catalog, .responsable, .faq, .how { padding: 76px 0; }
  .cta-final { padding: 76px 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--page); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 28px 16px;
    box-shadow: 0 24px 40px rgba(22, 26, 25, .08);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .header-inner { gap: 12px; height: 64px; }
  .brand img { height: 23px; }
  .site-nav { top: 64px; padding: 8px 20px 16px; }
  section { scroll-margin-top: 76px; }
  .btn { padding: 14px 22px; }
  .btn--wa.btn--sm { padding: 8px 14px; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-chips li { padding-right: 14px; margin-right: 14px; }
  .hero-media { padding-top: 84px; }
  .hero-seal { width: 96px; height: 96px; right: -8px; }
  .seal-core { width: 38px; height: 38px; }
  .seal-core img { width: 22px; }
  .hero-tokens { --tscale: .65; }
  .token { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .token:nth-child(3) { display: none; }
  .ficha-dialog { width: 100vw; margin: auto 0 0; }
  .ficha-shell { border-radius: var(--radius) var(--radius) 0 0; max-height: 88vh; padding: 20px; }
  .group-head p { min-width: 100%; }
  .declaracion { padding: 64px 0; }
  .decl-list li { padding-left: 48px; }
  .product-buy { flex-wrap: wrap; }
  .product-price { width: 100%; order: -1; }
  .fab-wa { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .catalog, .responsable, .faq, .how { padding: 64px 0; }
}
@media (max-width: 400px) {
  .wa-label { display: none; }
  .btn--wa.btn--sm { padding: 9px 11px; }
  .hero-chips { flex-direction: column; gap: 10px; }
  .hero-chips li { border-right: 0; padding-right: 0; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
  .hero-img { animation: none !important; }
  .hero-sheen { display: none; }
  .hero-seal svg { animation: none !important; }
}
