/* ============================================================
   FORJA Strength — styles.css
   Fuente de verdad visual: docs/BRAND_BRIEF.md §5
   Tema único oscuro · mobile-first (base 390px) · breakpoints
   min-width: 480 / 768 / 1024 / 1280
   Regla AA del brief: CTA = fondo rojo #FF4D2E + texto CARBÓN
   #0D0D0D. Texto blanco sobre rojo PROHIBIDO (3.3:1, falla AA).
   ============================================================ */


/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Paleta (brief §5) */
  --color-bg: #0D0D0D;            /* carbón, fondo global */
  --color-surface: #1A1A1A;       /* cards, secciones alternas */
  --color-surface-2: #141414;     /* franja intermedia */
  --color-border: #2A2A2A;        /* divisores, bordes de card */
  --color-text: #F2EFEA;          /* blanco hueso */
  --color-text-muted: #9BA0A6;    /* gris acero */
  --color-accent: #FF4D2E;        /* rojo forja */
  --color-accent-dark: #D93A1F;   /* hover/pressed */
  --color-suspendido: #5A5F64;    /* hierro apagado */
  --color-on-accent: #0D0D0D;     /* texto SOBRE rojo: siempre carbón */

  /* Glow rojo suave (sombras del acento) */
  --glow-accent: 0 0 24px rgba(255, 77, 46, 0.25);
  --glow-accent-strong: 0 0 32px rgba(255, 77, 46, 0.4);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.5);

  /* Tipografía */
  --font-display: 'Anton', 'Arial Narrow', sans-serif; /* NUNCA italic */
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --tracking-display: 0.06em; /* wordmark/display: el bordado cierra los espacios */
  --lh-display: 1.12;         /* Anton necesita aire: ≥1.05 siempre */
  --lh-body: 1.6;

  /* Escala tipográfica (móvil base) */
  --fs-hero: clamp(2.5rem, 11vw, 3.4rem);
  --fs-h2: clamp(1.75rem, 6.5vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;
  --fs-price-big: clamp(1.6rem, 6vw, 2rem);

  /* 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, 9vw, 6rem);

  /* Forma: dura e industrial — radios pequeños, bordes marcados */
  --radius-sm: 2px;
  --radius-md: 4px;
  --border-strong: 2px solid var(--color-border);

  /* Layout */
  --content-max: 72rem;
  --content-pad: 1.25rem;
  --header-h: 3.75rem;

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-med: 250ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--color-bg); /* fondo explícito: tema único oscuro */
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 var(--space-sm);
}

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

a:hover {
  color: var(--color-accent-dark);
}

/* Display: Anton uppercase, tracking del bordado, jamás italic */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400; /* Anton es monopeso */
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* ============================================================
   3. BOTONES Y ENLACES CTA
   ============================================================ */
.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-on-accent); /* carbón sobre rojo — regla AA del brief */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.75rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-fast), transform var(--t-fast);
}

.cta-button:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-on-accent);
  box-shadow: var(--glow-accent);
}

.cta-button:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* CTA secundario: enlace subrayado en rojo — jerarquía por debajo del botón */
.cta-link {
  display: inline-block;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.cta-link:hover {
  color: var(--color-accent);
}

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
  padding: 0.5rem var(--content-pad);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.12;
}

.brand-logo:hover {
  color: var(--color-accent);
}

/* Móvil: la nav de anclas se oculta (queda logo + CTA); aparece en ≥768px */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: var(--space-md);
}

.nav-list a {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--t-fast);
}

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

.nav-list a[aria-current="page"] {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-small);
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero-section {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 82svh;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05); /* luz dura, texto legible */
  will-change: transform; /* capa GPU 1 de 3 permitidas */
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--content-pad) var(--space-xl);
  /* Degradado carbón → transparente para anclar el texto (no es neón: permitido) */
  background: linear-gradient(to top, rgba(13, 13, 13, 0.85) 30%, rgba(13, 13, 13, 0) 100%);
}

.hero-headline {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-size: 1.0625rem;
  max-width: 34rem;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.hero-cta {
  box-shadow: var(--glow-accent);
}

.hero-cta:hover {
  box-shadow: var(--glow-accent-strong);
}

/* ============================================================
   6. BARRA DE CONFIANZA
   ============================================================ */
.trust-bar {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) var(--content-pad);
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: var(--content-max);
  margin: 0 auto;
}

.trust-item {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-sm);
}

.trust-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.trust-detail {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ============================================================
   7. SECCIONES GENÉRICAS
   ============================================================ */
main > section {
  padding: var(--space-section) var(--content-pad);
}

.section-header,
.section-title,
.section-sub {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--fs-h2);
}

