﻿/* home.css — Mercado direction. Scoped to body.home; no effect on other pages. */

/* ─────────────────────────────────────────
   Base overrides for homepage
───────────────────────────────────────── */
body.home {
  font-family: var(--font-body-mercado);
  --color-brand: var(--fire);
  --color-brand-hover: var(--fire-deep);
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
/* Naranja señal vivo, no fire oscuro — texto negro encima (regla AA: naranja
   siempre fondo, nunca texto; con --gray-900 encima el contraste es holgado). */
.home-hero {
  background-color: var(--orange-500);
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 6rem);
}

.home-hero__inner {
  /* text-align controlled per breakpoint */
}

.home-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: var(--space-3);
  animation: home-enter 550ms var(--ease-out) 0ms both;
}

.home-hero__sub {
  font-family: var(--font-body-mercado);
  font-size: var(--text-md);
  font-weight: 500;
  font-style: normal;
  color: var(--gray-800);
  margin-inline: auto;
  max-width: 44ch;
  line-height: 1.55;
  margin-bottom: var(--space-5);
  text-wrap: pretty;
  animation: home-enter 550ms var(--ease-out) 80ms both;
}

/* Base visual (bg/color/hover/focus-visible/transition) viene de .btn .btn--dark
   en components.css — aquí solo lo que es específico de este CTA. */
.home-hero__cta {
  font-family: var(--font-body-mercado);
  font-size: 1.0625rem;
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-2);
  animation: home-enter 550ms var(--ease-out) 240ms both;
}

.home-hero__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

.home-hero__cta:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.home-hero__cta:hover svg {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────
   Section scaffolding (shared)
───────────────────────────────────────── */
.home-section {
  padding-block: var(--space-8);
}

.home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-4);
}

.home-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}

.home-section__title--dark {
  color: var(--text-primary);
}

.home-section__link {
  font-family: var(--font-body-mercado);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright-on-dark);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.home-section__link:hover {
  color: #fff;
  text-decoration: none;
}

.home-section__link--dark {
  color: var(--fire-deep);
}

.home-section__link--dark:hover {
  color: var(--orange-800);
  text-decoration: none;
}

/* ─────────────────────────────────────────
   Categories — dark section
───────────────────────────────────────── */
.home-categories {
  background-color: var(--bg-dark-warm);
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  min-height: 168px;
  background-color: var(--bg-dark-warm-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.home-cat-card:hover {
  background-color: var(--fire);
  border-color: var(--fire);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  text-decoration: none;
  color: var(--gray-900);
}

.home-cat-card:focus-visible {
  outline: 2px solid var(--fire-light);
  outline-offset: 2px;
}

.home-cat-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-dark-warm-elevated);
  border-radius: var(--radius-md);
  color: var(--fire);
  transition:
    color var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}

.home-cat-card__icon svg,
.home-cat-card__icon i {
  width: 36px;
  height: 36px;
}

.home-cat-card:hover .home-cat-card__icon {
  background: var(--gray-900);
  color: var(--fire);
}

/* Sin anclaje al fondo — icono, contador y título siempre en flujo normal
   de arriba abajo. Así el contador queda a la misma altura en toda la fila
   (justo tras el icono) y el título arranca siempre en el mismo punto,
   en vez de "flotar" según cuántas líneas ocupe cada título. */
.home-cat-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.home-cat-card__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fire-light);
  transition: color var(--duration-normal) var(--ease-out);
}

.home-cat-card:hover .home-cat-card__count {
  color: var(--gray-800);
}

/* ─────────────────────────────────────────
   Product grid sections
───────────────────────────────────────── */
.home-products {
  background-color: var(--gray-50);
}

.home-products--alt {
  background-color: var(--bg-warm-alt);
}

/* Product card overrides — font + price color */
body.home .product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
}

/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */
@keyframes home-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (min-width: 768px) {
  .home-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: var(--space-4);
  }

  .home-cat-card {
    min-height: 184px;
  }
}

