/* ==================== GOOGLE FONTS ==================== */
/* Importado directamente en el HTML para Poppins:wght@300;400;500;600;700;800 */

/* ==================== VARIABLES CSS ==================== */
:root {
  --header-height: 3.25rem; /* ~52px barra nav compacta tipo SaaS */
  --header-banner-height: 2.25rem; /* barra de anuncio */
  --header-total: calc(var(--header-banner-height) + var(--header-height));
  --header-sticky-offset: var(--header-total);
  /* Nav estilo referencia: texto oscuro, acento azul en chevrons / ghost CTA */
  --nav-ink: #1e293b;
  --nav-ink-muted: #475569;
  --nav-accent: #2563eb;

  /* ========== Paleta B2B IA Premium ========== */
  --primary-color: #0F172A;       /* Azul marino profundo (encabezados, fondos oscuros) */
  --primary-color-dark: #020617;  /* Aún más oscuro para hover */
  --primary-color-light: #E2E8F0; /* Gris azulado claro para fondos suaves */
  --primary-color-rgb: 15, 23, 42; /* RGB para sombras */

  --accent-color-orange: #F59E0B; /* Naranja para CTAs de conversión */
  --accent-color-orange-dark: #D97706;
  --accent-color-green: #22C55E;  /* Verde para checks/éxito */
  --accent-color-green-dark: #16A34A;

  --title-color: #0F172A;
  --text-color: #475569;          /* Gris pizarra para párrafos */
  --text-color-light: #64748B;    /* Gris más claro para descripciones */

  --body-color: #F8FAFC;          /* Fondo general muy claro */
  --container-color: #FFFFFF;     /* Blanco para cards, etc. */
  --border-color: #E2E8F0;
  --section-bg-color: #F1F5F9;

  /* Ritmo entre secciones: mismo eje slate, mayor separación visual */
  --surface-canvas: #F8FAFC;      /* = body: bloques “aire” */
  --surface-muted: #F1F5F9;       /* = section-bg-color: banda más cargada */
  --surface-elevated: #FFFFFF;     /* bloques blancos de respiro */

  --footer-bg-color: #0F172A;
  --footer-text-color: #E5E5E5;

  --white-color: #fff;
  --black-color: #000; /* Negro puro si se necesita */
  --whatsapp-color: #25D366; /* Verde oficial WhatsApp */

  scroll-padding-top: var(--header-sticky-offset);

  /* ========== Font and typography ========== */
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Playfair Display', serif; /* Misma fuente que el hero para títulos */

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --biggest-font-size: 2.5rem;   /* h1 hero */
  --h1-font-size: 2.25rem;       /* section titles (H2 tags) */
  --h2-font-size: 1.5rem;        /* section subtitles / card titles (H3 tags) */
  --h3-font-size: 1.25rem;       /* feature titles / step titles (H4 tags) */
  --normal-font-size: 1rem;      /* body text */
  --small-font-size: 0.875rem;   /* smaller text */
  --smaller-font-size: 0.813rem; /* even smaller */

  /* ========== Font weight (Poppins) ========== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800; /* Para títulos principales, como el logo */

  /* ========== Margins Bottom ========== */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

@media screen and (min-width: 768px) {
  :root {
    --header-sticky-offset: calc(var(--header-banner-height) + var(--header-height));
  }
}

/* Secciones con ancla: alineación con el header fijo (banner + nav) */
main > section[id] {
  scroll-margin-top: var(--header-sticky-offset);
}

/* Responsive typography */
@media screen and (min-width: 992px) {
  :root {
    --biggest-font-size: 3.5rem; /* Más grande en desktop */
    --h1-font-size: 2.75rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.375rem;
    --normal-font-size: 1.063rem;
    --small-font-size: 0.938rem;
    --smaller-font-size: 0.875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular); /* Default body weight */
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.7; /* Aumentado para mejor legibilidad */
  /* Responsive Fix: Previene el desbordamiento horizontal general */
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--title-font);
  color: var(--title-color);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* Playfair local solo carga hasta 700; 800 fuerza síntesis y se ve “doble trazo” */
h1 { font-weight: var(--font-bold); }
h2 { font-weight: var(--font-bold); }
h3 { font-weight: var(--font-bold); }
h4 { font-weight: var(--font-semi-bold); }


ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}
a:hover {
    color: var(--primary-color-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 6px;
}

img {
  max-width: 100%; /* Responsive Fix: Asegura que las imágenes no desborden su contenedor */
  height: auto;
  display: block;
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.section {
  padding: 5rem 0 2rem; /* Ajustado padding */
  /* Responsive Fix: Asegura que la sección no cause overflow si un hijo lo hace */
  /* overflow: hidden; */ /* Considera añadir esto si el overflow-x en body no es suficiente */
}

/* Solo landing principal: en otras páginas (p. ej. body.re-page) 1px de ancho
   intrínseco + content-visibility puede colapsar el layout y dejar la vista en blanco. */
body:not(.re-page) main > section:not(#home) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

/* Alternancia de fondos por sección (landing principal) */
body:not(.re-page) main > section#impact {
  background-color: var(--surface-elevated);
}

body:not(.re-page) main > section#how-it-works {
  background-color: var(--surface-muted);
}

body:not(.re-page) main > section#implementation {
  background-color: var(--surface-canvas);
}

body:not(.re-page) main > section#features {
  background-color: var(--surface-elevated);
}

body:not(.re-page) main > section#benefits {
  background-color: var(--surface-muted);
}

body:not(.re-page) main > section#testimonials {
  background-color: var(--surface-canvas);
}

body:not(.re-page) main > section#faq {
  background-color: var(--surface-elevated);
}

body:not(.re-page) main > section#pricing {
  background: linear-gradient(
    180deg,
    var(--surface-elevated) 0%,
    var(--surface-canvas) 52%,
    var(--surface-muted) 100%
  );
}

body:not(.re-page) main > section#cta {
  background-color: var(--surface-muted);
}

.section__title {
  font-family: var(--title-font);
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-0-75);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color); /* Usando el azul primario */
  text-align: center;
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-2); /* Más espacio después del subtítulo */
  text-transform: uppercase; /* Estilo común para subtítulos */
  letter-spacing: 0.5px;
}

.container {
  max-width: 1140px; /* Un poco más ancho */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* Padding lateral base */
  padding-right: 1rem;
  width: 100%; /* Responsive Fix: Asegura que el contenedor no sea más ancho que el viewport */
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.9rem 2rem; /* Ajustado padding */
  border-radius: 2rem;
  font-weight: var(--font-semi-bold);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: var(--normal-font-size);
  text-align: center;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.2);
}