.section-sub {
  color: var(--color-text-muted);
  max-width: 42rem;
  margin-left: 0;
  margin-bottom: var(--space-lg);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-header .section-title {
  margin-left: 0;
}

/* ============================================================
   8. SELLOS APROBADO / SUSPENDIDO (estampación tipo tampón)
   ============================================================ */
.stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: 1.12;
  padding: 0.3rem 0.7rem;
  border: 3px solid currentColor; /* borde grueso de tampón */
  border-radius: var(--radius-sm);
  transform: rotate(-6deg);
}

.stamp-aprobado {
  color: var(--color-accent);
  background: rgba(255, 77, 46, 0.08);
  box-shadow: var(--glow-accent);
}

.stamp-suspendido {
  color: var(--color-suspendido);
  background: rgba(90, 95, 100, 0.1);
}

/* ============================================================
   9. GRID DE CATEGORÍAS Y PRODUCTOS
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: var(--content-max);
  margin: 0 auto;
}

.category-card,
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-med), transform var(--t-med);
}

/* Categoría (no comprable): tono contenido, en espera */
.category-card {
  padding-bottom: var(--space-md);
}

.category-card-img,
.product-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-2); /* hueco visible mientras falta la foto */
  border-bottom: 1px solid var(--color-border);
}

.category-card-img {
  filter: grayscale(0.35) brightness(0.85); /* aún en el laboratorio: apagada */
}

.category-card-name,
.product-card-name {
  font-size: var(--fs-h3);
  margin: var(--space-sm) var(--space-sm) 0.25rem;
}

.category-card-price,
.product-card-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: var(--tracking-display);
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  margin: 0 var(--space-sm) 0;
}

/* Badge "En el laboratorio" / "Próximamente" — informativo, no compite con CTA */
.status-badge {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 1;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Producto comprable: destaca sobre la categoría en espera */
.product-card {
  border-color: var(--color-accent);
}

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

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.product-card-link:hover {
  color: inherit;
}

.product-card-link:hover .product-card-name {
  color: var(--color-accent);
}

.product-card-price {
  color: var(--color-accent);
}

.product-card .stamp {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  font-size: var(--fs-tiny);
}

.product-card-cta {
  margin: var(--space-sm);
}

/* ============================================================
   10. KITS (cards grandes destacadas)
   ============================================================ */
.kits-section {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.kit-card {
  position: relative;
  background: var(--color-surface);
  border: var(--border-strong);
  border-top: 3px solid var(--color-accent); /* filo al rojo: kit destacado */
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-bottom: var(--space-md);
}

.kit-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.kit-badge {
  top: var(--space-sm);
  left: var(--space-sm);
}

.kit-card-name {
  font-size: 1.5rem;
  margin: var(--space-md) var(--space-md) var(--space-xs);
}

.kit-card-desc {
  color: var(--color-text);
  margin: 0 var(--space-md) var(--space-sm);
}

.kit-card-price {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  margin: 0 var(--space-md);
}

/* ============================================================
   11. TESTADO A BASE DE SERIES
   ============================================================ */
.test-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: var(--content-max);
  margin: 0 auto;
  counter-reset: none;
}

.test-step {
  background: var(--color-surface);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

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

.test-step p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.test-step .stamp {
  margin: 0 0.2rem;
  transform: rotate(-6deg) scale(0.85);
}

/* ============================================================
   12. ROTO EN EL TEST — teaser (home) y página
   ============================================================ */
.roto-teaser {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.roto-teaser .section-title {
  color: var(--color-suspendido);
}

.roto-teaser-text {
  max-width: 42rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
}

/* --- roto.html --- */
.roto-intro {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: var(--space-lg);
}

.roto-headline {
  font-size: var(--fs-hero);
  color: var(--color-suspendido);
}

.roto-sub {
  max-width: 42rem;
  color: var(--color-text);
}

.roto-note {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-suspendido);
  padding-left: var(--space-sm);
  max-width: 42rem;
}

.roto-grid-section {
  padding-top: 0;
}

.roto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Cards de suspenso: escala apagada, sin acento rojo */
.roto-card {
  position: relative;
  background: var(--color-surface);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-bottom: var(--space-md);
}

.roto-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  filter: grayscale(0.85) brightness(0.7); /* hierro apagado */
}

.roto-card .stamp-suspendido {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
}

.roto-card-name {
  font-size: var(--fs-h3);
  color: var(--color-text-muted);
  margin: var(--space-md) var(--space-md) var(--space-sm);
}

.roto-card-data {
  margin: 0 var(--space-md) var(--space-sm);
}

.roto-card-data dt {
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-suspendido);
  margin-top: var(--space-xs);
}

.roto-card-data dd {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums; /* cifras de carga alineadas */
}

.roto-card-reel {
  margin: 0 var(--space-md);
  border-bottom-color: var(--color-suspendido);
  color: var(--color-text-muted);
}