/* 10 categorías → 5 columnas fijas, 2 filas limpias (auto-fill deja huecos según el ancho real) */
@media (min-width: 1024px) {
  .home-cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .home-cat-card {
    padding: var(--space-5) var(--space-4);
    min-height: 200px;
  }

  .home-cat-card__icon {
    width: 72px;
    height: 72px;
  }

  .home-cat-card__icon svg,
  .home-cat-card__icon i {
    width: 40px;
    height: 40px;
  }

  .home-cat-card__name {
    font-size: var(--text-lg);
  }
}

/* ─────────────────────────────────────────
   Reduced motion
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .home-hero__headline,
  .home-hero__sub,
  .home-hero__cta {
    animation: none;
  }

  .home-hero__cta,
  .home-cat-card {
    transition: background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
  }

  .home-hero__cta:hover,
  .home-cat-card:hover {
    transform: none;
  }

  .home-hero__cta svg,
  .home-hero__cta:hover svg {
    transition: none;
    transform: none;
  }
}

/* ─────────────────────────────────────────
   Z1 Hero — layout extensions
───────────────────────────────────────── */
.home-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.home-hero__text { flex: 1; }

.home-hero__first-time {
  font-size: var(--text-sm);
  color: var(--gray-800);
  margin-bottom: var(--space-3);
}
.home-hero__first-time a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin-top: var(--space-2);
}

.home-hero__badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-900);
  background: rgba(28,25,23,.1);
  border: 1px solid rgba(28,25,23,.2);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.home-hero__side {
  flex-shrink: 0;
  min-width: 200px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contador de rotación: panel negro "reloj de estación", altura completa
   del hero para no flotar suelto con hueco muerto alrededor */
.home-hero__side:not(:has(.home-hero-product)) {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

/* ── Producto destacado del hero (protagonista) ── */
.home-hero-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 320px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  text-align: center;
  text-decoration: none;
  position: relative;
  box-shadow: var(--shadow-xl);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.home-hero-product:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.home-hero-product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-sale);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  line-height: 1;
  z-index: 1;
}

.home-hero-product__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-1);
}

.home-hero-product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-hero-product__name {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero-product__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-top: 2px;
}

.home-hero-product__price-current {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--fire-deep);
  line-height: 1;
}

.home-hero-product__price-original {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Fondo blanco translúcido sobre naranja apenas se veía (bajo contraste
   con el propio texto blanco). Fondo oscuro sólido para que el contador
   destaque de verdad. */
.home-hero-product__countdown {
  width: 320px;
  margin-top: var(--space-2);
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 8px var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.home-hero-product__countdown-label {
  font-size: var(--text-xs);
  color: var(--text-muted-on-dark);
  white-space: nowrap;
}

.home-hero-product__countdown .home-countdown {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 0; /* .home-countdown trae margin-bottom pensado para la
    variante apilada (h/m/s en columna); aquí es texto en línea y ese margen
    descentraba verticalmente el contador frente a la etiqueta */
}

/* Reloj de estación: bajo 60 min, pasa a --sale-500 (urgencia real, nunca decorativa).
   El pulso solo arranca en este último tramo — antes el reloj no llama la
   atención, aquí sí porque de verdad quedan minutos. */
.home-countdown.is-urgent .home-countdown__num,
.home-hero-product__countdown.is-urgent .home-countdown {
  color: var(--red-600);
  animation: home-countdown-urgent-pulse 1s ease-in-out infinite;
}

@keyframes home-countdown-urgent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .home-countdown.is-urgent .home-countdown__num,
  .home-hero-product__countdown.is-urgent .home-countdown {
    animation: none;
  }
}

.home-hero-product__countdown .home-countdown__num {
  font-size: var(--text-md);
  min-width: auto;
}

.home-hero__rotation-label {
  font-size: var(--text-xs);
  color: var(--text-muted-on-dark);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.home-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.home-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-countdown__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
  min-width: 2ch;
  transition: color var(--duration-normal) var(--ease-out);
}

.home-countdown__label {
  font-size: var(--text-xs);
  color: var(--text-muted-on-dark);
  margin-top: 2px;
}

.home-countdown__sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}

.home-hero__daily-label {
  font-size: var(--text-xs);
  color: var(--text-muted-on-dark);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255,255,255,.15);
}

/* Mobile: stack, center. Featured product stays visible (it's the protagonist);
   the plain countdown-only fallback hides — redundant with the top-bar timer. */
