/* ============================================================
   INGRÁVITA — styles.css
   Design system completo. Tema ÚNICO oscuro (escaparate nocturno).
   Paleta y tipografías: BRAND_BRIEF.md §4. Mobile-first (390px).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Paleta (HEX exactos del brief) */
  --color-bg: #0B0A14;
  --color-surface: #161225;
  --color-border: #2A2440;
  --color-text: #F2EDE4;
  --color-text-sec: #9B93AC;
  --color-accent: #F2A33C;
  --color-glow: #FFC46B;
  --color-violet: #4E3D8F;
  --color-success: #5FBF8A;

  /* Derivados con alpha (glows "objeto que emite luz") */
  --glow-soft: rgba(255, 196, 107, 0.10);
  --glow-mid: rgba(255, 196, 107, 0.22);
  --glow-strong: rgba(255, 196, 107, 0.38);
  --violet-soft: rgba(78, 61, 143, 0.18);
  --success-soft: rgba(95, 191, 138, 0.14);
  --danger-muted: #8a6a72;
  --danger-soft: rgba(138, 106, 114, 0.18);

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --fs-hero: clamp(2rem, 8vw, 3.75rem);
  --fs-h1: clamp(1.75rem, 6vw, 3rem);
  --fs-h2: clamp(1.5rem, 5vw, 2.25rem);
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;
  --fs-price: 1.5rem;
  --fs-price-big: clamp(1.75rem, 5vw, 2.5rem);
  --fs-contador: clamp(2.5rem, 10vw, 4.5rem);
  --lh-display: 1.05;
  --lh-body: 1.6;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-section: clamp(3.5rem, 10vw, 6.5rem);

  /* Layout */
  --container: 72rem;
  --container-narrow: 42rem;
  --pad-x: 1.25rem;

  /* Radios */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* Sombras / glows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow-card: 0 0 28px var(--glow-soft), 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow-cta: 0 0 20px var(--glow-mid), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow-cta-hover: 0 0 32px var(--glow-strong), 0 4px 16px rgba(0, 0, 0, 0.4);

  /* Transiciones */
  --t-fast: 160ms ease;
  --t-med: 280ms ease;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
video,
canvas {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--color-glow);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Display: Fraunces solo h1-h3, precios grandes, tagline. NUNCA italic. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: var(--lh-display);
  color: var(--color-text);
}

/* Focus visible en todo elemento interactivo */
:focus-visible {
  outline: 2px solid var(--color-glow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   3. TITULARES DE SECCIÓN
   ============================================================ */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-display);
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-sub {
  color: var(--color-text-sec);
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-lg);
}

/* ============================================================
   4. BOTONES / CTA
   ============================================================ */
.cta-button {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow-cta);
  text-align: center;
  transition: background-color var(--t-fast), box-shadow var(--t-med), transform var(--t-fast);
}

.cta-button:hover {
  background-color: var(--color-glow);
  color: var(--color-bg);
  box-shadow: var(--shadow-glow-cta-hover);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

/* CTA secundario: fantasma, no compite con el primario */
.cta-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.cta-secondary:hover {
  background-color: var(--color-surface);
  color: var(--color-glow);
  border-color: var(--color-glow);
  box-shadow: 0 0 16px var(--glow-soft);
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.85rem var(--pad-x);
  background-color: rgba(11, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.site-logo:hover {
  color: var(--color-glow);
}

.site-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
  font-weight: 500;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-text);
}

.nav-link-suspendidos {
  color: var(--color-accent);
}

.nav-link-suspendidos:hover {
  color: var(--color-glow);
}

/* ============================================================
   6. HERO (home)
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  /* Halo ámbar + violeta de fondo: el escaparate nocturno */
  background:
    radial-gradient(ellipse 70% 45% at 50% 38%, var(--glow-soft), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, var(--violet-soft), transparent 70%),
    var(--color-bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.8;
  /* GPU layer 1 de 3 (presupuesto cinematic) */
  transform: translateZ(0);
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* GPU layer 2 de 3 */
  will-change: transform;
}

.hero-content {
  position: relative;
  padding: var(--space-xl) var(--pad-x) var(--space-lg);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  /* Legibilidad del texto sobre el vídeo */
  background: linear-gradient(to top, rgba(11, 10, 20, 0.92) 40%, transparent);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-display);
  max-width: 14ch;
  margin-bottom: var(--space-md);
}

.hero-title-accent {
  display: block;
  color: var(--color-accent);
  text-shadow: 0 0 32px var(--glow-mid);
}

.hero-sub {
  color: var(--color-text-sec);
  font-size: var(--fs-body);
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}