.roto-card-reel:hover {
  color: var(--color-text);
}

.roto-empty {
  max-width: 42rem;
  margin: var(--space-lg) auto 0;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.roto-back {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.roto-back p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* ============================================================
   13. FAQ
   ============================================================ */
.faq-section {
  max-width: 46rem;
  margin: 0 auto;
  width: 100%;
}

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

.faq-item:first-of-type {
  border-top: 1px solid var(--color-border);
}

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

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

/* Indicador +/− industrial en vez del marker nativo */
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.12;
  color: var(--color-accent);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-item[open] .faq-question {
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 0 var(--space-md);
  color: var(--color-text-muted);
}

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

/* ============================================================
   14. EMAIL-GATE («Entra en la forja»)
   ============================================================ */
.lead-section {
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent);
  text-align: center;
}

.lead-section .section-title {
  margin-left: auto;
  margin-right: auto;
}

.lead-sub {
  max-width: 36rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
}

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

.lead-label {
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.lead-input {
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 0.85rem 1rem;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
}

.lead-input::placeholder {
  color: var(--color-suspendido);
}

.lead-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.lead-consent input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.lead-submit {
  width: 100%;
}

/* Estados de envío (web-js muestra/oculta) */
.lead-success {
  font-weight: 600;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  margin-bottom: 0;
}

.lead-success[hidden] {
  display: none;
}

/* Hook genérico de feedback (si web-js lo inyecta) */
.lead-feedback {
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: 0;
}

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

.lead-feedback.is-error {
  color: var(--color-text);
  border-left: 3px solid var(--color-accent-dark);
  padding-left: var(--space-xs);
}

/* ============================================================
   15. FOOTER
   Regla de casa móvil: marca full-width arriba + links en 2 col
   ============================================================ */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--content-pad) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: none;
}

.footer-brand {
  grid-column: 1 / -1; /* marca ocupa todo el ancho arriba */
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: var(--tracking-display);
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas también en móvil */
  gap: var(--space-lg);
}

.footer-col-title {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

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

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

.footer-copy {
  grid-column: 1 / -1;
  font-size: var(--fs-tiny);
  color: var(--color-suspendido);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  margin-bottom: 0;
}

/* ============================================================
   16. FICHA DE PRODUCTO (p/*.html)
   ============================================================ */
.product-page > section {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.product-media {
  padding-top: var(--space-lg);
}

.product-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-2);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.product-gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.product-buy {
  padding-top: var(--space-lg);
}

.product-name {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-xs);
}

/* Precio grande: Anton + tabular-nums */
.product-price {
  font-family: var(--font-display);
  font-size: var(--fs-price-big);
  letter-spacing: var(--tracking-display);
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.product-buy .stamp-aprobado {
  margin-bottom: var(--space-md);
}

.product-variant-form {
  margin: var(--space-md) 0;
}

.variant-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.variant-select {
  width: 100%;
  max-width: 20rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 0.75rem 1rem;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.variant-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.product-cta {
  width: 100%;
  max-width: 20rem;
}

/* --- Specs medidas --- */
.specs-note {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  max-width: 42rem;
}

.specs-list {
  margin: var(--space-md) 0 0;
  border-top: 1px solid var(--color-border);
  max-width: 36rem;
}

.specs-list dt {
  font-size: var(--fs-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding-top: var(--space-sm);
}

.specs-list dd {
  margin: 0.15rem 0 var(--space-sm);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

/* --- Tabla de test --- */
.product-test {
  overflow-x: auto; /* tabla nunca rompe el layout en móvil */
}

.test-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-md);
}

.test-table th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: 1.12;
  color: var(--color-text-muted);
  text-align: left;
  padding: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
}

.test-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}

.test-table tbody tr:last-child td {
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Garantía / envío --- */
.product-guarantee {
  background: var(--color-surface);
  border: var(--border-strong);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg) !important; /* excepción documentada: main>section
     aplica padding de sección; aquí la card necesita su padding propio */
}

.product-guarantee .section-title {
  font-size: var(--fs-h3);
  margin-left: 0;
}

.shipping-list li {
  color: var(--color-text-muted);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: var(--space-xs);
}

.shipping-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 2px;
  background: var(--color-accent);
}

/* --- Cross-sell --- */
.product-crosssell {
  border-top: 1px solid var(--color-border);
}

.product-crosssell .section-title {
  margin-left: 0;
  font-size: var(--fs-h3);
}

.product-crosssell p {
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* ============================================================
   17. CTA STICKY (ficha de producto)
   Contrato con web-js: la barra vive oculta; cuando el CTA de
   compra sale del viewport en MÓVIL, web-js añade `.is-stuck`
   y la barra se fija abajo. En ≥768px nunca se muestra.
   ============================================================ */
.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--content-pad);
  background: var(--color-surface);
  border-top: 2px solid var(--color-accent);
  transform: translateY(110%);
  transition: transform var(--t-med);
  will-change: transform; /* capa GPU 2 de 3 permitidas */
}

