/* ============================================================
   SOY SALCHICHA LOVER — Página de ventas
   Estilos mobile-first, estética blanca/premium, acento naranja #F26A1B
   ============================================================ */

/* ------------------------------------------------------------
   1. FUENTES PROPIAS (Delight)
   Coloca los archivos reales en /fonts:
     /fonts/Delight-Black-Negro.woff2   -> titulares
     /fonts/Delight-Normal.woff2        -> cuerpo / subtextos
   Mientras no existan, el navegador usa el fallback elegante.
------------------------------------------------------------ */
@font-face {
  font-family: 'Delight';
  src: url('/fonts/Delight-Normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Delight';
  /* "Black Negro" = peso máximo, usado en titulares */
  src: url('/fonts/Delight-Black-Negro.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   2. TOKENS / VARIABLES
------------------------------------------------------------ */
:root {
  /* Paleta */
  --color-white: #ffffff;
  --color-text: #1f1a1d;
  --color-text-soft: #6f6a64;
  --color-accent: #f26a1b;
  --color-accent-dark: #d2540b; /* hover del botón */
  --color-accent-soft: #fff1e6; /* fondo suave */
  --color-border: #fbdcc4; /* borde suave */
  --color-bg-alt: #fffaf6; /* fondo alternativo muy sutil */
  --color-green: #25b06a; /* punto de comunidad + checks */
  --color-green-soft: #e7f5ec; /* fondo suave de checks verdes */
  --color-danger: #e0533a; /* acento de la sección de dolores */
  --color-danger-soft: #fdeae6; /* fondo suave de dolores */

  /* Tipografía */
  --font-heading: 'Delight', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Delight', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 760px;
  --gutter: 20px; /* márgenes laterales en mobile */

  /* Radios y sombras */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px rgba(31, 26, 29, 0.06);
  --shadow-card: 0 6px 24px rgba(242, 106, 27, 0.07);
  --shadow-focus: 0 0 0 4px rgba(242, 106, 27, 0.18);

  /* Transiciones */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.18s;
  --t-med: 0.32s;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  /* Evita scroll horizontal en cualquier dispositivo */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* Accesibilidad: ocultar visualmente sin perder semántica */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible coherente en toda la landing */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 8px;
}

/* ------------------------------------------------------------
   4. LAYOUT / CONTENEDORES
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(48px, 9vw, 96px);
}

.section__head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section__title {
  /* El titular llena el ancho de la pantalla y se mantiene en 2 renglones
     (con <br class="brk">) en los anchos comunes (≥360px). El tamaño escala
     con el viewport para que la línea larga ocupe casi todo el ancho. */
  font-size: clamp(1.1rem, 5.45vw, 2.35rem);
  line-height: 1.2;
}

/* El salto de línea controlado de los titulares se respeta en TODOS
   los anchos: los títulos siempre quedan en 2 renglones. */
.brk {
  display: inline;
}

.section__subtitle {
  margin-top: 14px;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* ------------------------------------------------------------
   5. DECORACIÓN DE FONDO (blobs blur rosados sutiles)
------------------------------------------------------------ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.blob--1 {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -100px;
  background: var(--color-accent-soft);
}

.blob--2 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: -140px;
  background: #fbeef6;
  opacity: 0.6;
}

.blob--3 {
  width: 280px;
  height: 280px;
  bottom: -120px;
  right: -60px;
  background: var(--color-accent-soft);
  opacity: 0.45;
}

/* ------------------------------------------------------------
   6. HERO
------------------------------------------------------------ */
.hero {
  padding-top: clamp(40px, 8vw, 72px);
  /* Menos aire debajo del hero para que la sección de dolores quede
     más pegada a la imagen. */
  padding-bottom: clamp(20px, 4vw, 36px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  /* En mobile: texto → libro → CTA (el libro va entre el subtítulo
     y el botón principal). */
  grid-template-areas:
    'text'
    'media';
  gap: clamp(32px, 8vw, 48px);
  align-items: center;
}

.hero__text {
  grid-area: text;
  text-align: center;
}

/* Con el hero centrado, el subtítulo se centra en su columna */
.hero__text .hero__subtitle {
  margin-inline: auto;
}

.hero__cta {
  margin-top: 26px;
}

.hero__trust {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.hero__title-accent {
  color: var(--color-accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Punto verde "en vivo" del badge de comunidad */
.eyebrow__dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 0 rgba(37, 176, 106, 0.45);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 176, 106, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(37, 176, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 176, 106, 0);
  }
}

.hero__title {
  font-size: clamp(1.75rem, 7.5vw, 3.25rem);
  margin-bottom: 18px;
}

.hero__subtitle {
  color: var(--color-text-soft);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  max-width: 560px;
  /* El espacio hacia el libro lo da el gap del grid del hero. */
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   7. FORMULARIO
------------------------------------------------------------ */
.lead-form {
  max-width: 520px;
}

.lead-form__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-form__input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.lead-form__input::placeholder {
  color: #b4a8af;
}

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

/* Estado de error de validación */
.lead-form__input.is-invalid {
  border-color: #d2576f;
  box-shadow: 0 0 0 4px rgba(210, 87, 111, 0.14);
}

.lead-form__microcopy {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.lead-form__message {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 400;
  min-height: 1.2em;
}

.lead-form__message.is-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 10px;
  border: 1px solid rgba(47, 143, 91, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(47, 143, 91, 0.08);
  padding: 10px 12px;
  color: #2f8f5b;
  text-align: left;
}

.lead-form__success-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1f7a4c;
}

.lead-form__success-sub {
  font-weight: 400;
  font-size: 0.8rem;
  color: #5a6b60;
  line-height: 1.35;
}

.lead-form__success-sub b {
  color: #2f8f5b;
  font-weight: 600;
}

.lead-form__message.is-error {
  color: #c0394f;
}

/* ------------------------------------------------------------
   8. BOTONES
------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 400;
  /* El texto del botón nunca se parte en 2 renglones */
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Estado cargando: oculta el label y muestra spinner */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.btn.is-loading .btn__label {
  visibility: hidden;
}

.btn__spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
}

.btn.is-loading .btn__spinner {
  opacity: 1;
  animation: spin 0.7s linear infinite;
}

.btn:disabled {
  cursor: not-allowed;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------
   9. MOCKUP DE LA GUÍA (CSS)
------------------------------------------------------------ */
.hero__media {
  grid-area: media;
  display: flex;
  justify-content: center;
}

.guide-frame {
  position: relative;
  width: 100%;
  /* El PNG ya viene recortado al contorno del libro, así que este ancho
     es casi todo libro (se ve grande). Escala con el viewport en mobile. */
  max-width: min(240px, 88vw);
  display: flex;
  justify-content: center;
}

/* Resplandor rosado suave detrás del mockup del libro */
.guide-frame__glow {
  position: absolute;
  inset: 6% 6% -4% 6%;
  background: radial-gradient(
    ellipse at center,
    rgba(242, 106, 27, 0.2),
    rgba(242, 106, 27, 0) 70%
  );
  filter: blur(26px);
  z-index: 0;
}

.guide-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  /* La imagen ya es un render 3D con fondo transparente: la sombra
     sigue la silueta del libro para despegarlo del fondo blanco. */
  filter: drop-shadow(0 16px 32px rgba(31, 26, 29, 0.15));
  /* Movimiento muy sutil en flotación */
  animation: floaty 6s ease-in-out infinite;
}

/* Placeholder elegante mientras no exista /assets/guide-mockup.png */
.guide-mockup.is-missing {
  display: grid;
  place-items: center;
  width: 300px;
  height: 380px;
  padding: 28px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  background: linear-gradient(160deg, #ffffff, var(--color-accent-soft));
  border: 1.5px dashed var(--color-border);
  filter: none;
  animation: none;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Foto/mockup de producto (collage real): sombra suave + flotación sutil */
.product-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(31, 26, 29, 0.14));
  animation: floaty 6s ease-in-out infinite;
}

/* El collage del hero es apaisado: le damos más ancho */
.hero__media .guide-frame {
  max-width: min(340px, 90vw);
}

/* ------------------------------------------------------------
   10. BENEFICIOS (cards)
------------------------------------------------------------ */
/* Todas las secciones comparten el mismo fondo blanco: no hay cambios
   de color ni líneas divisorias entre una sección y la siguiente. La
   estructura visual la dan las tarjetas, paneles y los blobs de fondo. */
.benefits {
  background: transparent;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  /* El padding lo controla el desplegable interno para que la card
     plegada sea lo más compacta posible. */
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(242, 106, 27, 0.12);
}

/* Desplegable de las cards (dolores/beneficios) */
.card__toggle > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.card__toggle > summary::-webkit-details-marker {
  display: none;
}

/* Indicador +/− a la derecha del titular */
.card__toggle > summary::after {
  content: '+';
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--t-fast) var(--ease);
}

.card__toggle[open] > summary::after {
  content: '−';
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: 1.08rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.card__text {
  color: var(--color-text-soft);
  font-size: 0.98rem;
  padding: 0 20px 20px;
}

/* ------------------------------------------------------------
   11. PARA QUIÉN ES (checklist)
------------------------------------------------------------ */
.audience__panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-soft);
}

.audience__panel .section__title {
  text-align: center;
  margin-bottom: 28px;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 16px;
}

.checklist__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--color-text);
  font-size: 1.02rem;
}