.button:hover {
  background-color: var(--primary-color-dark);
  color: var(--white-color); /* Asegura que el texto siga siendo blanco */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.button--white {
  background-color: var(--white-color);
  color: var(--primary-color); /* Texto azul sobre blanco */
  border-color: var(--border-color); /* Borde gris claro por defecto */
  box-shadow: none;
}

.button--white:hover {
  background-color: var(--primary-color-light); /* Fondo azul muy claro */
  color: var(--primary-color-dark); /* Texto azul oscuro */
  border-color: var(--primary-color-light); /* Borde del mismo color que el fondo hover */
}

.button--accent-orange {
    background-color: var(--accent-color-orange);
    color: var(--white-color);
    border-color: var(--accent-color-orange);
    box-shadow: 0 4px 15px rgba(242, 143, 59, 0.2);
}
.button--accent-orange:hover {
    background-color: var(--accent-color-orange-dark);
    color: var(--white-color); /* Asegura texto blanco */
    border-color: var(--accent-color-orange-dark);
    box-shadow: 0 6px 20px rgba(242, 143, 59, 0.3);
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

.button__icon {
  margin-left: var(--mb-0-5);
  transition: transform 0.3s ease;
}

.button:hover .button__icon {
    transform: translateX(3px);
}

.button--small {
    padding: 0.7rem 1.5rem;
    font-size: var(--small-font-size);
}

/* ==================== HEADER & NAV (Estilo Alhena) ==================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header__banner {
  background-color: #0F172A;
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.header__banner a {
  color: #38BDF8;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.25rem;
}

.header__banner a:hover {
  color: #7DD3FC;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Responsive Fix: Evita que el logo se encoja demasiado */
    padding: 0.15rem 0;
}
.nav__logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  display: block;
  background-color: transparent;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(1.04);
}