.hero-cta {
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
}

.scroll-indicator {
  position: relative;
  width: 1.4rem;
  height: 2.3rem;
  margin: var(--space-md) auto var(--space-lg);
  border: 1px solid var(--color-text-sec);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.scroll-indicator-dot {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 0.3rem;
  height: 0.3rem;
  margin-left: -0.15rem;
  border-radius: 50%;
  background-color: var(--color-glow);
  box-shadow: 0 0 8px var(--glow-mid);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70%      { transform: translateY(0.85rem); opacity: 0; }
  71%      { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   7. CONTENEDORES DE SECCIÓN
   ============================================================ */
.sello-section,
.grid-section,
.suspendidos-teaser,
.truco-section,
.faq-section,
.lead-section,
.suspendidos-hero,
.test-data-section,
.benefits-section,
.specs-section,
.garantia-section,
.envio-section,
.cross-sell-section,
.gracias-section {
  padding: var(--space-section) var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}

/* ============================================================
   8. CÓMO FUNCIONA EL SELLO
   ============================================================ */
.sello-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  counter-reset: sello;
}

.sello-step {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.sello-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-sm);
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 14px var(--glow-soft);
}

.sello-step-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.sello-step-text {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
}

/* ============================================================
   9. BARRA DE CONFIANZA
   ============================================================ */
.trust-bar {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-lg) var(--pad-x);
}

.trust-item {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.trust-item strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================================
   10. GRID DE PRODUCTOS + CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.product-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-med), border-color var(--t-med), transform var(--t-med);
}

.product-card:hover {
  border-color: var(--glow-mid);
  box-shadow: var(--shadow-glow-card);
  transform: translateY(-3px);
}

.card-media-link {
  display: block;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, var(--glow-soft), transparent 75%),
    var(--color-bg);
  overflow: hidden;
}

.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: var(--space-md);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.card-badge {
  display: inline-block;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  line-height: 1.3;
}

.badge-categoria {
  color: var(--color-text-sec);
  border: 1px solid var(--color-border);
  background-color: transparent;
}

.badge-testado {
  color: var(--color-success);
  background-color: var(--success-soft);
  border: 1px solid rgba(95, 191, 138, 0.35);
}

a.badge-testado:hover {
  color: var(--color-text);
  border-color: var(--color-success);
  box-shadow: 0 0 12px var(--success-soft);
}

.badge-en-test {
  color: var(--color-glow);
  background-color: var(--glow-soft);
  border: 1px solid rgba(255, 196, 107, 0.3);
}

.badge-suspendido {
  color: var(--danger-muted);
  background-color: var(--danger-soft);
  border: 1px solid var(--danger-muted);
}

.card-name {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card-name a {
  color: var(--color-text);
}

.card-name a:hover {
  color: var(--color-glow);
}

.card-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-price);
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}

.card-status-text {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
}

/* --- Card "En test" (placeholder del laboratorio) --- */
.product-card-en-test {
  border-style: dashed;
  box-shadow: none;
}

.product-card-en-test:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

.card-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 55%, var(--violet-soft), transparent 75%),
    var(--color-bg);
}

.card-silueta {
  width: 42%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(78, 61, 143, 0.35), rgba(78, 61, 143, 0.08));
  filter: blur(6px);
}

/* --- Card suspendido: tono apagado, sin luz --- */
.suspendido-card {
  opacity: 0.85;
}

.suspendido-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
  transform: none;
}

.suspendido-card .card-media {
  background: var(--color-bg); /* sin glow: este objeto no emite luz */
}

.suspendido-card .card-video {
  filter: grayscale(0.7) brightness(0.75);
}

.card-price-tachado {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-sec);
  text-decoration: line-through;
  text-decoration-color: var(--danger-muted);
  margin-bottom: var(--space-xs);
}

.suspenso-motivo {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
  margin-bottom: var(--space-xs);
}

.suspenso-ahorrado {
  font-size: var(--fs-small);
  color: var(--color-text-sec);
}

.suspenso-ahorrado strong {
  color: var(--color-success);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   11. LOS SUSPENDIDOS (teaser home + página)
   ============================================================ */
.suspendidos-teaser {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, var(--violet-soft), transparent 70%);
  border-radius: var(--radius-lg);
}

.contador-ahorrado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: var(--space-md) 0;
}

.contador-cifra {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-contador);
  line-height: var(--lh-display);
  font-variant-numeric: tabular-nums;
  color: var(--color-success);
  text-shadow: 0 0 28px var(--success-soft);
}

.contador-label {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
}