@media (max-width: 767px) {
  .home-hero {
    padding-top: clamp(4rem, 18vw, 5.5rem);
  }
  .home-hero__inner {
    flex-direction: column;
    text-align: center;
  }
  .home-hero__badges { justify-content: center; }
  .home-hero__first-time { text-align: center; }
  .home-hero__side:not(:has(.home-hero-product)) { display: none; }
  .home-hero-product,
  .home-hero-product__countdown { width: 100%; max-width: 300px; margin-inline: auto; }
}

/* Desktop: side visible, text left-aligned */
@media (min-width: 768px) {
  .home-hero__text { text-align: left; }
  .home-hero__sub { margin-inline: 0; max-width: 56ch; }
  .home-hero__first-time { text-align: left; }
  .home-hero__badges { justify-content: flex-start; }
}

/* ─────────────────────────────────────────
   Z3 Banner Temporada
───────────────────────────────────────── */
.home-season-banner {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-2) 0;
}

.home-season-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.home-season-banner__text {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.home-season-banner__cta {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fire-deep);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out);
}
.home-season-banner__cta:hover {
  color: var(--orange-800);
  text-decoration: none;
}

/* ─────────────────────────────────────────
   Z1b Propuesta de Valor — banda oscura "confianza" (el negro da lujo,
   corta el naranja del hero y evita 4 cuadros blancos genéricos).
   Antes: icono 40px al 14% opacidad + texto xs + sin separación entre
   items = tira plana que se perdía entre el hero naranja y las categorías.
   Ahora: icono en badge sólido, texto más grande, cada item con su propia
   card (borde + fondo propio) para que se lea como 4 argumentos, no una
   franja de relleno. */
.home-value {
  background: var(--bg-dark-warm);
  padding-block: var(--space-8);
}

.home-value__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.home-value__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-4);
  background: var(--bg-dark-warm-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}

.home-value__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--fire);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-value__icon svg,
.home-value__icon i {
  width: 26px;
  height: 26px;
}

.home-value__body { min-width: 0; }

.home-value__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 4px;
}

.home-value__text {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  color: var(--text-muted-on-dark);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 1023px) {
  .home-value__grid { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────
   Z5 Cómo Funciona
───────────────────────────────────────── */
/* Sección con tinte — antes bg blanco + cards blancas = cero contraste,
   la sección quedaba plana ("pasa sin pena ni gloria"). Ahora las cards
   (blancas) sí resaltan sobre el fondo. */
.home-how { background: var(--gray-50); padding-block: var(--space-10); }

.home-section__head--center {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.home-section__sub {
  font-family: var(--font-body-mercado);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.home-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  /* Los números se salen por arriba de la card (margin negativo), así que
     el hueco real entre título y card es menor de lo que parece — más
     margen aquí para que el título respire de verdad. */
  margin-top: var(--space-9);
}

.home-how__step {
  position: relative;
  background: var(--gray-0);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-md);
}

/* Flecha de proceso entre pasos — subraya que es una secuencia, no 3
   datos sueltos */
.home-how__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--space-5) / 2 - 10px);
  width: 18px;
  height: 18px;
  background: var(--gray-50);
  border-top: 3px solid var(--fire);
  border-right: 3px solid var(--fire);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.home-how__step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--fire);
  color: var(--gray-900);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: calc(-1 * var(--space-6) - 32px) auto var(--space-3);
  border: 4px solid var(--gray-50);
  box-shadow: var(--shadow-md);
}

.home-how__step-text {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 767px) {
  .home-how__steps { grid-template-columns: 1fr; gap: var(--space-8); }
  .home-how__step::after { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-how__steps { grid-template-columns: 1fr 1fr; }
  .home-how__step:last-child { grid-column: 1 / -1; max-width: 320px; margin-inline: auto; }
  .home-how__step:nth-child(2)::after { display: none; }
}

/* ─────────────────────────────────────────
   Z6 Prueba Social
───────────────────────────────────────── */
.home-reviews { background: var(--bg-warm-alt); }

.home-reviews__avg {
  font-family: var(--font-body-mercado);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--yellow-600);
}

