/* ============================================================
   LANDING AI 2 — CSS
   Stack: HTML + CSS + JS vanilla
   Tipografía: Poppins (títulos) + Inter (cuerpo)
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #00e185;  /* color institucional */
  --blue:    #2563eb;  /* color adicional */
  --purple:  #7c3aed;  /* color adicional */
  --wa:      #67c15e;
  --dark:    #272b3a;
  --red:     #ed3237;
  --orange:  #fe9b17;
  --gray:    #747474;
  --light-bg:#f0eeff;
  --px:      120px;
  --radius:  24px;
}

html, body {
  overflow-x: clip;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #fff;
}

/* ── Buttons ───────────────────────────────────────────── */
.l2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.l2-btn:hover { opacity: .88; }

.l2-btn--gradient {
  background: linear-gradient(-12.68deg, #2563eb 14.6%, #7c3aed 85.4%);
  color: #fefefe;
  border-radius: 188px;
  font-size: 22px;
  padding: 0 44px;
  height: 72px;
}

.l2-btn--white-green {
  background: #fff;
  color: var(--wa);
  border-radius: 123px;
  font-size: 18px;
  font-weight: 700;
  padding: 0 14px 0 24px;
  height: 61px;
  gap: 8px;
}

/* ── SHARED: Header / Botones / Footer (de landing-ai.css) ─ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 96px;
  background: #fff;
  border-bottom: 1px solid #d2d3d5;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { width: 220px; height: auto; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-right-1 { display: flex; align-items: center; gap: 24px; }
.arg-flag { display: flex; flex-direction: column; }
.arg-flag span { display: block; width: 34px; height: 7.5px; }
.arg-flag .flag-sky   { background: #00d0ff; }
.arg-flag .flag-white { background: #f0f0f0; }
.flag-label { font-size: 16px; font-weight: 600; color: #4b4b4d; }

.hero-cta { display: flex; align-items: center; gap: 20px; margin-bottom: 52px; }

.btn-gradient {
  background: linear-gradient(-12.68deg, #2563eb 14.6%, #7c3aed 85.4%);
  color: #fefefe;
  font-size: 24px;
  font-weight: 700;
  height: 74px;
  padding: 0 44px;
  border-radius: 188px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: opacity .2s;
  border: none;
  cursor: pointer;
}
.btn-gradient:hover { opacity: .9; }

.btn-gradient-whatsapp {
  background: linear-gradient(-12.68deg, #67C15E 14.6%, #72E368 85.4%);
  color: #fefefe;
  font-size: 24px;
  font-weight: 700;
  height: 74px;
  padding: 0 44px;
  border-radius: 188px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: opacity .2s;
  border: none;
  cursor: pointer;
}
.btn-gradient-whatsapp:hover { opacity: .9; }

.btn-meta {
  background: linear-gradient(-18.92deg, #3867ae 14.4%, #3983ae 85.6%);
  width: 108px;
  height: 46px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.btn-meta img { width: 66px; height: 26.4px; object-fit: contain; }

.footer {
  background: #272b3a;
  min-height: 375px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
  height: 375px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { width: 220px; height: auto; }
.footer-social { height: 36px; width: auto; }

/* ── HEADER ─────────────────────────────────────────────── */
.l2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e2e4;
  height: 76px;
  display: flex;
  align-items: center;
}
.l2-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.l2-header__logo img { display: block; height: 39px; width: auto; }
.l2-header__label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #4b4b4d;
}

/* Flag mobile — oculto en desktop */
.l2-flag-mobile { display: none; }

/* ── HERO ───────────────────────────────────────────────── */
.l2-hero {
  position: relative;
  min-height: 680px;
  padding: 80px 0 0;
}
.l2-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.l2-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.l2-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: flex-start;
  gap: 60px;
  min-height: 600px;
  padding-bottom: 60px;
}
.l2-hero__text {
  padding-top: 60px;
  padding-bottom: 80px;
}
.l2-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.23;
  color: #373435;
  margin-bottom: 20px;
}
.l2-hero__subtitle {
  font-size: 22px;
  color: var(--gray);
  line-height: 1.4;
  margin-bottom: 36px;
  max-width: 460px;
}
.l2-hero__ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.l2-hero__badge-btn img {
  height: 52px;
  width: auto;
  display: block;
}

/* ── HERO VISUAL ────────────────────────────────────────── */
.l2-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
  padding: 60px 0;
}