.suspendidos-teaser-text {
  color: var(--color-text-sec);
  max-width: 40ch;
  margin: 0 auto var(--space-lg);
}

/* --- Página suspendidos --- */
.suspendidos-hero {
  text-align: center;
  padding-bottom: var(--space-lg);
}

.suspendidos-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-display);
}

.contador-ahorrado-grande .contador-cifra {
  font-size: clamp(3rem, 14vw, 6rem);
}

.suspendidos-intro {
  color: var(--color-text-sec);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.suspendidos-grid {
  margin-bottom: var(--space-lg);
}

.suspendidos-vacio {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-sec);
  padding: var(--space-xl) var(--pad-x);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

/* Botón centrado bajo el grid de suspendidos */
#caidos > .cta-secondary {
  display: block;
  max-width: max-content;
  margin: 0 auto;
}

/* ============================================================
   12. LA MAGIA TIENE TRUCO
   ============================================================ */
.truco-section {
  text-align: center;
}

.truco-section .section-title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.truco-text {
  color: var(--color-text-sec);
  font-size: 1.05rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

/* ============================================================
   13. FAQ
   ============================================================ */
.faq-section {
  max-width: var(--container-narrow);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: var(--space-md) 2.2rem var(--space-md) 0;
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--color-text);
  transition: color var(--t-fast);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--t-fast);
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--color-glow);
}

.faq-question:hover {
  color: var(--color-glow);
}

.faq-answer {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
  padding: 0 0 var(--space-md);
  max-width: 60ch;
}

/* ============================================================
   14. EMAIL-GATE (lead)
   ============================================================ */
.lead-section {
  max-width: var(--container-narrow);
  text-align: center;
}

.lead-text {
  color: var(--color-text-sec);
  margin-bottom: var(--space-lg);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 26rem;
  margin: 0 auto;
  text-align: left;
}

.lead-label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-sec);
}

.lead-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.lead-input::placeholder {
  color: var(--color-text-sec);
  opacity: 0.7;
}

.lead-input:focus {
  outline: none;
  border-color: var(--color-glow);
  box-shadow: 0 0 0 3px var(--glow-soft);
}

.lead-submit {
  width: 100%;
}

.lead-feedback {
  min-height: 1.4rem;
  font-size: var(--fs-small);
  color: var(--color-text-sec);
  text-align: center;
}

.lead-feedback.is-ok {
  color: var(--color-success);
}

.lead-feedback.is-error {
  color: var(--color-glow);
}

.lead-legal {
  font-size: var(--fs-tiny);
  color: var(--color-text-sec);
  text-align: center;
}

/* ============================================================
   15. FOOTER (móvil: marca full-width + links en 2 columnas)
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: var(--space-xl) var(--pad-x) var(--space-lg);
  margin-top: var(--space-section);
}

.footer-brand {
  width: 100%;
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--color-text-sec);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: var(--container);
  margin: 0 auto var(--space-lg);
}

.footer-col-title {
  font-family: var(--font-body); /* título de columna = UI, no display */
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-sec);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
}

.footer-links a:hover {
  color: var(--color-glow);
}

.footer-copy {
  font-size: var(--fs-tiny);
  color: var(--color-text-sec);
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   16. FICHA DE PRODUCTO
   ============================================================ */
.product-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 65% 55% at 50% 60%, var(--glow-soft), transparent 75%),
    var(--color-bg);
  padding: var(--space-lg) var(--pad-x) 0;
}

.product-hero-video {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 0 44px var(--glow-mid), var(--shadow-card);
}

.product-summary {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-lg) var(--pad-x);
  text-align: center;
}

.product-summary .card-badges {
  justify-content: center;
}

.product-name {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-display);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-price-big);
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  text-shadow: 0 0 24px var(--glow-mid);
  margin-bottom: var(--space-md);
}

/* CTA de compra: web-js añade .is-stuck al pasar el summary en móvil */
.cta-sticky {
  font-size: 1.05rem;
  padding: 1rem 2.6rem;
}

@media (max-width: 767px) {
  .cta-sticky.is-stuck {
    position: fixed;
    left: var(--pad-x);
    right: var(--pad-x);
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 90;
    /* GPU layer 3 de 3 (presupuesto cinematic) */
    will-change: transform;
    box-shadow: var(--shadow-glow-cta-hover);
  }
}

/* Secciones internas de ficha: ancho lectura */
.test-data-section,
.benefits-section,
.specs-section,
.garantia-section,
.envio-section {
  max-width: var(--container-narrow);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.product-page .section-title {
  text-align: left;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
}

.test-data-intro,
.envio-text {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
}

/* --- Tablas (test + envío): scroll horizontal si desbordan --- */
.test-data-table,
.envio-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-variant-numeric: tabular-nums;
}