@media screen and (max-width: 767px) {
  .nav__logo-img {
    height: 40px;
    max-width: 180px;
  }
  .header__banner {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
  .header__banner span {
    display: inline;
  }
  .nav__menu {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    /* Responsive Fix: Ajustar padding para más espacio y mejor distribución */
    padding: 1.5rem; /* Padding general */
    padding-top: 4.5rem; /* Más padding superior para dejar espacio al botón de cierre y la barra de estado del móvil */
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: var(--z-fixed);
    overflow-y: auto; /* Permite scroll vertical si el contenido es muy largo */
    display: flex; /* Asegurar contexto flex */
    flex-direction: column; /* Dirección de los elementos internos */
  }

  .hero__img {
    display: none; /* Oculta la imagen del hero en móviles */
  }

  /* Opcional: Ajustar el padding de la sección hero en móviles al quitar la imagen */
  .hero {
    padding-top: calc(var(--header-total) + 2rem);
    padding-bottom: 3rem; /* Reducir padding inferior */
  }

  /* Asegurar que los datos del hero estén centrados (ya debería serlo por defecto) */
  .hero__data {
    text-align: center;
    /* Si el grid en .hero__container tiene 2 columnas por defecto, forzar 1: */
    /* grid-column: 1 / -1; */ /* Esto usualmente no es necesario si el grid se define solo para desktop */
  }

  /* Si .hero__container tiene un gap que ya no aplica porque solo hay un elemento visible: */
  .hero__container {
      gap: 1.5rem; /* Reducir el gap si es necesario, aunque con un solo elemento visible, no se notará */
  }

  /* Ajustar el tamaño de los títulos y descripciones en el hero para móviles si es necesario */
  .hero__title {
      font-size: calc(var(--biggest-font-size) * 0.85); /* Ligeramente más pequeño */
  }
  .hero__title.hero__title--editorial {
      font-size: clamp(1.85rem, 6.5vw, 2.65rem);
  }
  .hero__description {
      font-size: calc(var(--normal-font-size) * 0.95); /* Ligeramente más pequeño */
      margin-bottom: var(--mb-2); /* Ajustar margen */
  }
  .hero__description--editorial {
      font-size: 0.98rem;
  }
  .hero__form-group--editorial {
      flex-direction: column;
      align-items: stretch;
      border-radius: 1rem;
      padding: 0.65rem;
  }
  .hero__submit {
      width: 100%;
  }
  .hero__visual {
      margin-top: 1.75rem;
  }
  .hero__visual-panel {
      padding: 1rem;
      border-radius: 1.35rem;
  }
  .hero .button {
      padding: 0.8rem 1.8rem; /* Botón ligeramente más pequeño */
      font-size: var(--small-font-size);
  }

  /* ... (resto de tus estilos móviles) ... */
  /* ... (otros estilos dentro de esta media query) ... */
}

.nav__list {
  display: flex;
  flex-direction: column;
  /* Responsive Fix: Reducir el gap entre elementos para hacerlo más compacto */
  gap: 1rem; /* Antes era 2rem */
  /* Responsive Fix: Quitar padding-top aquí, se maneja en .nav__menu o se ajusta */
  padding-top: 0; /* El padding superior principal lo da .nav__menu */
  /* Opcional: si el .nav__menu es flex, esto puede ayudar a que la lista ocupe espacio disponible antes de scroll */
  /* flex-grow: 1; */
}

.nav__link {
  color: var(--nav-ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.4rem 0;
  word-break: break-word;
  overflow-wrap: break-word;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.nav__link:hover,
.active-link {
  color: var(--nav-ink);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--nav-accent);
  transition: width 0.3s ease;
}
.nav__link:hover::after,
.active-link::after {
  width: 20px;
}

/* Barra principal: activo por scroll sin subrayado hasta hover */
.nav__list > .nav__item > a.nav__link.active-link {
  color: var(--nav-ink);
  font-weight: 500;
}
.nav__list > .nav__item > a.nav__link.active-link::after {
  width: 0;
  opacity: 0;
}
.nav__list > .nav__item > a.nav__link.active-link:hover,
.nav__list > .nav__item > a.nav__link.active-link:focus-visible {
  color: var(--nav-ink);
}
.nav__list > .nav__item > a.nav__link.active-link:hover::after,
.nav__list > .nav__item > a.nav__link.active-link:focus-visible::after {
  width: 20px;
  opacity: 1;
  background-color: var(--nav-accent);
}

.nav__close {
  position: absolute;
  background: none;
  border: none;
  /* Responsive Fix: Ajustar posición del botón de cierre con el nuevo padding del menú */
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: calc(var(--z-fixed) + 1); /* Asegurar que esté sobre la lista si hay mucho contenido */
}

.nav__close:hover {
  color: var(--primary-color-dark);
  transform: rotate(90deg);
}

.nav__toggle {
  font-size: 1.3rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  display: inline-flex;
  padding: 0.25rem;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav__precios-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nav-accent);
    border: 1px solid var(--nav-accent);
    background: #fff;
    text-decoration: none;
    line-height: 1.25;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav__precios-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.nav__precios-btn:active {
  transform: scale(0.98);
}
.nav__cta-mobile {
    display: inline-block;
    margin-top: 1.25rem;
    text-align: center;
    padding: 0.6rem 1.4rem !important;
    background-color: var(--accent-color-orange) !important;
    color: var(--white-color) !important;
    font-weight: var(--font-semi-bold) !important;
    border-radius: 999px;
}
.nav__cta-mobile:hover {
    color: var(--white-color) !important;
    background-color: var(--accent-color-orange-dark) !important;
}

.nav__cta-desktop {
  display: none;
}

.button--nav {
  padding: 0.45rem 1.2rem;
  background-color: var(--nav-accent);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  border: none;
}

.button--nav:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.button--nav:active {
  transform: translateY(0) scale(0.98);
}

.show-menu {
  right: 0;
}
.scroll-header {
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

/* ==================== HERO ==================== */
.hero {
    padding-top: calc(var(--header-total) + 4.35rem);
    padding-bottom: 3.5rem;
    background-color: var(--body-color);
    position: relative;
}

.hero__container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.hero__intro--editorial {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.5rem;
    width: 100%;
}

.hero__pre-title {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-color-light);
    margin-bottom: 1.1rem;
}

.hero__pre-title--editorial {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-color-light);
    margin-bottom: 1.1rem;
    font-weight: 600;
}

/* Hero editorial: serif + pastilla (referencia tipo “discovery pill”) */
.hero__title {
    font-family: var(--body-font);
    font-weight: 700;
    font-synthesis: none;
    font-size: 3.1rem;
    line-height: 1.12;
    letter-spacing: -0.028em;
    color: #0F172A;
    margin-bottom: 1.1rem;
    text-wrap: balance;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero__title--editorial {
    font-family: var(--title-font);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.022em;
    margin-bottom: 1.15rem;
}

.hero__title.hero__title--editorial {
    font-size: clamp(2.2rem, 5vw, 3.45rem);
}

@media screen and (max-width: 991px) {
    .hero__title {
        font-size: clamp(2.1rem, 5vw, 3.1rem);
    }

    .hero__title.hero__title--editorial {
        font-size: clamp(2.05rem, 5.5vw, 3.15rem);
    }
}

.hero__title span:not(.hero__title-pill) {
    text-decoration: underline;
    text-decoration-color: var(--accent-color-orange);
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.hero__title-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38em;
    vertical-align: middle;
    margin: 0 0.12em;
    padding: 0.18em 0.62em 0.22em;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 0.78em;
    line-height: 1.25;
    color: #92400E;
    background: linear-gradient(180deg, #fff7dc 0%, #fde68a 100%);
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    text-decoration: none;
}

.hero__title-pill i {
    font-size: 0.88em;
    opacity: 0.88;
}

.hero__description {
    font-size: 1.05rem;
    color: #475569;
    margin: 0 0 1.65rem;
    max-width: 52ch;
    line-height: 1.65;
}

.hero__description--editorial {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
    max-width: 36rem;
    font-size: 1.06rem;
    text-wrap: balance;
}

.hero__form-group {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    background: #FFFFFF;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    max-width: 600px;
    margin: 0 0 1.5rem;
    border: 1px solid #E2E8F0;
}

.hero__form-group--editorial {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.15rem;
    max-width: 32rem;
    padding: 0.32rem 0.45rem 0.32rem 0.5rem;
    border-radius: 9999px;
    gap: 0.35rem;
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
}

.hero__input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    outline: none;
}

.hero__input--editorial {
    background: transparent;
    padding: 0.72rem 1rem 0.72rem 1.15rem;
    font-size: 0.95rem;
}

.hero__submit {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: #2563EB;
    padding: 0.68rem 1.4rem;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.hero__submit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.hero__submit:active {
    transform: translateY(0);
}

.hero__visual {
    width: 100%;
    margin-top: 2.5rem;
    min-width: 0;
}

.hero__visual-panel {
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(1.35rem, 4vw, 2.25rem);
    border-radius: 1.65rem;
    background: linear-gradient(165deg, #e8f4fc 0%, #eef6ff 45%, #f5f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.demo__chat-window--hero-simple {
    border-radius: 1.25rem;
}

.chat-window__header--hero-subtle {
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding: 0.72rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
}

.hero__meta {
    max-width: 36rem;
    margin: 2.25rem auto 0;
    padding: 0 0.75rem;
    text-align: center;
}

.hero--editorial .hero__details-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    float: none;
}

.hero--editorial .hero__details-summary::after {
    float: none;
    margin-left: 0;
}

.hero--editorial .hero__capture-form {
    text-align: left;
}

.hero--editorial .hero__legal-consent {
    justify-content: center;
    margin-top: 1rem;
}

.hero--editorial .hero__trust-footer {
    justify-content: center;
    margin: 0.85rem auto 0;
    max-width: 40rem;
}

.hero--editorial .hero__roi-result {
    margin-left: auto;
    margin-right: auto;
}

.hero__chat-wrapper {
    margin-top: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.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;
}

.hero__details-capture {
    max-width: 600px;
    margin: 0 0 0.85rem;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.hero__details-summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
    padding: 0.35rem 0;
    list-style: none;
}

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

.hero__details-summary::after {
    content: "＋";
    float: right;
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.95rem;
}

.hero__details-capture[open] .hero__details-summary::after {
    content: "－";
}

.hero__capture-form {
    max-width: 600px;
    margin: 0;
    text-align: left;
    transition: opacity 320ms ease, transform 320ms ease, max-height 360ms ease, margin 320ms ease;
    max-height: 280px;
    overflow: hidden;
}

.hero__capture-form.is-minimized {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

.hero__capture-label {
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.hero__capture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.85rem;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hero__capture-input {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 0.65rem;
    padding: 0.72rem 0.85rem;
    font-size: 0.94rem;
    color: #0F172A;
    background: #F8FAFC;
    transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.hero__capture-input::placeholder {
    color: #94A3B8;
}

.hero__capture-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    background: #FFFFFF;
    transform: translateY(-1px);
}

.hero__capture-submit {
    white-space: nowrap;
    padding: 0.74rem 1.05rem;
    border-radius: 0.65rem;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.hero__capture-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.18);
}

.hero__roi-result {
    max-width: 640px;
    margin: 0 0 1rem;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid #D9E2EC;
    border-radius: 0.95rem;
    background: linear-gradient(160deg, #FFFFFF 0%, #F8FAFC 70%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 480ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), max-height 540ms ease, margin 420ms ease;
}

.hero__roi-result.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    max-height: 520px;
    margin: 0 0 1.1rem;
}

.hero__roi-kicker {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #64748B;
    margin-bottom: 0.35rem;
}

.hero__roi-amount {
    font-family: var(--title-font);
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.05;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.hero__roi-note {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.9rem;
}

.hero__roi-actions {
    margin-bottom: 0.85rem;
}

.hero__roi-actions .button {
    width: 100%;
}

.hero__roi-email-form {
    border-top: 1px solid #E2E8F0;
    padding-top: 0.75rem;
}

.hero__roi-email-label {
    display: block;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

.hero__roi-email-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
}

.hero__roi-amount.is-counting {
    animation: roiPulse 520ms ease-out;
}

@keyframes roiPulse {
    0% {
        transform: scale(0.94);
        opacity: 0.4;
    }
    60% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero__trust-footer {
    font-size: 0.8rem;
    color: var(--text-color-light);
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    max-width: 46ch;
    line-height: 1.5;
    margin-top: 0.15rem;
}

.hero__legal-consent {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    color: var(--text-color-light);
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 640px;
    text-align: left;
}

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

.hero__legal-consent a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero__legal-consent a:hover {
    color: var(--primary-color-dark);
}

.hero__trust-footer i {
    color: var(--accent-color-green);
}

@media screen and (max-width: 991px) {
    .hero__chat-wrapper {
        margin-top: 0.5rem;
    }
}

/* Hero: chat + insights en filas (una columna). Dos columnas quedaban apretadas junto al copy. */
.demo__split-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: stretch;
    width: 100%;
}

/* Toda la columna derecha para el mockup; el tope 440px dejaba mucho aire muerto. */
.hero__chat-wrapper.demo__split-view {
    max-width: 100%;
    width: 100%;
    margin-inline-start: 0;
}

@media screen and (max-width: 900px) {
    .hero__capture-grid {
        grid-template-columns: 1fr;
    }

    .hero__roi-email-row {
        grid-template-columns: 1fr;
    }

    .hero__capture-submit {
        width: 100%;
    }

    .hero__chat-wrapper {
        margin-top: 2rem;
    }

    .demo__split-view {
        gap: 1.15rem;
    }

    .chat-flow-container {
        height: min(360px, 42vh);
        min-height: 280px;
        padding: 1rem;
    }

    .chat-flow-container--hero {
        height: min(300px, 38vh);
        min-height: 240px;
        padding: 0.85rem 1rem;
    }

    .chat-msg {
        max-width: calc(100% - 82px);
    }

    .demo__ai-insights {
        padding: 1rem 1rem 1.15rem;
    }

    .demo__ai-insights--inline {
        padding: 0.85rem 1rem 1rem;
    }

    .insights__pills--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .pill {
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .pill--compact {
        width: 100%;
    }
}

.button--primary {
    padding: 0.8rem 1.9rem;
    border-radius: 0.7rem;
    font-weight: 600;
}


/* ==================== DYNAMIC CHAT FLOW (HERO & DEMO) ==================== */
.chat-flow-container {
    /* Altura fija 500px dejaba gran vacío con pocos mensajes y empujaba “Análisis” bajo el fold. */
    height: clamp(300px, 42vh, 420px);
    min-height: 300px;
    padding: 1.35rem 1.5rem;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.chat-window {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

#dynamic-chat {
    position: relative;
    padding-bottom: 2rem;
}

.chat-connector-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, #38BDF8, #E2E8F0);
    left: 24px;
    z-index: 0;
    transition: height 0.8s ease;
    top: 48px;
    height: 0;
}

.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #94A3B8;
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1s infinite alternate;
}

@keyframes typing {
    from { opacity: 0.3; transform: translateY(0); }
    to { opacity: 1; transform: translateY(-5px); }
}


/* ==================== DEMO SECTION ==================== */
.demo {
    background-color: var(--body-color);
}

.demo__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.demo__data {
    max-width: 480px;
}

.demo__description {
    margin-top: var(--mb-1);
    margin-bottom: var(--mb-1-5);
    color: var(--text-color);
}

.demo__list {
    margin-top: var(--mb-1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.demo__list i {
    color: var(--accent-color-green);
    margin-top: 0.15rem;
}

.demo__chat-window {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    overflow: hidden;
    min-width: 0;
}

/* Hero: una sola tarjeta (chat + análisis) para menos ruido visual */
.demo__chat-window--hero-unified {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #E8EDF3;
    background: #ffffff;
    backdrop-filter: none;
}

.demo__ai-insights--inline {
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid #EEF2F6;
    box-shadow: none;
    padding: 1rem 1.35rem 1.2rem;
    background: #FAFBFC;
}

.insights__title--compact {
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
    color: #475569;
}

.insights__pills--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.pill--compact {
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
}

.insights__description--compact {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748B;
    margin: 0;
}

.chat-flow-container--hero {
    height: clamp(248px, 36vh, 360px);
    min-height: 248px;
    padding: 1.05rem 1.25rem 1rem;
}

.demo__ai-insights {
    background: #FFFFFF;
    border-radius: 1.25rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1.75rem;
    text-align: left;
}

.insights__title {
    font-size: 0.95rem;
    font-weight: var(--font-semi-bold);
    color: #0F172A;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights__title i {
    color: var(--accent-color-orange);
}

.insights__pills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background-color: #F1F5F9;
    font-size: 0.8rem;
    color: #475569;
}

.insights__description {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.6;
}

.chat-window__header {
    background: #F8FAFC;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
}

.header__status {
    width: 10px;
    height: 10px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* Contenedor individual del mensaje */
.chat-item {
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.chat-item--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Etiquetas (VISITANTE / AGENTE IA) */
.chat-role-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 4px;
    letter-spacing: 0.1em;
}

/* Fila de Avatar + Burbuja */
.chat-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Avatares circulares */
.chat-avatar {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Alineación para el Visitante (Izquierda) */
.chat-item--visitor { align-items: flex-start; }
.chat-item--visitor .chat-row { flex-direction: row; }

/* Alineación para la IA (Derecha) */
.chat-item--ai { align-items: flex-end; }
.chat-item--ai .chat-row { flex-direction: row-reverse; }

/* Ajuste de las burbujas */
.chat-msg {
    max-width: 260px;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg--visitor { background: #E0F2FE; color: #0F172A; border-bottom-left-radius: 0.2rem; }
.chat-msg--ai { background: #0F172A; color: #ffffff; border-bottom-right-radius: 0.2rem; border: none; box-shadow: 0 6px 14px rgba(15,23,42,0.35); }

.button--pulse {
    animation: pulse-cta 1.6s ease-in-out infinite;
}

@keyframes pulse-cta {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.25);
    }
    50% {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.25);
    }
}

.hero__badge {
    position: absolute;
    top: -0.75rem;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--white-color);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: var(--smaller-font-size);
    z-index: 1;
}

/* Responsive Fix: Ajustar o esconder pseudo-elementos en móvil */
.hero__img::before,
.hero__img::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color-orange);
    opacity: 0.2;
    border-radius: 0.5rem;
    z-index: -1;
}
.hero__img::before {
    width: 60px; /* Más pequeño */
    height: 60px;
    top: -15px;
    left: -15px;
    transform: rotate(-15deg);
    background-color: var(--accent-color-orange);
}
.hero__img::after {
    width: 80px; /* Más pequeño */
    height: 80px;
    bottom: -20px;
    right: -20px;
    transform: rotate(10deg);
    background-color: var(--accent-color-green);
}

@media screen and (max-width: 480px) {
    .hero__img::before,
    .hero__img::after {
        display: none; /* Ocultar completamente en pantallas muy pequeñas */
    }
}


/* ==================== IMPACT METRICS (Estilo Alhena) ==================== */
.impact__header {
  text-align: center;
  margin-bottom: 3rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1.5rem;
}

.impact__header .section__subtitle {
  margin-bottom: 0;
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.impact__card {
  background-color: #F8FAFC;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.impact__number {
  font-family: var(--title-font);
  font-size: 3.25rem;
  color: #0F172A;
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
}

.impact__pill {
  background: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.impact__pill i {
  color: #2563EB;
  font-size: 0.8rem;
}

.impact__text {
  font-size: 1rem;
  color: #64748B;
  max-width: 260px;
  margin: 0;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .impact__grid {
    grid-template-columns: 1fr;
  }
  .impact__number {
    font-size: 2.75rem;
  }
  .impact__card {
    padding: 2rem 1.5rem;
  }
}

/* ==================== FEATURES ==================== */
.features__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
}

/* Cinco pilares: rejilla fluida (evita fila suelta rara en desktop) */
#features .features__container.grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.features__card {
    background-color: var(--container-color);
    padding: 2rem 1.5rem; /* Ajustar padding */
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0; /* Responsive Fix: permite que la tarjeta se encoja si es necesario */
}

.demo-chat {
    margin-top: var(--mb-2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.demo-chat__bubble {
    max-width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: var(--small-font-size);
    line-height: 1.6;
}

.demo-chat__bubble--client {
    align-self: flex-start;
    background-color: var(--section-bg-color);
    color: var(--text-color);
}

.demo-chat__bubble--eva {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.demo-chat__typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background-color: var(--section-bg-color);
    margin: 0.25rem 0;
}

.demo-chat__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-color-light);
    animation: typing-dots 1s infinite ease-in-out;
}

.demo-chat__typing span:nth-child(2) {
    animation-delay: 0.15s;
}
.demo-chat__typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing-dots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-2px);
        opacity: 1;
    }
}

.features__card:hover {
    transform: translateY(-8px); /* Reducir efecto hover */
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.1);
}

.features__icon {
    font-size: 2.5rem; /* Ajustar tamaño icono */
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    display: inline-block;
    transition: transform 0.3s ease;
}
.features__card:hover .features__icon {
    transform: scale(1.1); /* Simplificar animación icono */
}

.features__title {
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-0-75);
}