.cta-sticky.is-stuck {
  transform: translateY(0);
}

.cta-sticky-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cta-sticky-name {
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-sticky-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: var(--tracking-display);
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}

.cta-sticky-button {
  flex-shrink: 0;
  padding: 0.7rem 1.5rem;
}

/* ============================================================
   18. PÁGINA DE GRACIAS
   ============================================================ */
.thanks-page {
  min-height: 60svh;
  display: flex;
  align-items: center;
}

.thanks-section {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.thanks-stamp {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.thanks-headline {
  font-size: var(--fs-h2);
}

.thanks-sub {
  color: var(--color-text);
}

.thanks-note {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

.thanks-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ============================================================
   19. PÁGINAS LEGALES (las crea web-seo con estas clases)
   ============================================================ */
.legal-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--content-pad);
}

.legal-page h1 {
  font-size: var(--fs-h2);
}

.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-xl);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
}

.legal-content ul li,
.legal-content ol li {
  list-style: disc;
  margin-left: 1.25rem;
  margin-bottom: var(--space-xs);
}

.legal-content ol li {
  list-style: decimal;
}

.legal-content a {
  border-bottom: 1px solid var(--color-accent);
}

.legal-updated {
  font-size: var(--fs-small);
  color: var(--color-suspendido);
  border-left: 3px solid var(--color-border);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  margin: var(--space-md) 0;
  display: block;
  overflow-x: auto; /* tablas legales largas no rompen móvil */
}

.legal-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  white-space: nowrap;
}

.legal-table td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: top;
}

/* ============================================================
   20. AVISO DE COOKIES (lo inyecta web-js)
   ============================================================ */
.cookie-notice {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 110; /* por encima del cta-sticky */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-surface);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.cookie-notice p {
  margin: 0;
}

.cookie-notice a {
  border-bottom: 1px solid var(--color-accent);
}

.cookie-notice-ok {
  align-self: flex-start;
  background: var(--color-accent);
  color: var(--color-on-accent); /* carbón sobre rojo, regla AA */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.cookie-notice-ok:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* ============================================================
   21. BREAKPOINTS (mobile-first)
   ============================================================ */

/* ---------- ≥480px ---------- */
@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

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

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

  .cookie-notice {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 42rem;
  }

  .cookie-notice-ok {
    align-self: center;
    flex-shrink: 0;
  }
}

/* ---------- ≥768px ---------- */
@media (min-width: 768px) {
  :root {
    --content-pad: 2rem;
  }

  .main-nav {
    display: block; /* nav de anclas visible en tablet+ */
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .kits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .roto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer desktop: marca a la izquierda, columnas a la derecha */
  .site-footer {
    grid-template-columns: 1.5fr 2fr;
    align-items: start;
  }

  .footer-brand {
    grid-column: auto;
  }

  /* Ficha de producto: media + compra lado a lado */
  .product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-lg);
    max-width: var(--content-max);
    margin: 0 auto;
  }

  .product-media {
    grid-column: 1;
    grid-row: 1;
  }

  .product-buy {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .product-specs,
  .product-test,
  .product-guarantee,
  .product-crosssell,
  .product-faq {
    grid-column: 1 / -1;
  }

  .test-table {
    min-width: 0; /* con ancho de sobra ya no fuerza scroll */
  }

  /* El CTA sticky es SOLO móvil: en tablet+ jamás aparece,
     aunque web-js llegue a añadir .is-stuck */
  .cta-sticky,
  .cta-sticky.is-stuck {
    display: none;
  }
}

/* ---------- ≥1024px ---------- */
@media (min-width: 1024px) {
  :root {
    --fs-hero: clamp(3.4rem, 6vw, 4.75rem);
    --fs-h2: 2.75rem;
  }

  .hero-section {
    min-height: 88svh;
  }

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

  .trust-item {
    border-left: none;
    border-top: 3px solid var(--color-accent);
    padding-left: 0;
    padding-top: var(--space-sm);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* ---------- ≥1280px ---------- */
@media (min-width: 1280px) {
  :root {
    --content-pad: 2.5rem;
  }

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

  .product-page {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ============================================================
   22. REDUCED MOTION — desactiva animaciones y transiciones
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important; /* excepción documentada:
       apagar TODO movimiento exige ganar a cualquier especificidad */
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-video,
  .cta-sticky {
    will-change: auto;
  }
}

/* Legales: clases adicionales usadas por las páginas RGPD */
.legal-section {
  margin-top: 2.5rem;
}

.legal-headline {
  line-height: 1.12;
  margin-bottom: 0.75rem;
}