/* Teléfono */
.l2-hero__phone-wrap {
  position: relative;
  width: 936px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@keyframes phoneReveal {
  0%   {
    transform: perspective(800px) rotateZ(-78deg) rotateY(40deg) scale(.55) translateX(-60px) translateY(80px);
    opacity: .15;
  }
  100% {
    transform: perspective(800px) rotateZ(0deg) rotateY(0deg) scale(1) translateX(0) translateY(0);
    opacity: 1;
  }
}

/* celu-hero.png — z-index 3, tamaño original: 457/936 = ~49% del contenedor */
.l2-hero__phone {
  position: relative;
  z-index: 3;
  width: 49%;
  height: auto;
  display: block;
  flex-shrink: 0;
  animation: phoneReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: center bottom;
}

/* sombra-celu-hero.png — z-index 4, tamaño original: 638/936 = ~68% del contenedor */
.l2-hero__phone-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: auto;
  z-index: 4;
  pointer-events: none;
}

/* bg-celu-hero.png — z-index 2, centrado, cubre todo el div */
.l2-hero__phone-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  z-index: 2;
  pointer-events: none;
}

/* ── CARDS CAYENDO — hojas de árbol ─────────────────────── */
.l2-cards-fall {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 380px;
  margin-top: -20px;
  /* fadeout solo en el borde inferior, sin cortar los costados */
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* Base: tamaño natural, posición absoluta */
.l2-fall-card {
  position: absolute;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform-origin: center center;
}

/* Tamaños y posiciones de cada card */
.l2-fall-card--1 { width: 180px; top: 0; left: 10%; }
.l2-fall-card--2 { width: 160px; top: 0; right: 10%; }
.l2-fall-card--3 { width: 170px; top: 0; right: 12%; }
.l2-fall-card--4 { width: 85%;   top: 0; left: 7.5%; }
.l2-fall-card--5 { width: 175px; top: 0; right: 10%; }

/* Animaciones únicas por card — flip + giro + caída + shrink + fadeout
   fill-mode: backwards → permanecen opacity:0 hasta que arranque su delay */
.l2-fall-card--1 { animation: leaf1 4.5s ease-in infinite backwards; animation-delay: 1.4s; }
.l2-fall-card--2 { animation: leaf2 4s   ease-in infinite backwards; animation-delay: 2.4s; }
.l2-fall-card--3 { animation: leaf3 5s   ease-in infinite backwards; animation-delay: 3.4s; }
.l2-fall-card--4 { animation: leaf4 4.2s ease-in infinite backwards; animation-delay: 4.4s; }
.l2-fall-card--5 { animation: leaf5 4.8s ease-in infinite backwards; animation-delay: 5.4s; }

@keyframes leaf1 {
  0%   { transform: perspective(700px) translateY(0)    rotateZ(0deg)   rotateY(0deg)   scale(1);    opacity: 0; }
  8%   { opacity: 1; }
  30%  { transform: perspective(700px) translateY(80px)  rotateZ(10deg)  rotateY(90deg)  scale(1); }
  60%  { transform: perspective(700px) translateY(200px) rotateZ(-6deg)  rotateY(210deg) scale(.88); opacity: .8; }
  85%  { transform: perspective(700px) translateY(310px) rotateZ(5deg)   rotateY(330deg) scale(.78); opacity: .25; }
  100% { transform: perspective(700px) translateY(370px) rotateZ(3deg)   rotateY(360deg) scale(.75); opacity: 0; }
}
@keyframes leaf2 {
  0%   { transform: perspective(700px) translateY(0)    rotateZ(0deg)   rotateY(0deg)    scale(1);    opacity: 0; }
  8%   { opacity: 1; }
  25%  { transform: perspective(700px) translateY(60px)  rotateZ(-12deg) rotateY(-90deg)  scale(1); }
  55%  { transform: perspective(700px) translateY(180px) rotateZ(8deg)   rotateY(-200deg) scale(.88); opacity: .85; }
  85%  { transform: perspective(700px) translateY(300px) rotateZ(-4deg)  rotateY(-320deg) scale(.78); opacity: .2; }
  100% { transform: perspective(700px) translateY(370px) rotateZ(-2deg)  rotateY(-360deg) scale(.75); opacity: 0; }
}
@keyframes leaf3 {
  0%   { transform: perspective(700px) translateY(0)    rotateZ(0deg)  rotateX(0deg)   scale(1);    opacity: 0; }
  8%   { opacity: 1; }
  35%  { transform: perspective(700px) translateY(100px) rotateZ(7deg)  rotateX(90deg)  scale(1); }
  65%  { transform: perspective(700px) translateY(230px) rotateZ(-5deg) rotateX(200deg) scale(.88); opacity: .8; }
  88%  { transform: perspective(700px) translateY(330px) rotateZ(3deg)  rotateX(310deg) scale(.78); opacity: .2; }
  100% { transform: perspective(700px) translateY(370px) rotateZ(2deg)  rotateX(360deg) scale(.75); opacity: 0; }
}
@keyframes leaf4 {
  0%   { transform: perspective(700px) translateY(0)    rotateZ(0deg)  rotateY(0deg)   scale(1);    opacity: 0; }
  8%   { opacity: 1; }
  30%  { transform: perspective(700px) translateY(70px)  rotateZ(-8deg) rotateY(90deg)  scale(1); }
  60%  { transform: perspective(700px) translateY(200px) rotateZ(5deg)  rotateY(180deg) scale(.88); opacity: .85; }
  85%  { transform: perspective(700px) translateY(310px) rotateZ(-3deg) rotateY(290deg) scale(.78); opacity: .2; }
  100% { transform: perspective(700px) translateY(370px) rotateZ(-1deg) rotateY(360deg) scale(.75); opacity: 0; }
}
@keyframes leaf5 {
  0%   { transform: perspective(700px) translateY(0)    rotateZ(0deg)  rotateY(0deg)    scale(1);    opacity: 0; }
  8%   { opacity: 1; }
  28%  { transform: perspective(700px) translateY(75px)  rotateZ(14deg) rotateY(-90deg)  scale(1); }
  58%  { transform: perspective(700px) translateY(210px) rotateZ(-9deg) rotateY(-190deg) scale(.88); opacity: .8; }
  86%  { transform: perspective(700px) translateY(320px) rotateZ(6deg)  rotateY(-300deg) scale(.78); opacity: .18; }
  100% { transform: perspective(700px) translateY(370px) rotateZ(3deg)  rotateY(-360deg) scale(.75); opacity: 0; }
}

/* Gradiente que desvanece el borde inferior */
.l2-cards-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 10;
}