.features__description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.7;
}
.features__description strong {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.integration__thumb {
    margin-top: var(--mb-1);
    text-align: left;
}

.integration__thumb img {
    max-width: 260px;
    border-radius: 0.6rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.integration__thumb figcaption {
    margin-top: var(--mb-0-5);
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}


/* ==================== FUNNEL CAROUSEL (Estilo Alhena) ==================== */
.funnel__header {
    text-align: center;
    margin-bottom: 3rem;
}

.funnel__header .section__title {
    margin-bottom: 0.5rem;
}

.funnel__subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin: 0;
}

.funnel__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 1rem;
}

.funnel__nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.funnel__tab {
    display: flex;
    gap: 1.5rem;
    cursor: pointer;
    opacity: 0.62;
    transition: all 0.4s ease;
    border-left: 4px solid #E2E8F0;
    padding-left: 2rem;
}

.funnel__tab:hover {
    opacity: 0.85;
}

.funnel__tab.active {
    opacity: 1;
    border-left-color: #38BDF8;
}

.funnel__tab .tab__content h3 {
    font-family: var(--title-font);
    font-size: 1.35rem;
    color: #0F172A;
    margin-bottom: 0.5rem;
    font-weight: var(--font-semi-bold);
}

.funnel__tab .tab__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.funnel__tab .tab__content li + li {
    margin-top: 0.35rem;
}

