/* ==========================================================================
   Chatealo — maqueta
   Escala: 1rem = 10px de diseño a 1920px. Entre 1440 y 1920 escala fluido
   (a 1440 queda exactamente el diseño ×0.75). Debajo de 1440 se fija en 7.5px
   y los breakpoints de tablet (≤1099) y mobile (≤699) reordenan el layout.
   ========================================================================== */

/* Un elemento con el atributo hidden no se dibuja. Hace falta !important porque
   cualquier clase que defina display (.btn, .chip, .post-card…) le gana a la
   regla que trae el navegador, y entonces el elemento "oculto" sigue ocupando
   lugar. Pasaba con el botón "Ver más notas" de Novedades, que empujaba la fila
   y movía la página de costado en celulares angostos. */
[hidden] { display: none !important; }

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype"); }

:root {
  --green: #25e089;
  --green-cta: #01e185;
  --purple: #a855f7;
  --purple-soft: #f7f3ff;
  --indigo: #6366d1;

  --ink: #363435;
  --ink-strong: #262626;
  --ink-black: #0f0f0f;
  --ink-600: #4d4d4d;
  --ink-500: #616161;
  --ink-400: #808080;

  --bg-soft: #f6f6fb;
  --navy: #001a3f;
  --dark-grad: linear-gradient(180deg, #0a2348 0%, #001a3f 100%);

  --container: 140rem;
  --gutter: 2.4rem;
}

html { font-size: 7.5px; -webkit-text-size-adjust: 100%; }
@media (min-width: 1440px) { html { font-size: calc(100vw / 192); } }
@media (min-width: 1920px) { html { font-size: 10px; } }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.7rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.text-green { color: var(--green); }
.text-purple { color: var(--purple); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.btn--primary { background: var(--green); }
.btn--muted { background: var(--ink-400); }
/* El isotipo de WhatsApp va relleno. Sin esto lo alcanza la regla general de
   los íconos de botón (fill: none + stroke 2.2) y se dibuja como un trazo grueso. */
.ico-wa { fill: currentColor; stroke: none; }
.btn .ico-wa, .btn--md .ico-wa, .agente__btn .ico-wa { flex: none; width: 2.4rem; height: 2.4rem; margin: 0; fill: currentColor; stroke: none; }
/* el espacio entre el ícono y el texto lo da el botón, no el margen del ícono */
.btn:has(.ico-wa) { gap: 1rem; }
.ico-wa path { fill: currentColor; stroke: none; }

/* Secundario de WhatsApp: blanco con borde, para no competir con el CTA verde */
.btn--wa { gap: 1.1rem; background: #fff; color: var(--ink-strong); box-shadow: inset 0 0 0 1px #d9d9e3; }
.btn--wa svg { width: 2.8rem; height: 2.8rem; color: #25D366; }
.btn--wa:hover { filter: none; box-shadow: inset 0 0 0 2px var(--green); }
.btn--sm { height: 6.2rem; padding: 0 3.6rem; font-size: 1.6rem; font-weight: 500; }
.btn--lg { min-width: 27rem; height: 7.5rem; padding: 0 3.2rem; font-size: 2rem; }
.btn--wa.btn--lg { width: auto; padding: 0 4.2rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding-top: 5.5rem;
}
.site-header__inner { position: relative; left: -.4rem; display: flex; align-items: center; height: 6.2rem; }
.site-header__logo { flex: none; align-self: flex-start; margin-top: .1rem; }
.site-header__logo img { width: 30.3rem; }

.site-nav { display: flex; align-items: center; flex: 1; margin-left: 5.6rem; }
.site-nav__list { display: flex; align-items: center; gap: 2.6rem; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding-top: .7rem;
  font-size: 1.63rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.site-nav__link--has-menu::after {
  content: "";
  width: .8rem;
  height: .5rem;
  margin-top: .3rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M.8.8 4 4 7.2.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M.8.8 4 4 7.2.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-nav__link:hover { color: #000; }
.site-nav__actions { display: flex; align-items: center; gap: 2.4rem; margin-left: auto; }
.site-nav__login { padding-top: .7rem; font-size: 1.63rem; font-weight: 500; line-height: 1; }
.site-nav__actions .btn--sm { width: 19.1rem; padding: 0; }
/* El lockup oficial de Meta es más ancho que el anterior: 11.8rem lo deja legible */
.site-nav__partner { flex: none; width: 11.8rem; }
.site-nav__partner img { display: block; width: 100%; height: auto; }

.menu-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 20rem;
  background-color: var(--bg-soft);
  background-image:
    radial-gradient(38rem 46rem at 14rem 64rem, rgba(250, 226, 250, .95), rgba(250, 226, 250, 0) 100%),
    radial-gradient(88rem 52rem at 98rem 68rem, rgba(222, 222, 243, 1), rgba(222, 222, 243, 0) 100%),
    radial-gradient(70rem 40rem at 62rem 30rem, rgba(236, 232, 244, .9), rgba(236, 232, 244, 0) 100%),
    radial-gradient(60rem 46rem at 140rem 34rem, rgba(234, 234, 247, .9), rgba(234, 234, 247, 0) 100%);
}
/* El hero ordena sus tres bloques con `order`: en desktop los botones van antes
   del collage; en tablet y mobile la animación se intercala entre el texto y
   los botones, para que se vea sin tener que scrollear. */
.hero { display: flex; flex-direction: column; }
.hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; order: 1; }
.hero__cta { order: 2; }
.hero__collage { order: 3; }
.hero__title {
  max-width: 113rem;
  font-size: 5rem;
  font-weight: 600;
  line-height: 6rem;
  letter-spacing: 0;
  color: var(--ink);
}
.hero__lead {
  position: relative;
  left: 1.5rem;
  max-width: 80rem;
  margin-top: 2.565rem;
  font-size: 2.39rem;
  font-weight: 500;
  line-height: 3.25rem;
  color: var(--ink);
}
/* z-index: el collage se superpone 2.5rem y taparía la parte baja de los botones */
.hero__actions { position: relative; z-index: 1; left: 1.55rem; display: flex; justify-content: center; gap: 2.8rem; margin-top: 4.13rem; }
/* Animación (css/hero-anim.css): escenario 1920×1080 escalado a este ancho */
.hero__collage {
  flex: none;                     /* no se encoge entre 1100 y 1440: desborda y .hero lo recorta */
  width: 182.8rem;
  margin-top: -2.5rem;
  margin-left: calc(50% - 90rem);
}

/* ==========================================================================
   Problemas (carrusel)
   ========================================================================== */
/* Marcelo (R2): 19rem abajo dejaban una franja gris enorme en escritorio */
.pains { background: var(--bg-soft); padding: 10.7rem 0 10rem; overflow: hidden; }
.eyebrow {
  margin-left: -.2rem;
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 3.3rem;
  text-transform: uppercase;
  color: var(--ink-500);
}
.pains__title {
  margin: 1.44rem 0 0 -.3rem;
  font-size: 5.1rem;
  font-weight: 400;
  line-height: 7rem;
  color: var(--ink);
}

.carousel { margin-top: 8rem; }
.carousel__track {
  display: flex;
  gap: 6.6rem;
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track::after { content: ""; flex: 0 0 1px; }

.pain-card {
  position: relative;
  flex: 0 0 59.6rem;
  height: 59.6rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4.6rem;
  scroll-snap-align: start;
}
.pain-card--light { background: #fff; }
.pain-card--dark { background: var(--navy); }
.pain-card__text {
  max-width: 35rem;
  font-size: 3.15rem;
  font-weight: 500;
  line-height: 3.7rem;
  color: var(--ink-black);
}
.pain-card--light .pain-card__text { width: 41rem; max-width: none; height: 23rem; padding: 5.26rem 0 0 6rem; }
.pain-card--tall .pain-card__text { height: 27.7rem; padding-left: 5.8rem; }
.pain-card--light .pain-card__visual { width: 100%; margin-top: auto; }
.pain-card--dark .pain-card__visual { width: 100%; }
.pain-card--dark .pain-card__text { margin: auto 0 5.84rem 7rem; color: #fff; }

/* Toda la tarjeta es un enlace a su página de solución, con la píldora "Ver más ↗"
   siempre visible (en celular no hay hover, así que no puede depender de él).
   Interacción tomada de las tarjetas de stripe.com: al pasar el cursor la tarjeta crece unos píxeles,
   la píldora se pinta de índigo, el texto y la píldora se abren hacia las esquinas y un borde de color sigue al cursor. */
.pain-card__open { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.pain-card__open:focus-visible { outline: none; }
/* Ícono de expandir: es el que se ve en escritorio, donde hay hover */
.pain-card__icon {
  position: absolute;
  top: 2.6rem;
  right: 2.6rem;
  z-index: 5;
  display: block;
  width: 6rem;
  height: 6rem;
  border-radius: 1.2rem;
  background: #f5f5ff;
  color: #6366f1;
  pointer-events: none;                      /* el clic lo recibe el enlace de abajo */
  transition: background-color .25s ease, color .25s ease, transform .8s cubic-bezier(.165, .84, .44, 1);
}
.pain-card__icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.pain-card__icon path { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.pain-card__open:focus-visible ~ .pain-card__icon { background: #6366f1; color: #fff; outline: 2px solid var(--purple); outline-offset: 3px; }

/* Píldora "Ver más ↗": solo en celular, donde no hay hover que invite a tocar */
.pain-card__more {
  position: absolute;
  top: auto;
  bottom: 2.6rem;
  right: 2.6rem;
  z-index: 5;
  display: none;
  align-items: center;
  gap: .9rem;
  height: 5.2rem;
  padding: 0 2.2rem;
  border-radius: 999px;
  background: #f0f0ff;
  color: #6366f1;
  font-size: 1.9rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.pain-card__more svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pain-card--dark .pain-card__more { background: rgba(255, 255, 255, .16); color: #fff; }

/* Borde de color que sigue al cursor (solo se ve el anillo del borde) */
.pain-card__ring {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  padding: .2rem;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s linear;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.pain-card__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76rem;
  height: 76rem;
  margin: -38rem 0 0 -38rem;
  background: radial-gradient(closest-side, #6366f1, #a855f7 40%, rgba(168, 85, 247, 0));
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pain-card { clip-path: inset(.4rem round 4.2rem); transition: clip-path .8s cubic-bezier(.165, .84, .44, 1); }
  .pain-card__text { transition: transform .8s cubic-bezier(.165, .84, .44, 1); }
  .pain-card:is(:hover, :has(.pain-card__open:focus-visible)) { clip-path: inset(0 round 4.6rem); }
  .pain-card:is(:hover, :has(.pain-card__open:focus-visible)) .pain-card__text { transform: translate(-.48rem, -.4rem); }
  .pain-card--dark:is(:hover, :has(.pain-card__open:focus-visible)) .pain-card__text { transform: translate(-.48rem, .4rem); }
  .pain-card:hover .pain-card__icon { transform: translate(.48rem, -.4rem); background: #6366f1; color: #fff; }
  .pain-card:hover .pain-card__icon path:first-child { transform: translate(-.5px, .5px); }
  .pain-card:hover .pain-card__icon path:last-child { transform: translate(.5px, -.5px); }
  .pain-card:is(:hover, :has(.pain-card__open:focus-visible)) .pain-card__ring { opacity: 1; }
}

/* Aparición en cascada al llegar al carrusel (js/main.js alterna .is-in):
   fade-in con un pequeño slide de arriba hacia abajo, en cualquier dirección de scroll.
   Sin la clase .is-in las cards se esconden al instante, listas para la próxima entrada. */
@media (prefers-reduced-motion: no-preference) {
  .carousel.has-reveal .pain-card {
    opacity: 0;
    transform: translateY(-4rem) scale(.97);
  }
  .carousel.has-reveal.is-in .pain-card {
    opacity: 1;
    transform: none;
    transition:
      opacity .6s ease-out calc(var(--i, 0) * .14s),
      transform .9s cubic-bezier(.25, .8, .3, 1) calc(var(--i, 0) * .14s),
      clip-path .8s cubic-bezier(.165, .84, .44, 1);
  }
}

/* Marcelo (R2): las flechas quedaban pegadas a la derecha y nadie las veía;
   además dejaban un vacío enorme entre las tarjetas y la sección siguiente.
   Van centradas, más cerca, y desaparecen cuando no hay nada para deslizar
   (js/main.js pone .sin-deslizar). */
.carousel__controls { display: flex; justify-content: center; gap: 2.4rem; margin-top: 4.8rem; }
.carousel.sin-deslizar .carousel__controls { display: none; }
.carousel__btn {
  display: grid;
  place-items: center;
  width: 6.6rem;
  height: 6.6rem;
  border: .12rem solid #555;
  border-radius: 50%;
  color: #5b5b5b;
  transition: background-color .2s ease;
}
.carousel__btn:hover { background: #eaeaea; }
.carousel__btn:disabled { cursor: default; }
.carousel__btn svg { width: 4.4rem; height: 4.4rem; fill: none; stroke: currentColor; stroke-width: .6; }

/* Marcelo (R2): en escritorio las tres tarjetas tienen que verse de entrada, no
   cortadas. Se reparten el ancho del contenedor; el carrusel sigue existiendo
   para cuando haya una cuarta, y las flechas reaparecen solas si vuelve a sobrar. */
@media (min-width: 1100px) {
  .carousel__track { gap: 2.8rem; }
  .carousel__track::after { display: none; }
  .pain-card { flex: 1 1 0; min-width: 0; height: 48rem; }
  .pain-card__text { font-size: 2.5rem; line-height: 3.1rem; }
  /* 10rem a la derecha para que el texto no pase por debajo del ícono de expandir */
  .pain-card--light .pain-card__text { width: auto; height: auto; padding: 4rem 10rem 0 4rem; }
  .pain-card--tall .pain-card__text { height: auto; padding-left: 4rem; }
  .pain-card--dark .pain-card__text { margin: auto 4rem 4rem 4rem; }
}

/* ==========================================================================
   Contexto
   ========================================================================== */
.context {
  position: relative;
  overflow: hidden;
  height: 146.4rem;
  background: linear-gradient(180deg, #001a3f 0%, #0b2a52 100%);
}
.context__inner { position: relative; height: 100%; }
.context__media { position: absolute; inset: 0; }
/* Animación (css/context-anim.css): llega hasta el texto y sangra por la izquierda */
.ctx-anim { position: absolute; left: -26rem; top: 0; width: 116rem; height: 146.4rem; }
.context__text { position: absolute; top: 33.55rem; left: 90rem; width: 50rem; color: #fff; }
.context__title { font-size: 5.9rem; font-weight: 400; line-height: 7rem; }
.context__lead { max-width: 49rem; margin-top: 5.09rem; font-size: 3.06rem; line-height: 4.47rem; }
.context__text .btn { margin: 6.8rem 0 0 .3rem; }

/* ==========================================================================
   Prueba social
   ========================================================================== */
.proof { overflow: hidden; padding: 10.02rem 0 0; }
.proof__stats { position: relative; display: flex; align-items: flex-start; }
/* Halo de partículas al pasar por cada número (js/stats-halo.js) */
.stats-halo { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
.proof__title,
.stats { position: relative; z-index: 1; }
.proof__title {
  width: 42rem;
  margin-left: -.3rem;
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 5.05rem;
  color: var(--ink-400);
}
.stats { display: flex; gap: 9.15rem; margin: 3.22rem 3.35rem 0 auto; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; text-align: center; }
.stat__value {
  font-size: 6.8rem;
  font-weight: 400;
  line-height: 6.8rem;
  letter-spacing: -.04em;
  color: var(--ink-600);
}
.stat__label { margin-top: .74rem; font-size: 1.72rem; line-height: 2.8rem; white-space: nowrap; color: var(--ink); }

/* Dos filas de logos en loop infinito: la primera va a la izquierda y la segunda a la derecha.
   Cada fila tiene la tanda de logos dos veces; al desplazarse el 50 % vuelve al inicio sin salto. */
.logos {
  --logo-w: 22.27rem;
  --logos-speed: 42s;
  display: grid;
  gap: 1.6rem;
  width: 155.9rem;
  margin: 13.3rem 0 0 -8.53rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logos__track {
  display: flex;
  width: max-content;
  animation: logos-left var(--logos-speed) linear infinite;
  will-change: transform;
}
/* el desfase evita que las dos filas muestren los mismos logos al mismo tiempo */
.logos__track--right { animation-name: logos-right; animation-delay: calc(var(--logos-speed) * -.37); }
@keyframes logos-left { to { transform: translateX(-50%); } }
@keyframes logos-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* La tira mide 155.9rem fijos: entre 1100 y 1200 px eso es más ancho que la
   ventana y la página se movía de costado. Debajo de 1100 ya se envolvía. */
@media (min-width: 1100px) and (max-width: 1219px) {
  .logos { width: auto; margin-inline: 0; }
  .logos__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 3rem; animation: none; }
}
.logos li { display: flex; flex: none; align-items: center; justify-content: center; width: var(--logo-w); height: 11rem; }
.logos img { width: auto; max-width: none; }
@media (prefers-reduced-motion: reduce) {
  /* sin movimiento: una sola fila fija */
  .logos { -webkit-mask-image: none; mask-image: none; }
  .logos__track { animation: none; }
  .logos__track--right,
  .logos__track [aria-hidden] { display: none; }
}
.logo--acierto { height: 9.5rem; translate: 0 -.65rem; }
.logo--argentina { height: 3.5rem; }
.logo--ledesma { height: 4.7rem; translate: 0 -.6rem; }
.logo--comercial { height: 7.6rem; }
.logo--mostaza { height: 6.8rem; }
.logo--integra { height: 7.84rem; }
.logo--movistar { height: 6.5rem; translate: 0 .65rem; }

/* ==========================================================================
   Funcionalidades
   ========================================================================== */
.features-wrap { padding-top: 15.5rem; }
.features {
  --pad-l: 5.65rem;
  --pad-r: 5.15rem;
  min-height: 84.3rem;
  margin: 0 .4rem 0 -.4rem;
  padding: 5.4rem var(--pad-r) 7rem var(--pad-l);
  border-radius: 4rem;
  background: var(--dark-grad);
  color: #fff;
  text-align: center;
}
.features__title { max-width: 92rem; margin-inline: auto; font-size: 5rem; font-weight: 600; line-height: 7.5rem; }
.features__title .text-purple { display: block; }
.features__viewport { margin-top: 10.1rem; }
/* Sin animación (sin GSAP o con "reducir movimiento"): las 7 en grilla */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 6rem; }
.feature { display: flex; flex-direction: column; align-items: center; }
/* Cada funcionalidad enlaza a su página: "Ver más ↗" aparece al pasar el cursor
   en desktop y queda siempre visible en celular, donde no hay hover. */
.feature__link { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding-bottom: 1rem; border-radius: 2.4rem; transition: background-color .25s ease; }
.feature__icon { width: 19rem; height: 19rem; }
.feature__more {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transform: translateY(.6rem);
  transition: opacity .25s ease, transform .25s ease;
}
.feature__more svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .feature__link:hover { background: rgba(255, 255, 255, .06); }
  .feature__link:hover .feature__more,
  .feature__link:focus-visible .feature__more { opacity: 1; transform: none; }
}
@media (hover: none) {
  .feature__more { opacity: 1; transform: none; }
}

/* Carrusel con scroll (js/features-scroll.js agrega .is-scroller): 4 visibles y 3 afuera a la derecha.
   La franja llega hasta los bordes de la card y se funde en ellos. */
.features.is-scroller .features__viewport {
  margin-left: calc(var(--pad-l) * -1);
  margin-right: calc(var(--pad-r) * -1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad-l), #000 calc(100% - var(--pad-r)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--pad-l), #000 calc(100% - var(--pad-r)), transparent);
}
.features.is-scroller .features__grid {
  display: flex;
  width: max-content;
  padding: 0 var(--pad-r) 0 var(--pad-l);
  will-change: transform;
}
.features.is-scroller .feature { flex: 0 0 var(--feature-w, 32.3rem); }
.feature__title { margin-top: 3.04rem; font-size: 1.9rem; font-weight: 600; line-height: 2.8rem; white-space: nowrap; }
.feature__text { max-width: 25rem; margin-top: 1.38rem; font-size: 1.68rem; line-height: 2.8rem; color: rgba(255, 255, 255, .86); }

/* ==========================================================================
   Experiencia
   ========================================================================== */
.experience {
  position: relative;
  overflow: hidden;
  height: 91.7rem;
  margin-top: 11.75rem;
  background: linear-gradient(180deg, #fcfcfc 0%, #f7f7f9 30%, #fafafa 60%, #fefefe 100%);
}
.experience::before {
  /* cinta lavanda de la derecha */
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 10rem);
  width: 106rem;
  height: 100%;
  background: url("../assets/img/ribbon-right.svg") 0 0 / 100% 100% no-repeat;
}
/* Animación (css/experience-anim.css): escenario 980×917 */
.experience__media {
  position: absolute;
  top: 0;
  left: calc(50% - 96rem);
  width: 98rem;
  height: 91.7rem;
}
.experience__inner { position: relative; height: 100%; }
.experience__text { position: absolute; top: 15.5rem; left: 85rem; width: 58rem; }
.experience__title { font-size: 4rem; font-weight: 500; line-height: 4.75rem; color: var(--ink-strong); }
.experience__lead { position: relative; left: -.3rem; margin-top: 3rem; font-size: 1.93rem; line-height: 3.45rem; color: #000; }
.checklist { margin: 4.2rem 0 0 .2rem; }
/* Doce herramientas: dos columnas de seis en web, una sola en celular */
.checklist--dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; row-gap: 1rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  font-size: 1.72rem;
  line-height: 2.7rem;
  color: #000;
}
.checklist--dos .checklist__check { margin-top: .4rem; }
.checklist li::before {
  content: "";
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236366d1' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='9'/%3E%3Cpath d='m5.8 10.3 2.8 2.8 5.8-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   IA
   ========================================================================== */
.ai {
  overflow-x: clip;                      /* las tarjetas entran desde afuera por la derecha */
  margin-top: 15rem;
  padding: 12rem 0 13rem;
  background: var(--navy);
  color: #fff;
}
.ai__inner { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); align-items: center; gap: 8rem; }
.ai__eyebrow { font-size: 1.6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.ai__title { margin-top: 1.8rem; font-size: 4.6rem; font-weight: 600; line-height: 5.6rem; }
.ai__lead { margin-top: 2.6rem; font-size: 1.95rem; line-height: 3.2rem; color: rgba(255, 255, 255, .82); }
.ai__actions { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 4.4rem; }
.ai__actions .btn { width: auto; gap: 1.2rem; padding: 0 4.2rem; }
.ai__actions .btn svg { width: 2.8rem; height: 2.8rem; }

.btn--ghost { background: transparent; box-shadow: inset 0 0 0 .2rem rgba(255, 255, 255, .45); }
.btn--ghost:hover { filter: none; box-shadow: inset 0 0 0 .2rem #fff; }

/* Ficha del agente: demo en vivo sin agendar nada */
.agente { position: relative; justify-self: start; width: 100%; max-width: 42rem; }
.agente__card {
  position: relative;
  z-index: 1;
  padding: 3.2rem 3rem 3.4rem;
  border-radius: 3.2rem;
  background: #fff;
  color: var(--ink-strong);
  text-align: center;
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, .38);
}
.agente__estado { display: flex; align-items: center; gap: .9rem; font-size: 1.6rem; font-weight: 500; color: var(--ink-600); }
/* --on va de 0 a 1: lo anima js/agente-anim.js para que el agente "se encienda" */
.agente__switch { --on: 1; position: relative; width: 4.2rem; height: 2.4rem; border-radius: 999px; background: #d9d9e3; }
.agente__switch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--green); opacity: var(--on); }
.agente__switch::after { content: ""; position: absolute; top: .3rem; left: .3rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; transform: translateX(calc(var(--on) * 1.8rem)); }
.agente__avatar {
  display: grid;
  place-items: center;
  width: 11rem;
  height: 11rem;
  margin: 1.6rem auto 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #6366f1, #a855f7 55%, #25e089);
  box-shadow: 0 0 0 .8rem rgba(99, 102, 241, .12), 0 1.4rem 3.4rem rgba(99, 102, 241, .35);
}
.agente__avatar { position: relative; }
.agente__halo {
  position: absolute;
  inset: -1.6rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 246, .45), rgba(124, 92, 246, 0) 68%);
  opacity: 0;
  pointer-events: none;
}
.agente__chispa { position: relative; width: 5.2rem; height: 5.2rem; }
/* tres puntitos de "escribiendo", al lado del estado */
.agente__escribe { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; }
.agente__escribe i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); opacity: .35; }
.agente__nombre { margin-top: 1.8rem; font-size: 2.8rem; font-weight: 600; line-height: 3.4rem; }
.agente__rol { margin-top: .6rem; font-size: 1.6rem; line-height: 2.4rem; color: var(--ink-500); }
.agente__canales-t { margin-top: 2.4rem; font-size: 1.5rem; color: var(--ink-400); }
.agente__canales { display: flex; justify-content: center; gap: 1.2rem; margin-top: 1rem; }
.agente__canales img { width: 3.6rem; height: 3.6rem; }
.agente__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 5.8rem;
  margin-top: 2.6rem;
  padding: 0 3rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  transition: filter .2s ease;
}
.agente__btn svg { width: 2.6rem; height: 2.6rem; }
.agente__btn:hover { filter: brightness(1.06); }
/* Capacidades flotantes alrededor de la ficha */
.agente__chips { position: absolute; top: 3rem; left: calc(100% - 3rem); z-index: 2; display: grid; justify-items: start; gap: 1.4rem; }
.agente__chips li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-strong);
  font-size: 1.5rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .28);
}
.agente__chips li:nth-child(2) { margin-left: 3.4rem; }
.agente__chips svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: var(--indigo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Los tres casos concretos */
.ai__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; margin-top: 9rem; }

/* Entrada en cascada de las tarjetas (js/main.js alterna .is-in): llegan desde la
   derecha con fundido y frenando. Sin .is-in se esconden al instante, listas para repetirse. */
@media (prefers-reduced-motion: no-preference) {
  .ai__list.has-reveal .ai-card {
    opacity: 0;
    transform: translateX(14rem);
  }
  .ai__list.has-reveal.is-in .ai-card {
    opacity: 1;
    transform: none;
    transition:
      opacity .7s ease-out calc(var(--i, 0) * .16s),
      transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * .16s);
  }
}
.ai-card { border-radius: 2.6rem; background: rgba(255, 255, 255, .07); transition: background-color .25s ease; }
.ai-card__link { display: block; height: 100%; padding: 3.2rem 3rem 2.8rem; }
.ai-card__icon { width: 8.4rem; height: 8.4rem; }
.ai-card__title { margin-top: 2.4rem; font-size: 2.1rem; font-weight: 600; line-height: 2.9rem; color: #fff; }
.ai-card__text { margin-top: 1.2rem; font-size: 1.75rem; line-height: 2.8rem; color: rgba(255, 255, 255, .78); }
.ai-card__more { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.2rem; font-size: 1.6rem; font-weight: 600; color: var(--green); }
.ai-card__more svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ai-card:hover { background: rgba(255, 255, 255, .12); }

/* ==========================================================================
   Demo — el formulario donde terminan todos los "Solicitar demo" del sitio
   ========================================================================== */
.demo { padding: 12rem 0 13rem; background: var(--bg-soft); }
.demo__inner { display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); align-items: start; gap: 8rem; }
.demo__title { font-size: 4.4rem; font-weight: 600; line-height: 5.4rem; color: var(--ink-strong); text-wrap: balance; }
.demo__lead { margin-top: 2.4rem; font-size: 1.95rem; line-height: 3.2rem; color: var(--ink-600); text-wrap: balance; }
.demo__puntos { display: grid; gap: 1.4rem; margin-top: 3.4rem; }
.demo__puntos li { display: flex; align-items: center; gap: 1.2rem; font-size: 1.8rem; line-height: 2.8rem; color: var(--ink-strong); }
.demo__puntos svg { flex: none; width: 2.2rem; height: 2.2rem; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.demo__o { margin-top: 4rem; font-size: 1.7rem; color: var(--ink-500); }
.demo__wa { margin-top: 1.4rem; }
.demo__card { padding: 4rem; border-radius: 3.2rem; background: #fff; box-shadow: 0 2.4rem 6rem rgba(31, 24, 64, .1); }

/* Formulario (mismas reglas que las páginas internas) */
.form { display: grid; gap: 2rem; }
.demo__card .form { margin-top: 0; }
.form__field { display: grid; gap: .8rem; font-size: 1.5rem; font-weight: 500; color: var(--ink-strong); }
.form__field input, .form__field textarea, .form__field select {
  width: 100%;
  padding: 1.4rem 1.8rem;
  border: none;
  border-radius: 1.4rem;
  background: #f7f7fd;
  box-shadow: inset 0 0 0 .1rem #ececf2;
  font: inherit;
  font-size: 1.7rem;
  color: var(--ink-strong);
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus { outline: .2rem solid #6366f1; outline-offset: .1rem; }
.form__field input:user-invalid, .form__field.is-error input { box-shadow: inset 0 0 0 .15rem #d92d2d; }
.form .btn { justify-self: start; }
.btn--md { height: 6.4rem; padding: 0 3.4rem; font-size: 1.8rem; }
.btn--md svg { width: 1.8rem; height: 1.8rem; margin-left: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form__note { font-size: 1.5rem; line-height: 2.4rem; color: var(--ink-400); }
.form__note.is-ok { color: #0f9d5c; }
.form__note.is-error { color: #d92d2d; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; margin-top: 10.2rem; background: var(--dark-grad); color: #fff; }
/* Logo gigante de partículas (js/footer-particles.js): detrás del contenido, apoyado en el borde inferior */
.site-footer__particles { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: 100%; opacity: .7; pointer-events: none; }
.site-footer__inner { position: relative; height: 47.2rem; }
.site-footer__logo { position: absolute; top: 11.3rem; left: .6rem; }
.site-footer__logo img { width: 27.8rem; }
.site-footer__nav { position: absolute; top: 11.76rem; left: 35.5rem; display: flex; }
.footer-col:nth-child(1) { width: 18.6rem; }
.footer-col:nth-child(2) { width: 20.4rem; }
.footer-col:nth-child(3) { width: 17.2rem; }
.footer-col__title { font-size: 1.4rem; font-weight: 600; line-height: 2.3rem; }
.footer-col ul { margin-top: .21rem; }
.footer-col li { font-size: 1.4rem; line-height: 2.25rem; }
.footer-col a:hover { color: var(--green); }
.social { position: absolute; top: 11.7rem; right: .5rem; display: flex; align-items: center; gap: 1.7rem; }
/* Íconos en línea (currentColor): las máscaras CSS con url() no cargan al abrir el HTML desde la carpeta */
.social__link { display: block; height: 2rem; color: #fff; transition: color .2s; }
.social__link:hover { color: var(--green); }
.social__link svg { display: block; width: 100%; height: 100%; }
.social__link--whatsapp { width: 2rem; }
.social__link--instagram { width: 2.1rem; height: 2.1rem; }
.social__link--facebook { width: 1.19rem; height: 2.1rem; }
.social__link--linkedin { width: 1.8rem; }
/* Bloque legal del pie: links, copyright y razón social */
.site-footer__legal { position: absolute; top: 26.2rem; left: 35.6rem; display: grid; gap: .5rem; }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.site-footer__legal-links li { font-size: 1.31rem; line-height: 2rem; }
.site-footer__legal-links a { text-decoration: underline; text-underline-offset: .3rem; text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer__legal-links a:hover { color: var(--green); text-decoration-color: currentColor; }
.site-footer__copy { font-size: 1.31rem; line-height: 2rem; }
.site-footer__company { font-size: 1.31rem; line-height: 2rem; color: rgba(255, 255, 255, .66); }

/* ==========================================================================
   Tablet (≤1099px) — sin referencia de diseño: layout reordenado
   ========================================================================== */
@media (max-width: 1099px) {
  :root { --gutter: 3.2rem; }

  /* Header + menú */
  .site-header { padding-top: 2.4rem; }
  .site-header__inner { left: 0; height: 6rem; }
  .site-header__logo { align-self: center; margin-top: 0; }
  .site-header__logo img { width: 20rem; }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 5.8rem;
    height: 5.8rem;
    margin-left: auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .08);
  }
  .menu-toggle__bar,
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    display: block;
    width: 2.6rem;
    height: .3rem;
    border-radius: 1rem;
    background: var(--ink);
    transition: transform .25s ease, background-color .25s ease;
  }
  .menu-toggle__bar { position: relative; }
  .menu-toggle__bar::before,
  .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bar::before { top: -.9rem; }
  .menu-toggle__bar::after { top: .9rem; }
  .nav-open .menu-toggle__bar { background: transparent; }
  .nav-open .menu-toggle__bar::before { transform: translateY(.9rem) rotate(45deg); }
  .nav-open .menu-toggle__bar::after { transform: translateY(-.9rem) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: calc(100% + 1.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 2.4rem;
    border-radius: 2.4rem;
    background: #fff;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { justify-content: space-between; width: 100%; padding: 1.8rem .8rem; border-bottom: 1px solid #eee; font-size: 2.2rem; }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: 1.6rem; margin: 2.4rem 0 0; }
  .site-nav__login { padding: 1.2rem 0; font-size: 2.2rem; text-align: center; }
  .site-nav__actions .btn--sm { width: 100%; height: 6.4rem; font-size: 2.2rem; }
  .site-nav__partner { align-self: center; width: 11.8rem; margin-top: .8rem; }

  /* Hero — la animación se ve antes que los botones */
  .hero { padding-top: 17rem; }
  .hero__lead,
  .hero__actions { left: 0; }
  .hero__collage { order: 2; width: 118%; margin: 3rem 0 0 -9%; }
  .hero__cta { order: 3; }

  /* Problemas */
  .pains { padding: 6rem 0 9rem; }
  .carousel { margin-top: 6rem; }
  .carousel__controls { margin-top: 4.8rem; padding-right: 0; }

  /* Contexto — mismo criterio que el hero: título y bajada, después la animación
     y recién al final el botón, para que la animación no quede debajo del CTA. */
  .context { height: auto; padding: 10rem 0; }
  .context__inner { display: flex; flex-direction: column; gap: 0; }
  .context__text { display: contents; }
  .context__title { order: 1; max-width: 64rem; color: #fff; }
  .context__lead { order: 1; max-width: 64rem; margin-top: 3.4rem; color: #fff; }
  .context__media { order: 2; position: relative; inset: auto; margin-top: 6rem; }
  .ctx-anim { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 790 / 910; --view-x: 110; --view-y: 200; --view-w: 790; }
  .context__text .btn { order: 3; margin: 5rem 0 0; }

  /* Prueba social */
  .proof { padding-top: 10rem; }
  .proof__stats { flex-direction: column; gap: 6rem; }
  .proof__title { width: auto; margin-left: 0; }
  .stats { width: 100%; justify-content: space-between; gap: 2rem; margin: 0; }
  .logos { --logo-w: 19rem; width: auto; margin: 9rem calc(var(--gutter) * -1) 0; }
  .logos img { scale: .85; }
  @media (prefers-reduced-motion: reduce) {
    .logos { margin-inline: 0; }
    .logos__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 3rem; }
  }

  /* Funcionalidades */
  .features-wrap { padding-top: 10rem; }
  .features { --pad-l: 4rem; --pad-r: 4rem; min-height: 0; margin: 0; padding: 7rem var(--pad-r) 8rem var(--pad-l); }
  .features__title { font-size: 4.4rem; line-height: 6rem; }
  .features__viewport { margin-top: 6rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); row-gap: 6rem; }

  /* Experiencia */
  .experience { height: auto; margin-top: 10rem; padding-bottom: 10rem; background: #fdfdfd; }
  .experience::before { display: none; }
  .experience__media { position: relative; left: auto; width: 100%; height: auto; aspect-ratio: 730 / 800; --view-x: 230; --view-y: 70; --view-w: 730; }
  .experience__media .xp-bg { display: none; }
  .experience__inner { margin-top: 2rem; }
  .experience__text { position: static; width: auto; max-width: 64rem; }
  .experience__lead { left: 0; }

  /* IA */
  .ai { margin-top: 0; padding: 10rem 0; }
  .ai__inner { display: flex; flex-direction: column; gap: 6rem; }
  .ai__intro { max-width: 64rem; }
  .ai__title { font-size: 3.8rem; line-height: 4.8rem; }
  .agente { justify-self: start; }
  .agente__chips { position: static; left: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-top: 2.4rem; }
  .agente__chips li:nth-child(2) { margin-left: 0; }
  .ai__list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6rem; }

  /* Demo */
  .demo { padding: 10rem 0; }
  /* minmax(0,…): un botón largo no debe poder ensanchar la columna */
  .demo__inner { grid-template-columns: minmax(0, 1fr); gap: 5rem; }
  .demo__title { font-size: 3.8rem; line-height: 4.8rem; }
  .demo__card { padding: 3.4rem; }

  /* Footer */
  .site-footer { margin-top: 10rem; }
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6rem 4rem;
    height: auto;
    padding: 9rem 0 calc(5rem + 14vw); /* abajo queda lugar para el logo de partículas */
  }
  .site-footer__logo,
  .site-footer__nav,
  .social,
  .site-footer__legal { position: static; }
  .site-footer__nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4rem 2rem; }
  .footer-col:nth-child(n) { width: auto; }
  .footer-col__title,
  .footer-col li { font-size: 1.8rem; line-height: 3rem; }
  .social { gap: 2.4rem; }
  .site-footer__legal { grid-column: 1 / -1; gap: 1rem; }
  .site-footer__legal-links li,
  .site-footer__copy,
  .site-footer__company { font-size: 1.6rem; line-height: 2.4rem; }
}

/* ==========================================================================
   Mobile (≤699px)
   ========================================================================== */
@media (max-width: 699px) {
  :root { --gutter: 2.6rem; }

  .site-header__logo img { width: 17rem; }

  /* Hero */
  .hero { padding-top: 14.5rem; }
  .hero__title { max-width: 100%; font-size: 4.1rem; line-height: 5rem; }
  .hero__lead { max-width: 100%; margin-top: 2.4rem; font-size: 2.2rem; line-height: 3.2rem; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 1.6rem; width: 100%; max-width: 44rem; margin: 3.2rem auto 0; }
  .btn--lg { width: 100%; height: 7.4rem; font-size: 2.4rem; }
  .btn--wa.btn--lg { width: 100%; }
  .hero__collage { width: 175%; margin: 2rem 0 0 -37.5%; }

  /* Problemas */
  .eyebrow { margin-left: 0; font-size: 2rem; line-height: 2.8rem; }
  .pains__title { margin: 1.2rem 0 0; font-size: 3.6rem; line-height: 4.6rem; }
  .pains__title br { display: none; }
  /* Las tres preguntas apiladas: en carrusel la 2ª y la 3ª quedaban fuera de pantalla */
  .carousel__track { flex-direction: column; gap: 2.4rem; overflow-x: visible; scroll-snap-type: none; padding-inline: var(--gutter); }
  .carousel__track::after { display: none; }
  .carousel__controls { display: none; }
  .pain-card { flex: none; width: 100%; height: 46rem; border-radius: 3.2rem; }
  .pain-card__text { font-size: 2.4rem; line-height: 2.9rem; }
  .pain-card--light .pain-card__text { width: 100%; max-width: 34rem; height: 19rem; padding: 3.6rem 3.6rem 0; }
  .pain-card--tall .pain-card__text { height: 21rem; padding-left: 3.6rem; }
  .pain-card--dark .pain-card__text { max-width: 30rem; margin: auto 0 3.4rem 3.6rem; }
  .pain-card__icon { display: none; }
  .pain-card__more { display: inline-flex; }

  /* Contexto */
  .context { padding: 8rem 0; }
  /* en mobile se acerca al celular; las interfaces quedan detrás */
  .ctx-anim { aspect-ratio: 570 / 885; --view-x: 230; --view-y: 215; --view-w: 570; }
  .context__title { font-size: 4rem; line-height: 5.2rem; }
  .context__lead { margin-top: 3rem; font-size: 2.2rem; line-height: 3.6rem; }
  .context__media { margin-top: 4rem; }
  .context__text .btn { width: 100%; height: 7.4rem; margin: 4rem 0 0; }

  /* Prueba social */
  .proof { padding-top: 8rem; }
  .proof__stats { gap: 5rem; }
  .proof__title { font-size: 3.2rem; line-height: 4.2rem; }
  .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5rem 2rem; }
  .stat__value { font-size: 6rem; line-height: 6rem; }
  .stat__label { font-size: 1.9rem; }
  .logos { --logo-w: 17rem; --logos-speed: 24s; gap: 1rem; margin-top: 7rem; }
  .logos__track--right { display: none; }
  .logos img { scale: .7; }

  /* Funcionalidades */
  .features-wrap { padding-top: 8rem; }
  .features { --pad-l: 2.6rem; --pad-r: 2.6rem; padding: 6rem var(--pad-r) 7rem var(--pad-l); border-radius: 3.2rem; }
  .features__title { font-size: 3.4rem; line-height: 4.6rem; }
  .features__viewport { margin-top: 4rem; }
  /* Grilla vertical: ícono a la izquierda y el texto al lado, para que las 7
     entren sin scroll horizontal y ninguna quede cortada por los bordes. */
  .features__grid { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .feature__link {
    display: grid;
    grid-template-columns: 9.6rem minmax(0, 1fr);
    grid-template-areas: "icono titulo" "icono texto" "icono mas";
    align-items: start;
    gap: 0 1.8rem;
    padding: 2.2rem;
    background: rgba(255, 255, 255, .06);
    text-align: left;
  }
  .feature__icon { grid-area: icono; align-self: center; width: 9.6rem; height: 9.6rem; }
  .feature__title { grid-area: titulo; margin-top: 0; font-size: 2.2rem; line-height: 3rem; white-space: normal; }
  .feature__text { grid-area: texto; max-width: none; margin-top: .4rem; font-size: 1.75rem; line-height: 2.6rem; }
  .feature__more { grid-area: mas; margin-top: 1rem; font-size: 1.7rem; }
  .feature__title { margin-top: 1.6rem; font-size: 2.2rem; }
  .feature__text { max-width: 36rem; font-size: 1.9rem; line-height: 3rem; }

  /* Experiencia */
  .experience { margin-top: 8rem; padding-bottom: 8rem; }
  .experience__media { aspect-ratio: 700 / 790; --view-x: 248; --view-y: 76; --view-w: 700; }
  .experience__title { font-size: 3.4rem; line-height: 4.2rem; }
  .experience__lead { margin-top: 2.6rem; font-size: 2.1rem; line-height: 3.4rem; }
  .checklist { margin: 3rem 0 0; }
  .checklist--dos { grid-template-columns: 1fr; row-gap: 1.4rem; }
  .checklist li { font-size: 2.1rem; line-height: 3.2rem; }
  .checklist li::before,
  .checklist__check { width: 2.2rem; height: 2.2rem; }
  .checklist--dos .checklist__check { margin-top: .5rem; }

  /* IA */
  .ai { padding: 8rem 0; }
  .ai__title { font-size: 3.4rem; line-height: 4.4rem; }
  .ai__lead { font-size: 2rem; line-height: 3.2rem; }
  .ai__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 44rem; }
  .agente { max-width: 100%; }
  .agente__chips li { font-size: 1.7rem; }
  .ai__list { grid-template-columns: 1fr; gap: 2rem; margin-top: 5rem; }
  .ai-card__link { padding: 2.8rem 2.4rem; }
  .ai-card__title { font-size: 2.2rem; line-height: 3rem; }
  .ai-card__text { font-size: 1.9rem; line-height: 2.9rem; }

  /* Demo */
  .demo { padding: 8rem 0; }
  .demo__title { font-size: 3.4rem; line-height: 4.4rem; }
  .demo__lead { font-size: 2rem; line-height: 3.2rem; }
  .demo__puntos li { font-size: 1.9rem; line-height: 2.9rem; }
  .demo__wa.btn--lg { width: 100%; }
  .demo__card { padding: 2.8rem 2.4rem; border-radius: 2.6rem; }
  .form__field input, .form__field textarea, .form__field select { font-size: 1.9rem; padding: 1.6rem 1.8rem; }
  .form__field { font-size: 1.7rem; }
  .form .btn { justify-self: stretch; width: 100%; height: 7rem; font-size: 2.1rem; }
  .form__note { font-size: 1.7rem; line-height: 2.6rem; }

  /* Footer */
  .site-footer { margin-top: 8rem; }
  .site-footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 5rem; padding: 7rem 0 calc(4rem + 14vw); }
  .site-footer__logo img { width: 22rem; }
  .site-footer__nav { grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   Cómo funciona · Integraciones · Embudo antes/después · Testimonios
   ========================================================================== */
/* Marcelo (R2): abajo de los tres pasos quedaba otra franja vacía grande
   antes de la sección oscura. Es la única sección de la home que se recorta:
   las demás mantienen el ritmo de 12rem. */
.pasos { padding: 12rem 0 8rem; background: #fff; }
/* Marcelo (R2): a 86rem el título cortaba dejando "semana" sola en el renglón
   de abajo, con medio contenedor vacío al lado. Con más ancho entra completo. */
.pasos__head { max-width: 86rem; }
@media (min-width: 1100px) {
  .pasos__head { max-width: 112rem; }
  .pasos__title { text-wrap: balance; }
}
.pasos__title { margin-top: 1.4rem; font-size: 4.4rem; font-weight: 600; line-height: 5.4rem; color: var(--ink-strong); }
.pasos__lead { margin-top: 2.2rem; font-size: 1.95rem; line-height: 3.2rem; color: var(--ink-600); }
.pasos__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 6rem; counter-reset: paso; }
.paso { position: relative; padding: 3.6rem 3.2rem; border-radius: 2.8rem; background: var(--bg-soft); }
/* línea que une los tres pasos */
.paso:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6.4rem;
  right: -3rem;
  width: 3rem;
  height: .2rem;
  background: repeating-linear-gradient(90deg, var(--purple) 0 .6rem, transparent .6rem 1.2rem);
}
.paso__n {
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 600;
}
.paso__title { margin-top: 2.4rem; font-size: 2.3rem; font-weight: 600; line-height: 3.1rem; color: var(--ink-strong); text-wrap: balance; }
.paso__text { margin-top: 1.2rem; font-size: 1.8rem; line-height: 2.9rem; color: var(--ink-600); }

.integra { padding: 10rem 0; background: #fff; }
.integra__inner { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); align-items: center; gap: 6rem; }
.integra__title { font-size: 3.4rem; font-weight: 600; line-height: 4.4rem; color: var(--ink-strong); }
.integra__lead { margin-top: 1.6rem; font-size: 1.85rem; line-height: 3rem; color: var(--ink-600); }
.integra__link { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.4rem; font-size: 1.75rem; font-weight: 600; color: var(--indigo); }
.integra__link svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.integra__link:hover { color: var(--purple); }
.integra__logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; }
.integra__logos a {
  display: grid;
  place-items: center;
  height: 12rem;
  padding: 2rem;
  border-radius: 2rem;
  background: var(--bg-soft);
  transition: background-color .25s ease, transform .25s ease;
}
.integra__logos a:hover { background: #ececf5; transform: translateY(-.4rem); }
.integra__logos img { width: auto; max-width: 100%; max-height: 5.4rem; }

.embudo { padding: 12rem 0; background: var(--bg-soft); }
.section-head-h { max-width: 96rem; }
.embudo__title { margin-top: 1.4rem; font-size: 4.4rem; font-weight: 600; line-height: 5.4rem; color: var(--ink-strong); }
.embudo__comparacion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.8rem; margin-top: 5.6rem; }
.embudo__lado { padding: 4rem 3.6rem; border-radius: 3rem; background: #fff; }
.embudo__lado--mal { box-shadow: inset 0 0 0 .2rem #fbdcdc; }
.embudo__lado--bien { box-shadow: inset 0 0 0 .2rem #cdf3e2; }
.embudo__kicker { font-size: 2.6rem; font-weight: 600; line-height: 3.4rem; }
.embudo__lado--mal .embudo__kicker { color: #c42f2f; }
.embudo__lado--bien .embudo__kicker { color: #119a60; }
.embudo__sub { margin-top: .8rem; font-size: 1.75rem; line-height: 2.7rem; color: var(--ink-500); }
.embudo__etapas { display: grid; gap: 1rem; margin-top: 3rem; justify-items: center; }
.embudo__etapas li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  /* Marcelo (R2): el ancho proporcional (100/70/40 %) en celular dejaba la
     barra más chica que su propio texto, así que "23 ventas" se derramaba
     fuera del color y quedaba medio sobre el tinte y medio sobre el blanco.
     Con el mínimo del contenido la proporción se respeta mientras entre. */
  width: var(--w);
  min-width: fit-content;
  padding: 1.6rem 2rem;
  border-radius: 1.4rem;
}
.embudo__lado--mal .embudo__etapas li { background: linear-gradient(90deg, #fdeaea, #fbd5d5); }
.embudo__lado--bien .embudo__etapas li { background: linear-gradient(90deg, #e7f9f0, #ccf2e0); }
.embudo__etapas b { font-size: 2.6rem; font-weight: 600; line-height: 3rem; color: var(--ink-strong); }
.embudo__etapas span { font-size: 1.6rem; color: var(--ink-600); }
.embudo__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-top: 3rem; }
.embudo__kpis div { padding: 1.8rem 2rem; border-radius: 1.4rem; background: var(--bg-soft); }
.embudo__kpis dt { font-size: 1.5rem; color: var(--ink-500); }
.embudo__kpis dd { margin-top: .4rem; font-size: 2.8rem; font-weight: 600; line-height: 3.2rem; }
.embudo__lado--mal .embudo__kpis dd { color: #c42f2f; }
.embudo__lado--bien .embudo__kpis dd { color: #119a60; }
.embudo__pie { margin-top: 2.2rem; font-size: 1.75rem; font-weight: 500; line-height: 2.7rem; color: var(--ink-600); }
.embudo__nota { margin-top: 2.8rem; font-size: 1.5rem; color: var(--ink-400); }

.testimonios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.8rem; margin-top: 9rem; }
.testimonio { padding: 3.6rem; border-radius: 2.8rem; background: #fff; box-shadow: inset 0 0 0 .1rem #ececf2; }
.testimonio__texto { font-size: 2rem; line-height: 3.2rem; color: var(--ink-strong); }
.testimonio__autor { display: grid; gap: .3rem; margin-top: 2.4rem; }
.testimonio__autor b { font-size: 1.8rem; font-weight: 600; color: var(--ink-strong); }
.testimonio__autor span { font-size: 1.6rem; color: var(--ink-500); }
.testimonio__dato { display: inline-block; margin-top: 1.6rem; padding: .6rem 1.4rem; border-radius: 999px; background: #e7f9f0; font-size: 1.5rem; font-weight: 600; color: #119a60; }

.proof__cierre { display: grid; justify-items: center; gap: 2.8rem; margin-top: 7rem; text-align: center; }
.proof__cierre-t { font-size: 3.2rem; font-weight: 600; line-height: 4.2rem; color: var(--ink-strong); }
.proof__cierre-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

@media (max-width: 1099px) {
  .pasos, .embudo { padding: 9rem 0; }
  .integra { padding: 8rem 0; }
  .pasos__title, .embudo__title { font-size: 3.8rem; line-height: 4.8rem; }
  .pasos__lista { grid-template-columns: 1fr; gap: 2rem; margin-top: 4.6rem; }
  .paso:not(:last-child)::after { display: none; }
  .integra__inner { grid-template-columns: 1fr; gap: 4rem; }
  .integra__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .embudo__comparacion { grid-template-columns: 1fr; }
  .testimonios { grid-template-columns: 1fr; margin-top: 6rem; }
}

@media (max-width: 699px) {
  .pasos, .embudo { padding: 8rem 0; }
  .pasos__title, .embudo__title { font-size: 3.4rem; line-height: 4.4rem; }
  .pasos__lead, .integra__lead { font-size: 2rem; line-height: 3.2rem; }
  .paso { padding: 2.8rem 2.4rem; }
  .paso__title { font-size: 2.2rem; }
  .paso__text { font-size: 1.9rem; line-height: 3rem; }
  .integra__title { font-size: 3rem; line-height: 4rem; }
  .integra__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .integra__logos a { height: 10rem; }
  .embudo__lado { padding: 3rem 2.4rem; }
  .embudo__etapas li { padding: 1.4rem 1.6rem; }
  .embudo__etapas b { font-size: 2.3rem; }
  .embudo__etapas span { font-size: 1.5rem; }
  .embudo__kpis { grid-template-columns: 1fr; }
  .testimonio { padding: 2.8rem 2.4rem; }
  .testimonio__texto { font-size: 2rem; line-height: 3.2rem; }
  .proof__cierre-t { font-size: 2.8rem; line-height: 3.8rem; }
  .proof__cierre-acciones { flex-direction: column; align-items: stretch; width: 100%; max-width: 44rem; }
}


/* ==========================================================================
   Por qué Chatealo · Planes · Preguntas frecuentes · WhatsApp flotante
   ========================================================================== */
.porque { padding: 12rem 0; background: #fff; }
.porque__title { margin-top: 1.4rem; font-size: 4.4rem; font-weight: 600; line-height: 5.4rem; color: var(--ink-strong); }
.porque__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 3.4rem; margin-top: 6rem; }
.motivo svg { width: 2.6rem; height: 2.6rem; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.motivo__title { margin-top: 1.6rem; font-size: 2.1rem; font-weight: 600; line-height: 2.9rem; color: var(--ink-strong); }
.motivo__text { margin-top: 1rem; font-size: 1.8rem; line-height: 2.9rem; color: var(--ink-600); }

.porque__industrias { margin-top: 6rem; padding-top: 4rem; border-top: 1px solid #ececf2; }
.porque__industrias-t { font-size: 1.6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.porque__pills { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.porque__pills a { display: inline-flex; padding: 1.1rem 2.2rem; border-radius: 999px; background: var(--bg-soft); font-size: 1.7rem; font-weight: 500; color: var(--ink-strong); transition: background-color .25s ease, color .25s ease; }
.porque__pills a:hover { background: var(--indigo); color: #fff; }
.porque__partners { margin-top: 2.8rem; font-size: 1.75rem; line-height: 2.8rem; color: var(--ink-600); }
.porque__partners a { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--indigo); }
.porque__partners a:hover { color: var(--purple); }
.porque__partners svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.planes { padding: 11rem 0; background: var(--navy); color: #fff; }
.planes__inner { display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); align-items: center; gap: 8rem; }
.planes__title { font-size: 4.4rem; font-weight: 600; line-height: 5.4rem; }
.planes__lead { margin-top: 2.2rem; font-size: 1.95rem; line-height: 3.2rem; color: rgba(255, 255, 255, .82); }
.planes__acciones { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 4rem; }
.planes__perfiles { display: grid; gap: 1.6rem; }
.planes__perfiles li { display: flex; align-items: center; gap: 2rem; padding: 2.4rem 2.8rem; border-radius: 2rem; background: rgba(255, 255, 255, .07); }
.planes__icono { display: grid; place-items: center; flex: none; width: 5.6rem; height: 5.6rem; border-radius: 1.6rem; background: rgba(255, 255, 255, .1); }
.planes__icono svg { width: 2.8rem; height: 2.8rem; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.planes__perfil { display: grid; gap: .4rem; }
.planes__perfil b { font-size: 1.95rem; font-weight: 600; line-height: 2.7rem; }
.planes__perfil span { font-size: 1.7rem; color: rgba(255, 255, 255, .7); }

.faq-home { padding: 12rem 0; background: var(--bg-soft); }
.faq-home__inner { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); align-items: start; gap: 8rem; }
.faq-home__title { margin-top: 1.4rem; font-size: 4rem; font-weight: 600; line-height: 5rem; color: var(--ink-strong); }
.faq-home__lead { margin-top: 2rem; font-size: 1.85rem; line-height: 3rem; color: var(--ink-600); }
.faq-home__link { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.4rem; font-size: 1.75rem; font-weight: 600; color: var(--indigo); }
.faq-home__link svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.faq-home__link:hover { color: var(--purple); }
.faq-home__lista { display: grid; gap: 1.4rem; }
/* <details> nativo: funciona sin JavaScript */
.faq-item { padding: 0 3rem; border-radius: 2rem; background: #fff; box-shadow: inset 0 0 0 .1rem #ececf2; }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.8rem 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.9rem;
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__mas { position: relative; flex: none; width: 2.4rem; height: 2.4rem; }
.faq-item__mas::before,
.faq-item__mas::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1.8rem; height: .2rem; background: var(--indigo); transform: translate(-50%, -50%); transition: transform .25s ease; }
.faq-item__mas::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__mas::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item__a { padding: 0 0 2.8rem; font-size: 1.8rem; line-height: 3rem; color: var(--ink-600); }
.faq-item:hover { box-shadow: inset 0 0 0 .15rem #d8d8e8; }

/* El pie va pegado al formulario, sin franja blanca en el medio */
body:has(.demo) .site-footer { margin-top: 0; }

/* El botón flotante de WhatsApp lo crea ref_ads.php: con el menú mobile o un popup abiertos estorba */
body.nav-open #chatealo-wa-widget,
html.has-dialog #chatealo-wa-widget { display: none; }

@media (max-width: 1099px) {
  .porque, .faq-home { padding: 9rem 0; }
  .planes { padding: 9rem 0; }
  .porque__title, .planes__title { font-size: 3.8rem; line-height: 4.8rem; }
  .porque__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.4rem 3rem; margin-top: 4.6rem; }
  .planes__inner, .faq-home__inner { grid-template-columns: 1fr; gap: 4.6rem; }
  .faq-home__title { font-size: 3.6rem; line-height: 4.6rem; }
}

@media (max-width: 699px) {
  .porque, .planes, .faq-home { padding: 8rem 0; }
  .porque__title, .planes__title { font-size: 3.4rem; line-height: 4.4rem; }
  .porque__lista { grid-template-columns: 1fr; gap: 3rem; }
  .motivo__title { font-size: 2.2rem; line-height: 3rem; }
  .motivo__text { font-size: 1.9rem; line-height: 3rem; }
  .planes__lead, .faq-home__lead { font-size: 2rem; line-height: 3.2rem; }
  .planes__acciones { flex-direction: column; align-items: stretch; width: 100%; max-width: 44rem; }
  .planes__perfiles li { padding: 2rem 2.2rem; gap: 1.6rem; }
  .planes__perfil b { font-size: 1.9rem; line-height: 2.6rem; }
  .faq-home__title { font-size: 3.2rem; line-height: 4.2rem; }
  .faq-item { padding: 0 2.4rem; }
  .faq-item__q { padding: 2.4rem 0; font-size: 1.95rem; line-height: 2.8rem; }
  .faq-item__a { padding-bottom: 2.4rem; font-size: 1.9rem; line-height: 3rem; }
}