.home-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.home-review-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.home-review-card__stars {
  font-size: var(--text-sm);
  color: var(--yellow-500);
  letter-spacing: 1px;
}

.home-review-card__text {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.home-review-card__text p { margin: 0; }

.home-review-card__author {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: normal;
}

/* ─────────────────────────────────────────
   Z7 Lista VIP
───────────────────────────────────────── */
.home-vip { background: var(--gray-0); }

.home-vip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: stretch;
}

.home-vip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body-mercado);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fire-deep);
  margin-bottom: var(--space-2);
}

.home-vip__eyebrow i {
  width: 16px;
  height: 16px;
}

.home-vip__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.home-vip__sub {
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 var(--space-4);
}

.home-vip__benefits-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

.home-vip__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-vip__benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* svg Y i: lucide.createIcons() sustituye el <i data-lucide> por un <svg>
   tras cargar — si el selector solo apunta a "i" el badge desaparece en
   cuanto el JS pinta los iconos. */
.home-vip__benefits i,
.home-vip__benefits svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  flex-shrink: 0;
  background: rgba(249, 115, 22, 0.12);
  border-radius: 50%;
  color: var(--fire-deep);
}

.home-vip__social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.home-vip__social-proof i,
.home-vip__social-proof svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--fire-deep);
}

.home-vip__benefits-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-vip__panel {
  background: var(--gray-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

/* Confirmación de alta: la marca no hace confetti, pero un apunte real a
   la lista VIP se merece más que un párrafo plano — check dibujado a mano
   + entrada suave. El error se queda serio (solo fade, sin check). */
.home-vip .wc-notice {
  animation: home-notice-enter 350ms var(--ease-out) both;
}

.home-vip .wc-notice--success {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.home-vip .wc-notice--success::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  animation: home-notice-check-pop 400ms var(--ease-out) 150ms both;
}

@keyframes home-notice-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-notice-check-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-vip .wc-notice,
  .home-vip .wc-notice--success::before {
    animation: none;
  }
}

.home-vip__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-vip__field {
  position: relative;
  display: block;
}

.home-vip__field i,
.home-vip__field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.home-vip__input {
  width: 100%;
  background: var(--gray-0);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 13px 14px 13px 42px;
  font-family: var(--font-body-mercado);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.home-vip__input::placeholder { color: var(--text-muted); }
.home-vip__input:focus-visible {
  outline: none;
  border-color: var(--fire);
  box-shadow: var(--shadow-focus);
}

/* Segmentación en modal: no abrumar la captación con 10+ checkboxes visibles
   y no desplazar el resto del formulario al abrirse (antes era <details>) */
.home-vip__cats-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-family: var(--font-body-mercado);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--gray-0);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 8px 14px;
}
.home-vip__cats-toggle i,
.home-vip__cats-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--fire-deep);
}
.home-vip__cats-toggle:hover { border-color: var(--fire); }

.home-vip__cats-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(420px, calc(100vw - 2 * var(--space-3)));
  max-height: calc(100vh - 2 * var(--space-4));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--gray-0);
  color: var(--text-primary);
  overflow: auto;
}

.home-vip__cats-dialog::backdrop {
  background: rgba(28,25,23,.55);
}

.home-vip__cats-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.home-vip__cats-dialog-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.home-vip__cats-dialog-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1;
  padding: var(--space-1);
}
.home-vip__cats-dialog-close:hover { color: var(--text-primary); }

.home-vip__cats-dialog-done {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: var(--fire);
  color: var(--gray-900);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.home-vip__cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border: none;
  padding: 0;
  margin: 0;
}

.home-vip__cat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body-mercado);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--gray-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.home-vip__cat-label:hover { border-color: var(--fire); color: var(--text-primary); }

.home-vip__cats label:last-child {
  grid-column: 1 / -1;
  justify-content: center;
  font-weight: 700;
}

@media (pointer: coarse) {
  .home-vip__cat-label {
    min-height: 44px;
    padding-inline: 14px;
  }
}
.home-vip__cat-label input[type="checkbox"] { width: 12px; height: 12px; accent-color: var(--fire); }