.funnel__visuals {
    background: #F3EEDF;
    border-radius: 2rem;
    padding: 2rem;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

.funnel__visuals .visual__slide {
    position: absolute;
    inset: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.funnel__visuals .visual__slide > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.funnel__visuals .visual__slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.funnel__visuals .visual__slide img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 0.75rem;
    display: block;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.18));
    transform: scale(1.12);
    transition: transform 0.45s ease;
}

.funnel__visuals .visual__slide.active img {
    transform: scale(1.2);
}

@media screen and (max-width: 968px) {
    .funnel__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .funnel__visuals {
        min-height: 460px;
    }
    .funnel__visuals .visual__slide img {
        transform: scale(1.08);
    }
    .funnel__visuals .visual__slide.active img {
        transform: scale(1.14);
    }
}

@media screen and (max-width: 576px) {
    .funnel__tab {
        padding-left: 1.25rem;
    }
    .funnel__tab .tab__content h3 {
        font-size: 1.15rem;
    }
    .funnel__visuals {
        min-height: 380px;
        padding: 1.25rem;
    }
    .funnel__visuals .visual__slide {
        inset: 1.25rem;
    }
    .funnel__visuals .visual__slide img,
    .funnel__visuals .visual__slide.active img {
        transform: scale(1.06);
    }
}

/* Imagen EVA canales: ancho completo y centrada */
.eva-integration-visual {
    width: 100%;
    padding: 0 1rem;
    margin: 0;
    text-align: center;
    overflow: hidden;
}

.eva-integration-visual img {
    width: 100%;
    max-width: 1120px;
    height: auto;
    display: block;
    margin: 0 auto;
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    .eva-integration-visual img {
        max-width: 100%;
    }
}


/* ==================== HOW IT WORKS (Implementación 14 días) ==================== */
.how-it-works__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
    position: relative;
}

.how-it-works__step {
    text-align: center;
    position: relative;
    padding: 1.5rem 1rem; /* Ajustar padding */
    border-radius: 0.5rem;
    min-width: 0; /* Responsive Fix */
}

.how-it-works__icon {
    font-size: 2.5rem; /* Reducir icono */
    color: var(--accent-color-orange);
    margin-bottom: var(--mb-1);
    background-color: rgba(242, 143, 59, 0.1);
    width: 70px; /* Reducir círculo */
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.how-it-works__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    margin-bottom: var(--mb-0-5);
    border-radius: 999px;
    background-color: var(--primary-color-light);
    color: var(--primary-color-dark);
    font-weight: var(--font-semi-bold);
    font-size: var(--smaller-font-size);
}

.how-it-works__title {
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-0-75);
}

.how-it-works__description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}


/* ==================== BENEFITS ==================== */
.benefits__container {
    gap: 2rem; /* Reducir gap */
    align-items: center;
}

.benefits__grid {
    align-items: center;
    margin-top: var(--mb-2-5);
}

.benefits__description {
    margin-bottom: var(--mb-2);
    font-size: var(--normal-font-size);
    color: var(--text-color);
}

/* Benefits carousel: tabs verticales + línea de progreso (estilo Alhena) */
.benefits-carousel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    margin-top: var(--mb-2);
    margin-bottom: 0;
}

.benefits__nav {
    display: flex;
    gap: 2rem;
    position: relative;
}

.benefits__line {
    width: 3px;
    background-color: #E2E8F0;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    min-height: 280px;
}

.benefits__indicator {
    width: 100%;
    height: 20%;
    background-color: #38BDF8;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.benefits__tabs {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    flex: 1;
    min-width: 0;
}