.checklist__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-green-soft);
  color: var(--color-green);
  font-weight: 900;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ------------------------------------------------------------
   12. CONFIANZA / COMUNIDAD
------------------------------------------------------------ */
.community {
  background: transparent;
}

.community__inner {
  text-align: center;
}

.community__inner .section__subtitle {
  margin-inline: auto;
  max-width: 600px;
}

.community__highlight {
  margin-top: 32px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  box-shadow: var(--shadow-card);
  max-width: 520px;
  margin-inline: auto;
}

.community__number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--color-accent);
  line-height: 1;
}

.community__label {
  color: var(--color-text-soft);
  font-size: 1rem;
}

/* ------------------------------------------------------------
   13. CTA FINAL
------------------------------------------------------------ */
.cta-final__card {
  background: linear-gradient(170deg, var(--color-white), var(--color-accent-soft));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cta-final__card .section__title {
  margin-bottom: 12px;
}

.cta-final__card .section__subtitle {
  margin-inline: auto;
  max-width: 520px;
  margin-bottom: 28px;
}

.cta-final__card .lead-form {
  margin-inline: auto;
}

.cta-final__card .lead-form__microcopy,
.cta-final__card .lead-form__message {
  text-align: center;
}

/* ------------------------------------------------------------
   14. FOOTER
------------------------------------------------------------ */
.footer {
  /* Sin borde superior: el footer se funde con la sección anterior. */
  padding-block: 28px;
  background: transparent;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.footer__copy {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 22px;
}

.footer__link {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  transition: color var(--t-fast) var(--ease);
}

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

/* ------------------------------------------------------------
   15. ANIMACIONES DE APARICIÓN (reveal con IntersectionObserver)
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   15b. BOTONES GRANDES / BLOQUE
------------------------------------------------------------ */
.btn--lg {
  min-height: 60px;
  padding: 18px 34px;
  font-size: 1.08rem;
  border-radius: var(--radius-md);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ------------------------------------------------------------
   18. DOLORES
------------------------------------------------------------ */
/* La sección de dolores arranca más arriba: menos padding superior para
   quedar más pegada a la imagen del hero. */
.pains {
  padding-top: clamp(12px, 3vw, 28px);
}

/* Dolores → borde ROJO para señalar "el problema" */
.card--pain {
  border: 1.5px solid var(--color-danger);
}

.card--pain .card__icon {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.card--pain:hover {
  box-shadow: 0 14px 34px rgba(224, 83, 58, 0.16);
}

/* Beneficios → borde VERDE para señalar "lo que vas a conseguir" */
.card--benefit {
  border: 1.5px solid var(--color-green);
}

.card--benefit .card__icon {
  background: var(--color-green-soft);
  color: var(--color-green);
}

.card--benefit:hover {
  box-shadow: 0 14px 34px rgba(37, 176, 106, 0.16);
}

/* ------------------------------------------------------------
   19. OFERTA / PRODUCTO
------------------------------------------------------------ */
/* La oferta NO es una card: solo contenido centrado sobre el fondo */
.offer__card {
  text-align: center;
}

.offer__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.offer__title {
  margin-bottom: 12px;
}

.offer__lead {
  margin-inline: auto;
  max-width: 560px;
  margin-bottom: clamp(28px, 5vw, 40px);
}

.offer__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 40px);
  align-items: center;
  text-align: left;
  margin-bottom: clamp(28px, 5vw, 40px);
}

.offer__media {
  display: flex;
  justify-content: center;
}

/* Mockups de la oferta y del cierre final: mismo tamaño grande que el hero
   (la imagen ya tiene fondo transparente). */
.guide-frame--sm {
  max-width: min(340px, 88vw);
}

.offer__includes-title {
  font-weight: 900;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------
   20. PRECIO (pricing)
------------------------------------------------------------ */
.pricing {
  border-top: 1px solid var(--color-border);
  padding-top: clamp(24px, 4vw, 32px);
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.pricing__old {
  position: relative;
  font-size: 1.5rem;
  color: var(--color-text-soft);
  text-decoration: line-through;
  text-decoration-color: var(--color-danger);
}

.pricing__now {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  color: var(--color-accent);
  line-height: 1;
}

.pricing__badge {
  align-self: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-danger);
  padding: 5px 12px;
  border-radius: 999px;
}

.pricing__local {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.pricing__trust {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

/* Línea de confianza (bajo los botones): cada ítem con su emoji no se
   parte, así el emoji nunca queda huérfano en otra línea. */
.trust__item {
  display: inline-block;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   21. GARANTÍA
------------------------------------------------------------ */
.guarantee__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-soft);
}

.guarantee__seal {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  box-shadow: 0 8px 22px rgba(242, 106, 27, 0.18);
}

.guarantee__seal svg {
  width: 44px;
  height: 44px;
}

/* ------------------------------------------------------------
   22. BONUS
------------------------------------------------------------ */
.bonus-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.bonus-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  /* El padding lo controla el desplegable interno */
  padding: 0;
  box-shadow: var(--shadow-card);
}

/* Cabecera del desplegable: foto a la izquierda, título a la derecha */
.bonus-card__toggle > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.bonus-card__toggle > summary::-webkit-details-marker {
  display: none;
}

/* Mockup del libro de bonus (fondo transparente) — más grande */
.bonus-card__media {
  flex-shrink: 0;
  width: 128px;
}

.bonus-card__media img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(31, 26, 29, 0.16));
}

.bonus-card__head {
  flex: 1 1 auto;
  min-width: 0;
}

.bonus-card__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Indicador +/− */
.bonus-card__chev {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent);
}