/* Base visual (bg/hover/focus-visible/transition) viene de .btn .btn--primary
   en components.css. Mercado direction exige texto oscuro sobre --fire
   (6.2:1, ver tokens.css) en vez del texto blanco por defecto de .btn--primary. */
.home-vip__cta {
  color: var(--gray-900);
  font-family: var(--font-body-mercado);
  font-size: var(--text-base);
  padding: 14px var(--space-3);
}
.home-vip__cta:hover { color: var(--gray-900); }

.home-vip__disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

@media (max-width: 767px) {
  .home-vip__inner { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ─────────────────────────────────────────
   Z8 Texto SEO
───────────────────────────────────────── */
.home-seo {
  background: var(--gray-50);
  padding-block: var(--space-10);
}

/* Bloque SEO como card real, ancho completo del container. Antes era un
   muro de 3 párrafos de igual peso visual — se leía como relleno genérico.
   Ahora: intro corta + 2 puntos de confianza como lista con check-badge
   (mismo lenguaje visual que "Cómo funciona"/"Por qué apuntarte"), y un
   acento de color a la izquierda para que la sección no pase desapercibida. */
.home-seo__card {
  max-width: none;
  background: var(--gray-0);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}

.home-seo__title-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.home-seo__title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(249, 115, 22, 0.12);
  border-radius: 50%;
  color: var(--fire-deep);
}

.home-seo__title-icon svg,
.home-seo__title-icon i {
  width: 18px;
  height: 18px;
}

.home-seo__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

.home-seo__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-seo__body p {
  font-family: var(--font-body-mercado);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.65;
  text-wrap: pretty;
  margin: 0;
}

.home-seo__body p.home-seo__lede {
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 400;
}

.home-seo__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-seo__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-family: var(--font-body-mercado);
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.5;
}

.home-seo__points i,
.home-seo__points svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  flex-shrink: 0;
  background: rgba(249, 115, 22, 0.12);
  border-radius: 50%;
  color: var(--fire-deep);
}

/* ─────────────────────────────────────────
   Z9 FAQ
───────────────────────────────────────── */
.home-faq { background: #fff; }

.home-faq__title { margin-bottom: var(--space-4); }

.home-faq__schema-note {
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 8px;
}

.home-faq__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.home-faq__item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.home-faq__question {
  font-family: var(--font-body-mercado);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.home-faq__answer {
  font-family: var(--font-body-mercado);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.home-faq__answer p { margin: 0; }

@media (max-width: 767px) {
  .home-faq__list { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   Z10 CTA final — muro de señal naranja (cierre, texto oscuro sobre naranja)
───────────────────────────────────────── */
.home-cta-final {
  background: var(--orange-500);
  padding-block: var(--space-8);
}

.home-cta-final__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.home-cta-final__copy { flex: 1; min-width: 260px; }

.home-cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gray-900);
  margin: 0 0 var(--space-1);
}

.home-cta-final__sub {
  font-family: var(--font-body-mercado);
  font-size: var(--text-md);
  color: var(--gray-800);
  line-height: 1.5;
  margin: 0;
  max-width: 46ch;
}

/* Base visual viene de .btn .btn--dark en components.css. */
.home-cta-final__btn {
  flex-shrink: 0;
  font-family: var(--font-body-mercado);
  font-size: var(--text-md);
  padding: var(--space-2) var(--space-5);
}
.home-cta-final__btn svg,
.home-cta-final__btn i { width: 18px; height: 18px; transition: transform var(--duration-fast) var(--ease-out); }
.home-cta-final__btn:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.home-cta-final__btn:hover svg,
.home-cta-final__btn:hover i { transform: translateX(3px); }

/* ─────────────────────────────────────────
   Products grid — 1 col on mobile
───────────────────────────────────────── */
@media (max-width: 767px) {
  .home-products .products-grid,
  .home-products--alt .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* ─────────────────────────────────────────
   Product card — savings amount
───────────────────────────────────────── */
.product-card__savings {
  font-family: var(--font-body-mercado);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green-600);
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-card__savings .woocommerce-Price-amount,
.product-card__savings bdi {
  color: inherit;
  font-weight: inherit;
}

/* ─────────────────────────────────────────
   Utility
───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