.benefit__item {
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.benefit__item:hover {
    opacity: 0.8;
}

.benefit__item.active {
    opacity: 1;
}

.benefit__item h3 {
    font-family: var(--title-font);
    font-size: 1.25rem;
    color: #0F172A;
    margin-bottom: 0.4rem;
    font-weight: var(--font-semi-bold);
}

.benefit__item p {
    font-size: 0.95rem;
    color: #64748B;
    line-height: 1.55;
    margin: 0;
}

.benefit__item p strong {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.benefits__display {
    background-color: #F8FAFC;
    border-radius: 2rem;
    padding: 2rem;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits__display-content {
    width: 100%;
    text-align: center;
}

#benefits-feature-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    transition: opacity 0.4s ease;
    display: block;
}

@media screen and (max-width: 968px) {
    .benefits-carousel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .benefits__line {
        min-height: 200px;
    }
}

@media screen and (max-width: 576px) {
    .benefit__item h3 {
        font-size: 1.1rem;
    }
    .benefit__item p {
        font-size: 0.9rem;
    }
    .benefits__display {
        min-height: 320px;
        padding: 1.25rem;
    }
}

.benefits__list {
    display: grid;
    gap: 1.5rem; /* Reducir gap */
    margin-bottom: var(--mb-2-5);
}

.benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem; /* Reducir gap */
    background-color: var(--container-color);
    padding: 1.25rem; /* Reducir padding */
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
    min-width: 0; /* Responsive Fix */
}
.benefits__item:hover {
    box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.06); /* Sombra más sutil */
}

.benefits__item-icon {
    font-size: 1.5rem; /* Reducir icono */
    color: var(--primary-color);
    margin-top: 0.15rem;
    min-width: 24px; /* Ajustar */
    text-align: center;
    background-color: var(--primary-color-light);
    width: 45px; /* Reducir círculo */
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Responsive fix: Evita que el icono se encoja */
}

.benefits__item-title {
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-0-5);
}

.benefits__item p {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.7;
}
.benefits__item p strong {
    color: var(--title-color);
    font-weight: var(--font-bold);
}

.benefits__future-proof {
    margin-top: var(--mb-2-5);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--accent-color-orange-dark);
    background-color: rgba(242, 143, 59, 0.1);
    padding: 1rem 1.5rem; /* Reducir padding */
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid rgba(242, 143, 59, 0.2);
}
.benefits__future-proof strong {
    font-weight: var(--font-bold);
}

.benefits__cost-comparison {
    margin-top: var(--mb-2-5);
}

.table__container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto var(--mb-1);
    overflow-x: auto;
}

.benefits__cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--mb-1);
    margin-bottom: var(--mb-1);
    font-size: var(--small-font-size);
}

.benefits__cost-table th,
.benefits__cost-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.benefits__cost-table th:first-child,
.benefits__cost-table td:first-child {
    text-align: left;
}

.benefits__cost-table thead th {
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.cost-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: var(--section-bg-color);
    font-weight: var(--font-medium);
}

.cost-tag--axery {
    background-color: rgba(242, 143, 59, 0.1);
    color: var(--accent-color-orange-dark);
}

.cost-icon {
    font-size: 1rem;
}

.cost-icon--yes {
    color: #2ecc71;
}

.cost-icon--no {
    color: #e74c3c;
}

.benefits__rot-highlight {
    margin-top: var(--mb-1);
    font-size: var(--small-font-size);
    color: var(--title-color);
}
.benefits__rot-highlight strong {
    font-weight: var(--font-bold);
}

.benefits__img {
    max-width: 100%; /* Responsive Fix */
}
.benefits__img img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 100%; /* Asegurar ajuste */
    /* max-width: 500px; */
    margin: 0 auto;
}


/* ==================== TESTIMONIALS ==================== */
.testimonials__container {
    display: grid;
    gap: 1.5rem; /* Reducir gap */
    /* Responsive Fix: Reducir min value */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding-top: 2rem;
}

.testimonial__card {
    background-color: var(--section-bg-color);
    padding: 2rem; /* Reducir padding */
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0; /* Responsive Fix */
}

.testimonial__card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem; /* Reducir comillas */
    color: var(--primary-color);
    position: absolute;
    top: 1.25rem; /* Ajustar posición */
    left: 1.25rem;
    opacity: 0.1; /* Más sutil aún */
}

.testimonial__card blockquote {
    font-style: normal;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    margin-bottom: var(--mb-1-5);
    padding-left: 0;
    border-left: none;
    flex-grow: 1;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.testimonial__card blockquote strong {
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.testimonial__author-name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    margin-bottom: var(--mb-0-25);
}

.testimonial__author-title {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    display: block;
}


/* ==================== CTA FINAL (Estilo Alhena) ==================== */
.final-cta {
    padding: 6rem 1rem;
    text-align: center;
}

.final-cta__container {
    max-width: 900px;
    margin: 0 auto;
}

.final-cta__content {
    width: 100%;
}

.final-cta__title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: #0F172A;
    margin-bottom: 2.5rem;
}

.cta__description {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    max-width: 640px;
    margin: 0 auto 3rem;
}

.final-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.cta-primary-stack {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
    max-width: 360px;
}

.cta-pullquote {
    text-align: left;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.cta-pullquote__text {
    font-size: 0.86rem;
    line-height: 1.4;
    color: #0F172A;
    margin-bottom: 0.45rem;
    font-weight: 500;
}

.cta-pullquote__meta {
    display: grid;
    gap: 0.1rem;
}

.cta-pullquote__name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0F172A;
}

.cta-pullquote__company {
    font-size: 0.74rem;
    color: #64748B;
}

.cta-pullquote__metric {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0369A1;
    font-weight: 700;
}

.final-cta .button--primary {
    padding: 1rem 1.75rem;
    font-weight: var(--font-semi-bold);
}

.final-cta__buttons > .button.button--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.95rem 1.5rem;
    border-radius: 0.65rem;
    border: 2px solid #1E40AF;
    color: #1E3A8A;
    background: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 0 rgba(30, 64, 175, 0.12);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.final-cta__buttons > .button.button--secondary:hover {
    background: #EEF2FF;
    border-color: #1D4ED8;
    color: #1E3A8A;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.18);
}

.button--secondary {
    background-color: transparent;
    border: 1px solid #CBD5E1;
    color: #475569;
}

.button--secondary:hover {
    background-color: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A;
}

.final-cta__trust {
    border-top: 1px solid #E2E8F0;
    padding-top: 2.5rem;
}

.trust__text {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #94A3B8;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.trust__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    filter: grayscale(100%);
    opacity: 0.65;
}

.trust__logos img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

@media screen and (max-width: 576px) {
    .final-cta {
        padding: 4rem 1rem;
    }
    .final-cta__buttons {
        flex-direction: column;
        margin-bottom: 3rem;
    }
    .cta-primary-stack {
        max-width: 100%;
    }
    .final-cta__buttons .button {
        width: 100%;
        justify-content: center;
    }
    .trust__logos {
        gap: 1.5rem;
    }
    .trust__logos img {
        height: 24px;
    }
}