/* Gradiente inferior del hero → funde con el blanco de la página */
.l2-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
  z-index: 10;
}

/* ── DESORDEN ───────────────────────────────────────────── */
.l2-desorden {
  max-width: 1440px;
  margin: 0px auto;
  padding: 0;
}
.l2-desorden__inner {
  background:
    linear-gradient(-62.84deg, #2563eb 3.7%, #7c3aed 94.7%);
  border-radius: 31px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 57% 43%;
  min-height: 620px;
  padding: 60px 70px 60px 84px;
  gap: 40px;
  align-items: center;
  position: relative;
}
.l2-desorden__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/brillo-desorden.png') center center / cover no-repeat;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.l2-desorden__chats,
.l2-desorden__text {
  position: relative;
  z-index: 1;
}

/* ── Cards apiladas ── */
.l2-desorden__chats {
  position: relative;
  height: 530px;
}
.l2-dcard {
  position: absolute;
  left: 0;
  width: 80%;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
}
.l2-dcard__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.l2-dcard__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.l2-dcard__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.l2-dcard__name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #373435;
  white-space: nowrap;
}
.l2-dcard__msg {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #96989a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.l2-dcard__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.l2-dcard__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
}
.l2-dcard__time {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #96989a;
}
.l2-dcard__status {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

/* ── Texto derecho ── */
.l2-desorden__text {
  padding-top: 0;
}
.l2-desorden__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 32px;
}
.l2-desorden__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.l2-desorden__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  line-height: 1.4;
}
.l2-desorden__list li img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── FRASE ──────────────────────────────────────────────── */
.l2-frase {
  padding: 80px var(--px);
  text-align: center;
}
.l2-frase p {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.25;
  color: #000;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── CENTRALIZA (carrusel coverflow horizontal por scroll) ──
   Pin con position:sticky (a prueba del html{zoom} global) +
   GSAP ScrollTrigger leyendo el progreso. Los slides se mueven
   de derecha a izquierda; el central queda a escala 1 sin blur
   ni opacidad reducida.
   Tarjeta base 700×533 con layout del Figma "Multiagente".
──────────────────────────────────────────────────────────── */
.l2-centraliza-wrap {
  background: linear-gradient(180deg, #fff 0%, #e8e5ff 49.682%, #fff 100%);
  position: relative;
}
.l2-centraliza {
  position: relative;
}
/* Cuando el carrusel está activo (desktop + JS), la sección crece
   en alto para dar recorrido de scroll y el pin se vuelve sticky. */
.l2-centraliza.is-carousel { height: 400vh; }

/* Zona fija (pin) */
.l2-centraliza__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
  padding: 60px 0;
}
.l2-centraliza.is-carousel .l2-centraliza__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 84px 0 24px;   /* deja libre el header sticky */
  gap: 40px;
  overflow: hidden;
}