.test-data-table thead,
.test-data-table tbody,
.envio-table thead,
.envio-table tbody {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.test-data-table th,
.envio-table th {
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-sec);
  text-align: left;
  padding: 0.75rem 1rem;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.test-data-table td,
.envio-table td {
  font-size: var(--fs-small);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  min-width: 10rem;
}

.test-data-table tbody tr:last-child td,
.envio-table tbody tr:last-child td {
  border-bottom: none;
}

.test-data-table td:last-child {
  color: var(--color-success);
  font-weight: 500;
}

/* --- Beneficios --- */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benefit-item {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text);
}

.benefit-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 600;
}

/* --- Specs --- */
.specs-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:nth-child(odd) {
  background-color: var(--color-surface);
}

.spec-row dt {
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-sec);
}

.spec-row dd {
  font-size: var(--fs-small);
  color: var(--color-text);
}

/* --- Garantía del «hala» --- */
.garantia-section {
  text-align: center;
}

.garantia-section .section-title {
  text-align: center;
}

.garantia-text {
  background-color: var(--color-surface);
  border: 1px solid rgba(95, 191, 138, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  color: var(--color-text-sec);
  box-shadow: 0 0 24px var(--success-soft);
}

/* --- Cross-sell --- */
.cross-sell-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.cross-sell-section .section-title {
  text-align: center;
}

/* ============================================================
   17. PÁGINA GRACIAS
   ============================================================ */
.gracias-page {
  display: flex;
  align-items: center;
  min-height: 70svh;
}

.gracias-section {
  max-width: var(--container-narrow);
  text-align: center;
}

.gracias-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-display);
  color: var(--color-success);
  text-shadow: 0 0 28px var(--success-soft);
  margin-bottom: var(--space-md);
}

.gracias-sub {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.gracias-text {
  color: var(--color-text-sec);
  font-size: var(--fs-small);
  margin-bottom: var(--space-lg);
}

.gracias-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: stretch;
  max-width: 22rem;
  margin: 0 auto;
}

/* ============================================================
   18. MEDIA QUERIES (mobile-first: 480 / 768 / 1024 / 1280)
   ============================================================ */

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-form {
    max-width: 28rem;
  }

  .gracias-ctas {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

@media (min-width: 768px) {
  :root {
    --pad-x: 2rem;
  }

  .hero-section {
    min-height: 96svh;
    justify-content: center;
  }

  .hero-content {
    background: none; /* el gradiente de legibilidad ya no hace falta a ancho tablet */
    padding-top: 0;
  }

  .sello-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-lg);
  }

  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    align-items: start;
  }

  .site-footer .footer-brand {
    margin-bottom: 0;
  }

  .site-footer .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
  }

  .site-footer .footer-copy {
    grid-column: 1 / -1;
  }

  .spec-row {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
  }

  /* Ficha: hero + summary lado a lado */
  .product-page {
    max-width: var(--container);
    margin: 0 auto;
  }

  .product-hero {
    padding-top: var(--space-xl);
  }

  .product-summary {
    padding-top: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .trust-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .trust-item {
    font-size: var(--fs-tiny);
    text-align: center;
  }

  .faq-section,
  .lead-section {
    max-width: 48rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    max-width: 16ch;
  }

  .product-grid {
    gap: var(--space-xl);
  }
}

/* ============================================================
   19. PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important; /* excepción documentada: apagar TODAS las animaciones por accesibilidad */
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator-dot {
    animation: none;
  }

  .hero-particles {
    display: none; /* las partículas canvas se ocultan; web-js no debe arrancarlas */
  }
}

/* ============================================================
   PÁGINAS LEGALES + AVISO COOKIES (añadido post-agentes)
   ============================================================ */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.25rem 4rem;
}

.legal-content h1,
.legal-content h2 {
  line-height: 1.1;
}

.legal-content h2 {
  margin-top: 2.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-sec);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-accent);
}

.legal-updated {
  font-size: var(--fs-small);
  color: var(--color-text-sec);
  margin-bottom: 2rem;
}

.legal-table {
  overflow-x: auto;
}

.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.cookie-notice {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: var(--fs-small);
  color: var(--color-text-sec);
}

.cookie-notice a {
  color: var(--color-accent);
}

.cookie-notice-ok {
  margin-left: auto;
  padding: 0.45rem 1rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  cursor: pointer;
}

@media (min-width: 768px) {
  .cookie-notice {
    inset-inline: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 420px;
  }
}