/* ==================== FAQ ==================== */
.faq__list {
  max-width: 900px;
  margin: var(--mb-2-5) auto 0;
  display: grid;
  gap: 1rem;
}

.faq__item {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq__question {
  font-family: var(--title-font);
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--normal-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
}

.faq__icon {
  transition: transform 0.3s ease;
  color: var(--text-color-light);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

.faq__answer p {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  padding-bottom: 1rem;
}

.faq__item.active .faq__answer {
  max-height: 200px;
  padding-bottom: 0.5rem;
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

/* ==================== PRICING ==================== */
/* Fondo aplicado en bloque «Alternancia de fondos» (main > #pricing) */

.pricing__description {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  text-align: center;
  color: var(--text-color-light);
}

.pricing__page-link {
  text-align: center;
  margin: -0.35rem auto 1.25rem;
  max-width: 720px;
}

.pricing__page-link-anchor {
  font-weight: 600;
  color: #1D4ED8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing__page-link-anchor:hover {
  color: #1E40AF;
}

.pricing-summary-strip {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding-top: 3.5rem;
  padding-bottom: 3.75rem;
  border-top: 1px solid #e2e8f0;
}

.pricing-summary-strip__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pricing-summary-strip__text {
  color: var(--text-color-light);
  margin: 0 auto 1.5rem;
  line-height: 1.75;
  max-width: 640px;
}

.pricing-summary-strip__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.pricing__risk-badge {
  margin: 0 auto 1.4rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.08);
  color: #075985;
  font-size: 0.82rem;
  font-weight: 700;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.65rem;
}

.pricing__grid--single {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 1.5rem auto 0;
}

.pricing__card {
  position: relative;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.05rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing__card--featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
  transform: translateY(-3px);
}

.pricing__tag {
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: #2563EB;
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  font-weight: 700;
}

.pricing__tier {
  font-size: 1.05rem;
  color: var(--title-color);
}

.pricing__price {
  font-family: var(--title-font);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  color: #0F172A;
  line-height: 1;
}

.pricing__price span {
  font-family: var(--body-font);
  font-size: 0.82rem;
  color: #64748B;
  margin-left: 0.25rem;
}

.pricing__price .pricing__price-was {
  font-family: var(--body-font);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: #94a3b8;
  margin-right: 0.35rem;
  margin-left: 0;
}

.pricing__price--quote {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.pricing__price--cta-sub {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.35;
}

.pricing__card--cta {
  text-align: center;
}

.pricing__features--align-start {
  text-align: left;
}

.pricing__features {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.pricing__features li {
  font-size: 0.9rem;
  color: #334155;
  padding-left: 1rem;
  position: relative;
}

.pricing__features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563EB;
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.pricing__lead-callout {
  margin-top: 1rem;
  border: 1px solid #D9E2EC;
  background: #FFFFFF;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.pricing__lead-callout h3 {
  font-size: 0.95rem;
  color: #0F172A;
  margin-bottom: 0.65rem;
}

.pricing__lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.pricing__lead-grid div {
  border: 1px solid #E2E8F0;
  border-radius: 0.7rem;
  padding: 0.65rem;
  background: #F8FAFC;
}

.pricing__lead-grid small {
  display: block;
  color: #64748B;
  font-size: 0.76rem;
  margin-bottom: 0.2rem;
}

.pricing__lead-grid strong {
  font-size: 1rem;
  color: #0F172A;
}

@media screen and (max-width: 900px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .pricing__lead-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--footer-bg-color);
    padding: 4rem 0 2rem; /* Reducir padding */
    color: var(--footer-text-color);
}

.footer__container {
    grid-template-columns: 1fr; /* Una columna en móvil por defecto */
    gap: 2.5rem;
    text-align: center; /* Centrar en móvil */
}

.logo-text {
    font-family: var(--title-font);
}

.footer__logo {
    display: inline-block;
    margin-bottom: var(--mb-1);
}
.footer__logo .nav__logo-img {
  max-height: 40px;
  opacity: 0.9;
  margin: 0 auto; /* Centrar logo */
}

.footer__description {
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-2);
    line-height: 1.7;
    max-width: 350px; /* Limitar ancho */
    margin-left: auto;
    margin-right: auto;
}

.footer__title {
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-1);
}

.footer__links {
    display: grid;
    gap: var(--mb-0-75);
}

.footer__link {
    color: var(--footer-text-color);
    transition: color 0.3s, padding-left 0.3s;
    font-size: var(--small-font-size);
    display: inline-block;
}

.footer__link:hover {
    color: var(--primary-color);
    padding-left: 0; /* Quitar indentación hover en móvil */
}

.footer__social {
    display: flex;
    gap: 1.5rem;
    margin-top: var(--mb-1-5);
    justify-content: center; /* Centrar iconos en móvil */
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--footer-text-color);
    transition: color 0.3s, transform 0.3s;
}

.footer__social-link:hover {
    transform: translateY(-3px);
}

.footer__contact-line {
    margin: 0;
    font-size: var(--small-font-size);
}

.footer__contact-line .footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Colores hover redes sociales ... */

.footer__copy {
    text-align: center;
    margin-top: 3rem; /* Reducir margen */
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}


/* ==================== SCROLL UP ==================== */
.scrollup {
  position: fixed;
  right: 1rem; /* Ajustar posición */
  bottom: -30%;
  background-color: var(--primary-color);
  opacity: 0.8;
  padding: 0.5rem;
  border-radius: 0.5rem; /* Ajustar radio */
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, background-color 0.3s, transform 0.3s, opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ajustar sombra */
}

.scrollup:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-4px); /* Ajustar efecto hover */
  opacity: 1;
}

.scrollup i { /* Estilo directo para el icono dentro del botón */
  font-size: 1.2rem; /* Tamaño deseado para la flecha */
  color: var(--white-color); /* Asegura que sea blanco */
  line-height: 1; /* Ayuda al centrado vertical en algunos casos */
}

.scrollup__icon {
  font-size: 1.2rem;
  color: var(--white-color);
}

/* La posición del show-scroll se ajusta dinámicamente por el botón de WhatsApp más abajo */


/* ==================== WHATSAPP WIDGET (EVA EXPERTO) ==================== */
.wa-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  font-family: var(--body-font);
}

.wa-pill {
  background-color: #2563EB;
  color: #ffffff;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-pill:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.wa-pill__text {
  font-weight: var(--font-semi-bold);
  font-size: 0.9rem;
}

.wa-pill__avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.wa-popup {
  background: #ffffff;
  width: 300px;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 15px 50px rgba(15, 23, 42, 0.15);
  display: none;
}

.wa-popup__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.wa-popup__avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.wa-popup__close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: #94A3B8;
}

.wa-popup__text {
  font-size: 0.95rem;
  color: #1E293B;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.wa-popup__btn {
  display: block;
  background: #2563EB;
  color: #ffffff;
  text-align: center;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: var(--font-semi-bold);
  font-size: 0.85rem;
}