.bonus-card__toggle[open] .bonus-card__chev {
  /* se transforma en signo menos */
  font-size: 0;
}

.bonus-card__toggle[open] .bonus-card__chev::before {
  content: '−';
  font-size: 1.4rem;
}

/* Contenido que aparece al desplegar */
.bonus-card__reveal {
  padding: 0 20px 18px 20px;
}

.bonus-card__title {
  font-size: 1.08rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.bonus-card__text {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* Precio del bonus: valor tachado + "Hoy gratis" en línea (uno al lado del otro) */
.bonus-card__price {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bonus-card__value {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-text-soft);
  font-size: 1rem;
  text-decoration: line-through;
  text-decoration-color: var(--color-danger);
}

.bonus-card__free {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f7a4c;
  background: var(--color-green-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.bonus-total {
  margin-top: 24px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text);
}

/* ------------------------------------------------------------
   23. TESTIMONIOS
------------------------------------------------------------ */
.testi-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.testi-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi-card__stars {
  color: #f5a623;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.testi-card__text {
  color: var(--color-text);
  font-size: 1rem;
  font-style: italic;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testi-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 900;
}

.testi-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testi-card__role {
  color: var(--color-text-soft);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   24. STACK DE VALOR (CTA final)
------------------------------------------------------------ */
.value-stack {
  list-style: none;
  max-width: 460px;
  margin: clamp(24px, 5vw, 32px) auto;
  text-align: left;
  display: grid;
  gap: 10px;
}

.value-stack li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-text-soft);
  font-size: 0.98rem;
}

.value-stack li b {
  color: var(--color-text);
  font-weight: 700;
}

.value-stack__total {
  border-bottom: none !important;
  padding-top: 4px;
  font-size: 1.1rem !important;
  color: var(--color-text) !important;
  font-weight: 700;
}

.value-stack__total b {
  color: var(--color-accent) !important;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
}

/* ------------------------------------------------------------
   25. PRUEBA SOCIAL (rating + dueños felices)
------------------------------------------------------------ */
.proof {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 32px);
}

.proof__rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}