/* Encabezado: título + bullets centrados */
.l2-centraliza__head { text-align: center; }
.l2-centraliza__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 57px;
  line-height: 1.43;
  color: var(--blue);
  margin-bottom: 24px;
}
.l2-centraliza__bullets {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}
.l2-centraliza__bullet {
  display: flex;
  gap: 13px;
  align-items: center;
}
.l2-centraliza__bullet-icon {
  position: relative;
  flex-shrink: 0;
  width: 21.107px;
  height: 21.107px;
}
.l2-centraliza__bullet-icon img {
  position: absolute;
  left: 1.96px;
  top: 4.976px;
  width: 16.282px;
  height: 12.212px;
  display: block;
}
.l2-centraliza__bullet-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4056;
  color: var(--blue);
  white-space: nowrap;
}

/* Viewport del carrusel — recorta los slides que salen de cuadro.
   El mask-image desvanece (opacidad en gradiente) las cards que entran
   por la derecha y las que ya pasaron por la izquierda. */
.l2-centraliza__viewport {
  position: relative;
  width: 100%;
  flex: 0 0 auto;       /* no se encoge: conserva la altura de la card */
  overflow: hidden;
  /* Fade a 0 en la mitad de las cards laterales.
     Mitad de la card lateral = 619px del centro (distancia entre centros);
     borde interno de la card lateral = 619 − 297 (½ ancho visual) = 322px. */
  -webkit-mask-image: linear-gradient(to right,
            transparent calc(50% - 619px), #000 calc(50% - 322px),
            #000 calc(50% + 322px), transparent calc(50% + 619px));
          mask-image: linear-gradient(to right,
            transparent calc(50% - 619px), #000 calc(50% - 322px),
            #000 calc(50% + 322px), transparent calc(50% + 619px));
}
/* Pista de slides: centra el primero y se desplaza por --p (0→1).
   Distancia entre centros = 700 − 160 (solape) = 540px.
   Recorrido total = (nº slides − 1) × 540px → lo fija el JS en --cv-travel. */
.l2-centraliza__cards {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px calc(50% - 350px);
  overflow-x: auto;
  scroll-snap-type: none;         /* snap controlado por JS con easing */
  scrollbar-width: none;          /* Firefox: oculta scrollbar */
  -ms-overflow-style: none;
  touch-action: pan-y;            /* JS maneja el swipe horizontal */
  cursor: grab;
  user-select: none;              /* sin selección de texto al arrastrar */
  touch-action: pan-x;            /* permite el arrastre con el dedo */
}
.l2-centraliza__cards.is-dragging { cursor: grabbing; }
.l2-centraliza__cards::-webkit-scrollbar { display: none; }
/* Evita el arrastre fantasma de las imágenes de las cards */
.l2-cv-card img { -webkit-user-drag: none; user-select: none; }

/* Flechas de navegación manual */
.l2-cv-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.l2-cv-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .2s;
}
.l2-cv-arrow:hover { opacity: .9; transform: scale(1.06); }
.l2-cv-arrow:active { transform: scale(.96); }
.l2-cv-arrow.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }

/* Tarjeta base (uniforme, layout "Multiagente") */
.l2-cv-card {
  --d: 1;                 /* blur/opacidad: 0 = activo, 1 = lateral */
  --dist: 1;              /* escala: distancia real (cada card más lejana, más chica) */
  --rot: 0deg;            /* perspectiva: rotación en Y (0 centrado, ±20deg en bordes) */
  position: relative;
  flex: 0 0 auto;
  width: 700px;
  height: 533px;
  border-radius: 39px;
  background: linear-gradient(180deg, var(--dark) 53.659%, #474c62 100%);
  transform-origin: center center;
  transform: scale(0.85);  /* escala al 85% */
  filter: none;            /* sin blur en secundarias */
  opacity: 1;
  scroll-snap-align: center;
}
/* Sin solape: gap visual entre cards. El scale(.85) deja 105px de espacio
   muerto por card (52.5px/lado); compenso el margen para un gap real de 24px:
   gap_box = 24 − 105 = −81px ⇒ gap visual = 24px. */
.l2-cv-card:not(:first-child) { margin-left: -81px; }
.l2-cv-card:first-child { --d: 0; --dist: 0; }   /* fallback sin JS: primero activo */

.l2-cv-card__icon {
  position: absolute;
  left: 61px;
  top: 38px;
  width: 242px;
  height: 242px;
  display: block;
  object-fit: cover;
  pointer-events: none;
}
.l2-cv-card__title {
  position: absolute;
  left: 89px;
  top: 249px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 50px;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}
.l2-cv-card__desc {
  position: absolute;
  left: 89px;
  top: 352px;
  width: 504px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.474;
  color: #fff;
}

/* ── FEATURES ───────────────────────────────────────────── */
.l2-features-wrap {
  background: var(--dark);
}
.l2-features {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.l2-features__card {
  padding: 50px 0 100px;
}
.l2-features__img {
  height: 360px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 32px;
  margin-left: -50px;
  width: calc(100% + 40px);
}
.l2-features__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.l2-features__body {
  padding: 0 40px;
}
.l2-features__body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.l2-features__body p {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

/* ── PASA AL SIGUIENTE NIVEL (cta-whatsapp) ─────────────── */
.cta-whatsapp {
  background: #fff;
  padding: 60px var(--px) 60px;
}
.cta-wa-card {
  background: #00E185;
  border-radius: 24px;
  max-width: 1440px;
  height: 244px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
}
.cta-wa-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 720px;
}
.cta-wa-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 36px;
  color: #fff;
  line-height: 1.3;
}
.btn-white {
  text-decoration: none;
  height: 84px;
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 34px;
  padding-right: 18px;
  gap: 34px;
  width: fit-content;
}
.btn-white:hover { filter: brightness(0.95); }
.btn-white-text {
  flex: 1;
  text-align: center;
  color: #67C15E;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.btn-white-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── CTA FINAL ──────────────────────────────────────────── */
.l2-cta-final {
  position: relative;
  overflow: hidden;
  /* Proporción Figma: 1103/1920 × 100vw */
  min-height: clamp(500px, 57.4vw, 1103px);
}

/* Fondo: full-width */
.l2-cta-final__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Cards: absolutas — 3 posiciones, JS las cicla. 90% del tamaño Figma */
.l2-cta-final__card {
  position: absolute;
  border-radius: 26px;
  box-shadow: 0 0 22.5px rgba(37,99,235,.2);
  transition: left 1s cubic-bezier(.4,0,.2,1),
              top  1s cubic-bezier(.4,0,.2,1),
              width 1s cubic-bezier(.4,0,.2,1),
              transform 1s cubic-bezier(.4,0,.2,1),
              box-shadow 1s ease;
}
/* Posiciones iniciales (JS las sobreescribe en el ciclo) */
.l2-cta-final__card--3 { left:12.45%; top:6.98%;  width:24.5%; z-index:1; }
.l2-cta-final__card--2 { left:5.78%;  top:32.1%;  width:25.2%; z-index:2; }
.l2-cta-final__card--1 { left:22.9%;  top:46.5%;  width:24.4%; z-index:3; }

/* Inner: caja 1440px centrada para el texto */
.l2-cta-final__inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
  height: clamp(500px, 57.4vw, 1103px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.l2-cta-final__text {
  max-width: 580px;
}

.l2-cta-final__line1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 3.125vw, 60px);
  color: var(--dark);
  line-height: 1.2;
}
.l2-cta-final__line2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 3.125vw, 60px);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 48px;
}

.btn-gradient-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-12.68deg, #2563eb 14.6%, #7c3aed 85.4%);
  color: #fefefe;
  border-radius: 188px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  height: 72px;
  padding: 0 52px;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-gradient-cta:hover { opacity: .88; }

/* ════════════════════════════════════════════════════
   RESPONSIVE — zoom proporcional para monitores < 1920px
   zoom escala TODO (posiciones, tipografías, gaps, imágenes)
   getBoundingClientRect() en JS ya tiene en cuenta el zoom
════════════════════════════════════════════════════ */