/* ==================== SCROLL BAR ==================== */
/* Mantener estilos anteriores */


/* ==================== ANIMATIONS ON SCROLL ==================== */
/* Mantener estilos anteriores */


/* ==================== MEDIA QUERIES (Ajustes finos) ==================== */
@media screen and (max-width: 374px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    :root {
        --biggest-font-size: 1.8rem; /* Más pequeño */
        --h1-font-size: 1.6rem;
        --h2-font-size: 1.25rem;
        --normal-font-size: 0.875rem; /* Más pequeño */
    }
    .button { padding: 0.7rem 1.1rem; font-size: var(--small-font-size); }
    .hero__img::before, .hero__img::after { display: none; }
    .features__container, .how-it-works__container, .benefits__list, .testimonials__container { gap: 1rem; }
}

@media screen and (min-width: 768px) {
    body { margin: 0; }
    .section { padding: 6rem 0 4rem; }
    .container { padding-left: 1.5rem; padding-right: 1.5rem; } /* Restaurar padding para tablets */
    .nav {
        height: var(--header-height);
        min-height: var(--header-height);
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    .nav__menu { 
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0 0 0 clamp(1rem, 2.5vw, 1.75rem);
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: none;
        height: 100%;
        transition: none;
        overflow: visible;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .nav__list { 
        flex-direction: row;
        gap: clamp(0.65rem, 1.25vw, 1.25rem);
        padding-top: 0;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-start;
        row-gap: 0;
        column-gap: clamp(0.65rem, 1.25vw, 1.25rem);
        margin: 0;
        max-width: 100%;
    }
    .nav__link {
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--nav-ink);
        letter-spacing: -0.01em;
        padding: 0.2rem 0;
    }
    .nav__actions {
        flex-shrink: 0;
        margin-left: auto;
        gap: 0.65rem;
    }
    .nav__toggle, .nav__close, .nav__cta-mobile { display: none; }
    .nav__precios-btn { display: inline-flex; }
    .nav__cta-desktop { display: inline-block; }

    .hero__container { padding-top: 2rem; }

    #features .features__container { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
    .how-it-works__container { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .benefits__container { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
    .benefits__img { order: 1; justify-self: center; align-self: center; }
    .testimonials__container { grid-template-columns: repeat(2, 1fr); gap: 2rem; } /* Restaurar gap */

    .footer__container { grid-template-columns: 1.2fr repeat(3, 1fr); text-align: left; gap: 2.5rem;}
    .footer__content { display: contents; }
    .footer__links { justify-content: flex-start; }
    .footer__social { justify-content: flex-start; }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    .nav__menu {
        padding-left: 0.5rem;
    }
    .nav__list {
        gap: clamp(0.45rem, 0.9vw, 0.85rem);
        column-gap: clamp(0.45rem, 0.9vw, 0.85rem);
    }
    .nav__link {
        font-size: 0.8125rem;
    }
    .nav__precios-btn {
        padding: 0.4rem 0.95rem;
        font-size: 0.8125rem;
    }
    .button--nav {
        padding: 0.4rem 1rem;
        font-size: 0.8125rem;
    }
}

@media screen and (min-width: 1024px) {
    /* Restaurar padding si se redujo para tablet */
    .container { padding-left: 1rem; padding-right: 1rem; }
    :root {
        --biggest-font-size: 4rem;
        --h1-font-size: 3rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1.125rem;
    }
    .scrollup { right: 2rem; }
    .whatsapp-float { right: 2rem; }
    /* 5rem separaba demasiado copy y demo en el hero apilado. */
    .hero__container { gap: 3rem; }
    #features .features__container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
    .how-it-works__container { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
    .testimonials__container { gap: 2.5rem; }
}

@media screen and (min-width: 1200px) {
    .container { max-width: 1180px; }
}

/* ... (todos tus estilos anteriores) ... */

/* ==================== TESTIMONIALS SLIDER (Swiper) ==================== */
.testimonials__swiper-container {
  width: 100%;
  padding-top: 1rem; /* Espacio para las tarjetas y su sombra */
  padding-bottom: 4rem; /* Espacio para paginación y algo de margen inferior */
  position: relative; /* Para posicionar botones de navegación si es necesario */
}

.testimonials__swiper-container .swiper-slide {
  display: flex; /* Ayuda a centrar la tarjeta si su ancho es menor */
  justify-content: center;
  align-items: stretch; /* Asegura que todas las tarjetas tengan la misma altura si el contenido varía */
  /* background: #f0f0f0; */ /* Para depuración, quitar luego */
  /* height: auto; */ /* Swiper lo maneja, pero por si acaso */
}

.testimonials__swiper-container .testimonial__card {
  width: 100%; /* La tarjeta ocupa todo el slide */
  max-width: 450px; /* Un ancho máximo para las tarjetas en slides más anchos */
  margin: 0 auto; /* Centrar la tarjeta si es más estrecha que el slide */
  height: 100%; /* Asegura que la tarjeta llene la altura del slide (necesario con align-items: stretch en el slide) */
  display: flex; /* Para que el blockquote y author se distribuyan bien verticalmente */
  flex-direction: column;
}

/* Estilos para Paginación (Puntos) */
.testimonials__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
  background-color: var(--primary-color-light); /* Color de punto inactivo */
  opacity: 0.7;
  width: 10px; /* Tamaño de los puntos */
  height: 10px;
  margin: 0 5px !important; /* Espaciado entre puntos */
}

.testimonials__pagination .swiper-pagination-bullet-active {
  background-color: var(--primary-color); /* Color de punto activo */
  opacity: 1;
  width: 12px; /* Punto activo un poco más grande */
  height: 12px;
}

/* Estilos para Botones de Navegación (Flechas) */
.testimonials__swiper-button-prev,
.testimonials__swiper-button-next {
  color: var(--primary-color); /* Color de las flechas */
  width: 30px; /* Tamaño del área clickeable */
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8); /* Fondo semi-transparente */
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s, color 0.3s;
}

.testimonials__swiper-button-prev:hover,
.testimonials__swiper-button-next:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.testimonials__swiper-button-prev::after,
.testimonials__swiper-button-next::after {
  font-size: 1rem !important; /* Tamaño del icono de flecha */
  font-weight: 900; /* Flechas más gruesas */
}

/* Ajustar posición de los botones si es necesario */
.testimonials__swiper-button-prev {
  left: 0px; /* Un poco más adentro */
}
.testimonials__swiper-button-next {
  right: 0px; /* Un poco más adentro */
}

@media screen and (max-width: 767px) {
  .testimonials__swiper-button-prev,
  .testimonials__swiper-button-next {
    display: none; /* Ocultar flechas en móvil y usar solo paginación/swipe */
  }
  .testimonials__swiper-container {
    padding-bottom: 3rem; /* Menos espacio para paginación en móvil */
  }
}

/* Asegurar que el contenido dentro de la tarjeta se maneje bien */
.testimonial__card blockquote {
    min-height: 100px; /* O una altura estimada para mantener consistencia visual, ajustable */
}