.proof__stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 1.15rem;
}

.proof__score {
  font-weight: 700;
  color: var(--color-text);
}

.proof__count {
  background: var(--color-green-soft);
  color: #1f7a4c;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   26. GALERÍA DE SALCHIS FELICES (3 filas, 2 fotos, movimiento
   descoordinado). La animación afecta SOLO a esta sección.
------------------------------------------------------------ */
.happy-gallery {
  max-width: 900px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
  overflow: hidden;
  /* Desvanecido suave en los bordes laterales */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* Cada fila recorta su carril y desplaza su pista de fotos */
.happy-row {
  overflow: hidden;
}

.happy-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  /* Promover a capa propia evita el parpadeo/titileo durante el desplazamiento */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Fila 1 y 3 → izquierda ; fila 2 → derecha. Velocidades distintas
   para que el movimiento quede descoordinado pero armónico. */
.happy-row--left .happy-track {
  animation: happy-left linear infinite;
}
.happy-row--right .happy-track {
  animation: happy-right linear infinite;
}
.happy-row--1 .happy-track {
  animation-duration: 30s;
}
.happy-row--2 .happy-track {
  animation-duration: 40s;
}
.happy-row--3 .happy-track {
  animation-duration: 34s;
}

@keyframes happy-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    /* Se recorre exactamente la mitad (el set está duplicado) */
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes happy-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.happy-item {
  flex: 0 0 auto;
  width: clamp(160px, 40vw, 220px);
  /* Margen a la derecha en cada ítem (en vez de gap) para que el set y su
     duplicado midan exactamente lo mismo y el loop al -50% no dé saltos. */
  margin-right: 14px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
}

.happy-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ------------------------------------------------------------
   27. CARRUSEL DE RESEÑAS (marquee derecha → izquierda)
   La animación afecta SOLO a las reseñas.
------------------------------------------------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  /* Desvanecido suave en los bordes laterales */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.testi-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 18px;
  padding: 6px 0;
  animation: marquee-rtl 48s linear infinite;
}