/* 1440px: zoom 0.75 (1440/1920) */
@media (min-width: 1367px) and (max-width: 1440px) {
  html { zoom: 0.75; }
  /* Compensa el zoom: 100vh se renderiza al 75% → 133.33vh = viewport real */
  .l2-centraliza.is-carousel .l2-centraliza__pin { height: 133.34vh; }
}

/* 1366px: zoom 0.712 (1366/1920) */
@media (min-width: 1025px) and (max-width: 1366px) {
  html { zoom: 0.712; }
  /* Compensa el zoom: 100vh se renderiza al 71.2% → 140.45vh = viewport real */
  .l2-centraliza.is-carousel .l2-centraliza__pin { height: 140.45vh; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 1024px
════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --px: 40px; }

  /* Header */
  .header-inner { padding: 0 var(--px); }
  .header-right  { display: none; }

  /* Hero */
  .l2-hero__content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 40px;
    gap: 0;
  }
  .l2-hero__title  { font-size: 40px; }

  /* Visual hero tablet: phone más pequeño */
  .l2-hero__visual { display: flex; }
  .l2-hero__phone-wrap { width: 600px; }

  /* Cards cayendo tablet — contenedor más compacto */
  .l2-cards-fall { max-width: 500px; height: 340px; }
  .l2-fall-card--1 { width: 44%; left: 5%;  }
  .l2-fall-card--2 { width: 42%; right: 5%; left: auto; }
  .l2-fall-card--3 { width: 44%; right: 5%; left: auto; }
  .l2-fall-card--4 { width: 88%; left: 6%;  }
  .l2-fall-card--5 { width: 44%; right: 5%; left: auto; }

  /* Hero gradient fade */
  .l2-hero::after { height: 100px; }

  /* Desorden */
  .l2-desorden { padding: 0 var(--px); }
  .l2-desorden__inner {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 32px;
    min-height: auto;
  }
  .l2-desorden__chats { order: 2; height: 480px; }
  .l2-desorden__text  { order: 1; }

  /* Frase */
  .l2-frase p { font-size: 30px; }

  /* Centraliza — carrusel desactivado, todo apilado en columna */
  .l2-centraliza { height: auto; }
  .l2-centraliza__pin {
    position: static;
    height: auto;
    overflow: visible;
    padding: 64px var(--px);
    gap: 48px;
    align-items: center;
  }
  .l2-centraliza__title { font-size: 40px; margin-bottom: 28px; }
  .l2-centraliza__bullets {
    flex-wrap: wrap;
    row-gap: 12px;
    column-gap: 28px;
  }
  /* Carousel horizontal — una card a la vez, swipe con dedo */
  .l2-centraliza__viewport {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .l2-centraliza__cards {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    /* 6vw + 88vw card + 6vw = 100vw → card centrada en viewport */
    padding: 24px 6vw;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none;
    overflow-x: auto;
    box-sizing: border-box;
  }
  .l2-cv-card {
    flex: 0 0 88vw;
    width: 88vw !important;
    height: auto !important;
    min-height: 280px;
    opacity: 1;
    filter: none;
    transform: none !important;
    border-radius: 24px;
    padding: 28px 24px 32px;
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-snap-align: center;
  }
  .l2-cv-card__icon {
    position: static !important;
    width: 80px !important;
    height: 80px !important;
    left: auto; top: auto;
    margin-bottom: 20px;
    object-fit: contain;
  }
  .l2-cv-card__title {
    position: static !important;
    left: auto; top: auto;
    white-space: normal;
    width: auto !important;
    font-size: 26px;
    margin: 0 0 10px;
  }
  .l2-cv-card__desc {
    position: static !important;
    left: auto; top: auto;
    width: auto !important;
    font-size: 15px;
  }

  /* Features */
  .l2-features-wrap { margin: 0; }
  .l2-features { grid-template-columns: 1fr; }
  .l2-features__card { padding: 40px 40px 50px; }
  .l2-features__img  { margin-left: -40px; width: calc(100% + 40px); }

  /* CTA whatsapp */
  .cta-wa-card  { height: auto; padding: 40px; border-radius: 20px; }
  .cta-wa-inner { flex-direction: column; gap: 24px; text-align: center; }
  .cta-wa-title { font-size: 28px; }

  /* CTA Final */
  .l2-cta-final {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .l2-cta-final__card--3 { left:8%;  top:3%;   width:42%; }
  .l2-cta-final__card--2 { left:2%;  top:22%;  width:43%; }
  .l2-cta-final__card--1 { left:18%; top:38%;  width:42%; }
  .l2-cta-final__inner {
    position: relative;
    height: auto;
    min-height: 420px;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
    text-align: center;
  }
  .l2-cta-final__text { max-width: 100%; text-align: center; }
  .l2-cta-final__line1, .l2-cta-final__line2 { font-size: 36px; }

  /* Footer */
  .footer-inner { flex-direction: column; justify-content: center; gap: 24px; height: auto; padding: 40px var(--px); }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 768px
════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --px: 20px; }

  /* Header — solo logo centrado */
  .header { height: 64px; }
  .header-inner { justify-content: center; padding: 0 20px; }
  .header-logo  { width: 180px; }
  .header-right { display: none; }

  /* Flag mobile — visible solo en mobile, arriba del hero */
  .l2-flag-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 0 0;
    position: relative;
    z-index: 1;
  }
  .header-right-1   { display: none; }

  .btn-meta {
    width: 64.8px !important;
    height: 27.6px !important;
  }
  .btn-meta img {
    width: 39.6px !important;
    height: 15.84px !important;
  }
  .btn-gradient-whatsapp{
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 20px;
    height: 64px;
  }
  .l2-centraliza__head{
    padding: 0px 10px;
  }

  /* Botones hero — igual que landing-ai mobile */
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
  }
  .btn-gradient {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 20px;
    height: 64px;
  }
  .btn-meta { width: 160px; height: 56px; }
  .btn-meta img { width: 90px; height: 36px; }

  /* Hero */
  .l2-hero { padding-top: 48px; }
  .l2-hero__text { padding: 0px 10px 40px 10px; }
  .l2-hero__title { font-size: 30px; line-height: 1.2; }
  .l2-hero__subtitle { font-size: 25px; }
  .l2-hero__ctas { gap: 16px; }

  /* Desorden */
  .l2-desorden { margin: 24px auto; padding: 0 var(--px); }
  .l2-desorden__inner { padding: 28px; border-radius: 20px; gap: 28px; }
  .l2-desorden__chats { height: 440px; }
  .l2-desorden__title { font-size: 24px; }
  .l2-desorden__list li { font-size: 15px; }
  .l2-dcard { padding: 10px 14px; gap: 10px; }
  .l2-dcard__avatar { width: 38px; height: 38px; }
  .l2-dcard__name   { font-size: 13px; }
  .l2-dcard__msg    { font-size: 11px; }
  .l2-dcard__badge  { font-size: 10px; min-width: 20px; height: 20px; }
  .l2-dcard__time, .l2-dcard__status { font-size: 10px; }

  /* Frase */
  .l2-frase { padding: 18px var(--px); }
  .l2-frase p { font-size: 32px; line-height: 1.35; }

  /* Centraliza */
  .l2-centraliza__pin { padding: 20px 0px; }
  .l2-centraliza__title { font-size: 28px; margin-bottom: 22px; }
  .l2-centraliza__bullets { column-gap: 20px; }
  .l2-centraliza__bullet-text { font-size: 15px; }
  .l2-cv-card { padding: 28px 24px 32px; border-radius: 22px; }
  .l2-centraliza__cards .l2-cv-card__icon  { width: 120px; height: 120px; }
  .l2-centraliza__cards .l2-cv-card__title { font-size: 28px; margin: 18px 0 12px; }
  .l2-centraliza__cards .l2-cv-card__desc  { font-size: 16px; }

  /* Features */
  .l2-features__card { padding: 32px 20px 40px; }
  .l2-features__img  { height: 300px; margin-bottom: -30px; margin-left: -20px; width: calc(100% + 20px); }
  .l2-features__body { padding: 0 20px; }
  .l2-features__body h3 { font-size: 30px; }
  .l2-features__body p  { font-size: 16px; }

  /* CTA whatsapp */
  .cta-whatsapp { padding: 40px var(--px) 40px; }
  .cta-wa-card  { border-radius: 16px; padding: 32px 20px; }
  .cta-wa-title { font-size: 22px; }
  .btn-white    { height: 64px; padding-left: 24px; padding-right: 14px; gap: 20px; }
  .btn-white-text  { font-size: 18px; }
  .btn-white-icon  { width: 40px; height: 40px; }

  /* CTA Final mobile — cards apiladas arriba, texto+botón abajo */
  .l2-cta-final { min-height: auto; }

  /* Posiciones iniciales mobile — 55% del ancho */
  .l2-cta-final__card--3 { left:42%;  top:1%;   width:55%; z-index:1; }
  .l2-cta-final__card--2 { left:2%;   top:16%;  width:55%; z-index:2; }
  .l2-cta-final__card--1 { left:20%;  top:33%;  width:55%; z-index:3; }

  .l2-cta-final__inner {
    min-height: 780px;
    align-items: flex-end;
    justify-content: center;
    padding: 0 var(--px) 52px;
    text-align: center;
  }
  .l2-cta-final__text    { max-width: 100%; }
  .l2-cta-final__line1   { font-size: 30px; }
  .l2-cta-final__line2   { font-size: 30px; margin-bottom: 32px; }
  .btn-gradient-cta {
    width: 100%;
    max-width: 320px;
    font-size: 18px;
    height: 60px;
    padding: 0;
  }

  /* Hero centrado en mobile */
  .l2-hero { min-height: auto; }
  .l2-hero__text { text-align: center; padding-top: 0; }
  .l2-hero__subtitle { margin: 0 auto 36px; }
  .l2-hero__ctas { flex-direction: column; align-items: center; gap: 16px; }

  /* Visual hero mobile: phone centrado, ancho completo */
  .l2-hero__visual { display: flex; }
  .l2-hero__phone-wrap {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .l2-dcard {
    width: 90%;
  }

  /* Cards cayendo mobile — contenidas en el cuadrado verde */
  .l2-cards-fall {
    display: block;
    position: relative;
    width: 100%;
    height: 360px;
    margin-top: 0;
    overflow: hidden;        /* clips 2D perfectly */
    transform: translateZ(0); /* crea stacking context para el clip */
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Posiciones mobile dentro del contenedor */
  .l2-fall-card--1 { width: 48%; left: 2%;  top: 0; }
  .l2-fall-card--2 { width: 46%; right: 2%; top: 0; left: auto; }
  .l2-fall-card--3 { width: 48%; left: 2%;  top: 0; }
  .l2-fall-card--4 { width: 92%; left: 4%;  top: 0; }
  .l2-fall-card--5 { width: 46%; right: 2%; top: 0; left: auto; }

  /* Animaciones 2D para mobile (sin rotateY/X que escapan overflow) */
  .l2-fall-card--1 { animation: mLeaf1 3.5s ease-in infinite backwards; animation-delay: 1.4s; }
  .l2-fall-card--2 { animation: mLeaf2 3.0s ease-in infinite backwards; animation-delay: 2.2s; }
  .l2-fall-card--3 { animation: mLeaf3 4.0s ease-in infinite backwards; animation-delay: 3.0s; }
  .l2-fall-card--4 { animation: mLeaf4 3.2s ease-in infinite backwards; animation-delay: 3.8s; }
  .l2-fall-card--5 { animation: mLeaf5 3.8s ease-in infinite backwards; animation-delay: 4.6s; }

  @keyframes mLeaf1 {
    0%   { transform: translateY(0)    rotateZ(0deg)   scale(1);    opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translateY(340px) rotateZ(12deg)  scale(.8);   opacity: 0; }
  }
  @keyframes mLeaf2 {
    0%   { transform: translateY(0)    rotateZ(0deg)   scale(1);    opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translateY(340px) rotateZ(-10deg) scale(.8);   opacity: 0; }
  }
  @keyframes mLeaf3 {
    0%   { transform: translateY(0)    rotateZ(0deg)   scale(1);    opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translateY(340px) rotateZ(8deg)   scale(.78);  opacity: 0; }
  }
  @keyframes mLeaf4 {
    0%   { transform: translateY(0)    rotateZ(0deg)   scale(1);    opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translateY(340px) rotateZ(-5deg)  scale(.8);   opacity: 0; }
  }
  @keyframes mLeaf5 {
    0%   { transform: translateY(0)    rotateZ(0deg)   scale(1);    opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translateY(340px) rotateZ(14deg)  scale(.78);  opacity: 0; }
  }

  /* Footer — igual que landing-ai mobile */
  .footer { min-height: unset; padding: 0; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 44px;
    height: auto;
    padding: 68px 24px;
  }
  .footer-logo   { width: 200px; }
  .footer-social { height: 32px; }
}