.marquee:hover .testi-track {
  animation-play-state: paused;
}

.testi-track .testi-card {
  flex: 0 0 auto;
  width: 320px;
}

@keyframes marquee-rtl {
  from {
    transform: translateX(0);
  }
  to {
    /* Se recorre exactamente la mitad (el set está duplicado) */
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------
   28. CTA-BAND (botones estratégicos entre secciones)
------------------------------------------------------------ */
.cta-band {
  padding-block: clamp(10px, 3vw, 22px);
}

.cta-band .btn {
  max-width: 520px;
  margin-inline: auto;
}

.cta-band__note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

.cta-band--last {
  padding-bottom: clamp(24px, 5vw, 48px);
}

/* Imagen del mockup en el cierre final */
.cta-final__media {
  display: flex;
  justify-content: center;
  margin: clamp(20px, 4vw, 28px) 0;
}

/* ------------------------------------------------------------
   29. AVAL VETERINARIO
------------------------------------------------------------ */
.vet__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}

.vet__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.vet__points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.vet__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text);
  font-size: 1rem;
}

/* ------------------------------------------------------------
   30. PREGUNTAS FRECUENTES
------------------------------------------------------------ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

/* Signo +/− a la derecha */
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--t-fast) var(--ease);
}

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

.faq-item p {
  padding: 0 0 18px;
  color: var(--color-text-soft);
  font-size: 0.98rem;
}

/* ------------------------------------------------------------
   31. MENSAJES REALES (capturas de testimonios)
   Masonry con columnas CSS: cada captura conserva su tamaño y no
   ocupa todo el ancho; las columnas se acomodan solas.
------------------------------------------------------------ */
.msgs__grid {
  max-width: 780px;
  margin-inline: auto;
  column-count: 2;
  column-gap: 16px;
}

.msg-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(31, 26, 29, 0.08);
  box-shadow: var(--shadow-card);
  /* Fondo oscuro que combina con el de las capturas de chat */
  background: #101114;
  line-height: 0;
}

.msg-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* En pantallas chicas: una sola columna y ancho contenido */
@media (max-width: 640px) {
  .msgs__grid {
    column-count: 1;
    max-width: 440px;
  }
}

/* ------------------------------------------------------------
   16. BREAKPOINTS
------------------------------------------------------------ */

/* Pantallas muy pequeñas (≤360px): apretar titulares sin romper jerarquía */
@media (max-width: 360px) {
  :root {
    --gutter: 18px;
  }
  .hero__title {
    font-size: 1.6rem;
  }
}

/* Tablet: cards en 2 columnas, formulario en línea */
@media (min-width: 640px) {
  .lead-form__row {
    flex-direction: row;
    align-items: stretch;
  }
  .lead-form__input {
    flex: 1;
  }
  .lead-form__row .btn {
    flex-shrink: 0;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop medio: 3 cards en fila */
@media (min-width: 920px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .testi-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet+: la oferta muestra el libro y el listado en 2 columnas */
@media (min-width: 720px) {
  .offer__body {
    /* Más ancho para la columna del mockup: la imagen se ve grande como en el hero */
    grid-template-columns: 1fr 1.15fr;
  }
  .offer__media .guide-frame--sm,
  .cta-final__media .guide-frame--sm {
    max-width: 360px;
  }
  .vet__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop: hero en dos columnas. El texto y el formulario quedan a la
   izquierda (en dos filas) y el libro ocupa la columna derecha completa. */
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: 'text media';
    column-gap: clamp(40px, 5vw, 64px);
    align-items: center;
  }
  .hero__media {
    justify-content: flex-end;
    /* La imagen se apoya abajo: así queda más cerca de la sección de
       dolores y no deja un hueco grande debajo. */
    align-self: end;
  }
  .guide-frame {
    max-width: 440px;
  }
  .hero__media .guide-frame {
    max-width: 460px;
  }
}

/* ------------------------------------------------------------
   17. PREFERS-REDUCED-MOTION
   Respeta a quien prefiere menos movimiento.
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .guide-mockup,
  .product-shot {
    animation: none;
  }
  /* Sin movimiento: el carrusel se vuelve scroll manual */
  .testi-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Galería sin desplazamiento para quien prefiere menos movimiento */
  .happy-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .happy-gallery {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
