/* ═══════════════════════════════════════════
   CHATEALO – Landing AI
   Estilos externos
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   INTRO – GLOW ESFERA (solo este bloque)
═══════════════════════════════════════════ */
#ai-intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #050714;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.76,0,0.24,1),
              opacity   0.3s ease 0.4s;
}
#ai-intro.exit { transform: scaleY(0.02); opacity: 0; pointer-events: none; }
#ai-intro.gone { display: none; }

#intro-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.intro-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 80px;
}

.intro-sphere-wrap {
  position: relative; width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.intro-sphere-img {
  width: 220px; height: 220px; object-fit: contain;
  position: relative; z-index: 2;
  animation: introSphereIn 1s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes introSphereIn {
  from { transform: scale(0.2); opacity: 0; filter: blur(20px); }
  to   { transform: scale(1);   opacity: 1; filter: blur(0); }
}
.intro-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.4);
  animation: introRingPulse 3s ease-in-out infinite;
}
.r1 { width:240px; height:240px; animation-delay:0s; }
.r2 { width:290px; height:290px; animation-delay:0.6s; border-color:rgba(37,99,235,0.3); }
.r3 { width:340px; height:340px; animation-delay:1.2s; border-color:rgba(99,102,241,0.2); }
@keyframes introRingPulse {
  0%,100% { transform:scale(1);    opacity:0.6; }
  50%     { transform:scale(1.06); opacity:1;   }
}
.intro-glow {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  animation: introGlowPulse 2s ease-in-out infinite alternate;
}
@keyframes introGlowPulse {
  from { opacity:0.4; transform:scale(0.9); }
  to   { opacity:1;   transform:scale(1.1); }
}

.intro-terminal { display:flex; flex-direction:column; gap:14px; min-width:420px; }
.intro-line {
  font-family: 'Courier New', monospace; font-size:17px; color:#00e185;
  opacity:0; display:flex; align-items:center; gap:10px; transition:opacity 0.2s;
}
.intro-line.visible { opacity:1; }
.intro-prompt { color:#7c3aed; font-size:20px; }
.intro-txt    { color:#c4b5fd; }
.intro-cursor { color:#00e185; animation:blink 0.7s step-end infinite; }
.intro-cursor.hide { display:none; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.intro-headline {
  position: absolute; bottom: 12%; left: 50%;
  transform: translateX(-50%) translateY(20px);
  text-align: center; opacity: 0; white-space: nowrap;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.intro-headline.show { opacity:1; transform:translateX(-50%) translateY(0); }
.intro-h1 {
  display:block; font-family:'Poppins',sans-serif;
  font-size:28px; font-weight:300; color:rgba(255,255,255,0.7); letter-spacing:2px;
}
.intro-h2 {
  display:block; font-family:'Poppins',sans-serif;
  font-size:48px; font-weight:600; color:#fff; letter-spacing:1px;
}
.intro-h2 em {
  font-style:normal;
  background:linear-gradient(90deg,#00e185,#7c3aed);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

.intro-skip {
  position:absolute; bottom:28px; right:36px;
  background:transparent; border:1px solid rgba(255,255,255,0.2);
  color:rgba(255,255,255,0.5); font-size:13px; padding:8px 16px; border-radius:20px;
  cursor:pointer; transition:all 0.2s;
}
.intro-skip:hover { color:#fff; border-color:rgba(255,255,255,0.6); }

/* Flip + destello al cargar */
@keyframes sphereFlipGlow {
  0%   { transform: rotateY(0deg)    scale(0.85); opacity: 0;
         filter: brightness(1) drop-shadow(0 0 0px rgba(124,58,237,0)); }
  30%  { transform: rotateY(180deg)  scale(1.05); opacity: 1;
         filter: brightness(2.2) drop-shadow(0 0 80px rgba(255,255,255,1))
                                 drop-shadow(0 0 40px rgba(124,58,237,1)); }
  55%  { transform: rotateY(360deg)  scale(1);
         filter: brightness(1.4) drop-shadow(0 0 40px rgba(124,58,237,0.7)); }
  100% { transform: rotateY(360deg)  scale(1);
         filter: brightness(1) drop-shadow(0 0 0px rgba(124,58,237,0)); }
}
.hero-sphere-img {
  animation: sphereFlipGlow 1.8s cubic-bezier(0.34,1.56,0.64,1) 0.4s both;
  transform-style: preserve-3d;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;        /* más agresivo que hidden en mobile */
  width: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  overflow-x: hidden;
  color: #373435;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ─── TOKENS ─── */
:root {
  --purple:   #7c3aed;
  --blue:     #2563eb;
  --indigo:   #6366f1;
  --green:    #00e185;
  --dark:     #272b3a;
  --text:     #373435;
  --muted:    #848688;
  --gray:     #4b4b4d;
  --lavender: #e8e5ff;
  --shadow-card: 0 0 22.5px rgba(37, 99, 235, .2);
  --radius-xl: 38px;
  --max: 1440px;
  --px: 127px;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 96px;
  background: #fff;
  border-bottom: 1px solid #d2d3d5;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { width: 300px; height: auto; }
.header-right { display: flex; align-items: center; gap: 14px; }

.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: #fff; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.flag-label { font-size: 16px; font-weight: 600; color: var(--gray); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f5ff 0%, #ece8ff 50%, #f0eeff 100%);
}

/* Fondo ola (flipped verticalmente como en Figma) */
.hero-bg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleY(-1);
  z-index: 0;
  pointer-events: none;
}

/* Esfera IA:
   Figma: left=678, top(visual)=-206, w=1570, h=1047 en canvas de 1920px
   Escalado a 1440px viewport → left≈35%, top≈-10%, width≈82% */
.hero-sphere-img {
  position: absolute;
  left: 55%;
  top: 2%;
  width: 35%;
  z-index: 0;
  pointer-events: none;
}

/* Texto + CTA */
.hero-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--px) 0;
}

.hero-left { width: 560px; padding-top: 16px; }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 53px;
  line-height: 64px;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--purple); }

.hero-subtitle {
  font-size: 30px;
  color: #747474;
  line-height: 1.4;
  margin-bottom: 48px;
}
.hero-cta { display: flex; align-items: center; gap: 20px; margin-bottom: 52px; }

/* Botones */
.btn-gradient {
  background: linear-gradient(-12.68deg, var(--blue) 14.6%, var(--purple) 85.4%);
  color: #fefefe;
  font-size: 26px;
  font-weight: 700;
  height: 84px;
  padding: 0 44px;
  border-radius: 188px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: opacity .2s;
  text-decoration: none;
}
.btn-gradient:hover { opacity: .9; }

.btn-meta {
  background: linear-gradient(-18.92deg, #3867ae 14.4%, #3983ae 85.6%);
  width: 197px;
  height: 84px;
  border-radius: 164px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer !important;
}
.btn-meta img { width: 112.5px; height: 45px; object-fit: contain; }

/* Feature cards */
.hero-cards { display: flex; flex-direction: column; gap: 14px; }

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  width: 368px;
}
.fc-icon {
  position: relative;
  width: 82px;
  height: 83px;
  flex-shrink: 0;
}
.fc-icon .ic-bg { width: 100%; height: 100%; object-fit: contain; }
.fc-icon .ic-fg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  object-fit: contain;
}
.fc-title { font-weight: 700; font-size: 16.9px; color: var(--text); margin-bottom: 4px; }
.fc-text  { font-size: 15.9px; color: var(--muted); line-height: 1.4; }

/* Bandera mobile (oculta en desktop) */
.hero-flag-mobile { display: none; }
/* bene02 mobile img (oculta en desktop) */
.bene-img-mobile { display: none; }
/* probalo bg mobile (oculta en desktop) */
.probalo-bg-mobile { display: none; }

/* ── DIAGRAMA ── */
.hero-diagram-outer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px) 80px;
  margin-top: -70px;
}

.hero-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1212 / 731;
}

.diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

/* Cards dentro del diagrama */
.hd-card {
  position: absolute;
  width: 35.97%;          /* 436/1212 */
  background: #fff;
  border-radius: 16px;
  padding: 2% 1.8%;
  display: flex;
  align-items: center;
  gap: 4%;
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.hd-card-center {
  width: 35.97%;
}
.mobile-diagram { display: none; }
.hd-card-grid   { display: none; }

/* ═══════════════════════════════════════════
   ¿TE PASA ESTO?
═══════════════════════════════════════════ */
.te-pasa { padding: 40px var(--px); background: #fff; }

.te-pasa-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 737px;
  background: var(--indigo);
  position: relative;
}
.tp-left { padding: 36px 30px 48px 160px; display: flex; flex-direction: column; }

.tp-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 36px;
  color: #fff;
  margin-bottom: 32px;
}
.pain-list { display: flex; flex-direction: column; margin-bottom: 52px; }
.pain-item { display: flex; align-items: center; gap: 13px; height: 41px; }
.pain-item img { width: 21px; height: 21px; flex-shrink: 0; }
.pain-item span {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  line-height: 1.41;
}
.btn-green {
  text-decoration: none;
  height: 84px;
  background: #67C15E;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 34px;   /* A */
  padding-right: 18px;
  gap: 34px;          /* B = misma distancia que A */
  width: fit-content;
}
.btn-green:hover { filter: brightness(1.08); }
.btn-green-text {
  /*flex: 1; text-align: center;*/
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.btn-green-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-right { overflow: hidden; position: relative; }
.tp-right img { width: 100%; height: 100%; object-fit: cover; }

/* Ola base */
.tp-wave {
  position: absolute;
  left: 0;
  z-index: 3;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-wave-desktop { top: 46%; width: 94%; }
.tp-wave-mobile  { display: none; top: 44%; width: 100%; }

/* ── Burbujas de chat ── */
.tp-chat {
  position: absolute;
  z-index: 4;
  width: 22%;
  aspect-ratio: 7801 / 2387;
  pointer-events: none;
  /* estado inicial */
  opacity: 0;
  transform: scale(0.4) translateY(24px);
  transform-origin: bottom left;
}
.tp-chat-bubble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.tp-chat-content {
  position: relative;
  z-index: 1;
  padding: 10% 8% 6%;
  display: flex;
  flex-direction: column;
}
.tp-chat p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #373435;
  line-height: 1.45;
  margin-bottom: 6px;
}
.tp-chat-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #96989A;
}
.tp-chat-1 { left: 7.8%;  top: 70%; }
.tp-chat-2 { left: 37.8%; top: 78%; }
.tp-chat-3 { left: 65%;   top: 82%; }

@keyframes chatBounce {
  0%   { opacity: 0; transform: scale(0.4) translateY(24px); }
  55%  { opacity: 1; transform: scale(1.08) translateY(-8px); }
  75%  { transform: scale(0.96) translateY(4px); }
  90%  { transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.tp-chat.visible {
  animation: chatBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ═══════════════════════════════════════════
   NO ES UN BOT
═══════════════════════════════════════════ */
.no-bot {
  background: linear-gradient(180deg, #fff 0%, #e8e5ff 49.68%, #fff 100%);
  padding: 55px var(--px) 100px;
}
.no-bot-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 38px;
  text-align: center;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 2.3;
  margin-bottom: 40px;
}
.no-bot-cards {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 21px;
}

.nb-main {
  background: linear-gradient(76.34deg, var(--blue) 5.97%, var(--purple) 99.28%);
  border-radius: 22px;
  padding: 43px 65px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nb-main p {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  text-align: center;
  line-height: 1.4;
}
.nb-card {
  background: #f6f5ff;
  border-radius: 22px;
  padding: 43px 55px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nb-card p {
  font-weight: 600;
  font-size: 18px;
  color: var(--gray);
  text-align: center;
  line-height: 1.25;
}
.nb-dot {
  position: absolute;
  left: -10.5px;      /* mitad del círculo (21px/2) dentro de la card */
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   CÓMO FUNCIONA
═══════════════════════════════════════════ */
.como-funciona { background: var(--dark); padding: 60px 0; }
.como-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}
.como-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.como-step { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.step-num {
  width: 52px; height: 52px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 27px;
  font-weight: 500;
  color: #fff;
}
.num-1 { background: var(--green); }
.num-2 { background: var(--blue); }
.num-3 { background: var(--purple); }

.step-label {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.25;
}
.como-img { border-radius: 24px; overflow: hidden; }
.como-img img { width: 100%; }

/* ═══════════════════════════════════════════
   BENEFICIOS
═══════════════════════════════════════════ */
.beneficios {
  position: relative;
  padding: 80px var(--px);
  overflow: hidden;
  min-height: 880px;
}
.bene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bene-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 43.9% 43.9%;  /* 632/1440 por card, ~10% de gap */
  justify-content: space-between;
}
.bene-card {
  background: #f6f5ff;
  border-radius: 40px;
  padding: 48px 54px;
  box-shadow: var(--shadow-card);
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

/* Altura fija igual en ambas → título y lista alineados verticalmente */
.bene-visual {
  height: 300px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  overflow: visible;
}
.bene-visual-1 { align-items: flex-start; padding-top: 8px; }
.bene-visual-1 img {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 11.25px rgba(37, 99, 235, 0.2));
}

.bene-visual-2 { align-items: center; }
.bene-visual-2 img {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 11.25px rgba(37, 99, 235, 0.2));
}

.bene-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 38px;
  color: var(--gray);
  margin-bottom: 20px;
}
.bene-list  { display: flex; flex-direction: column; }
.bene-item  { display: flex; align-items: center; gap: 10px; height: 36px; }
.check-icon { width: 14px; height: 10px; flex-shrink: 0; display: block; }
.bene-item span { font-weight: 500; font-size: 20px; color: #000; line-height: 1.79; }

/* ─── Carousel mobile como-funciona (oculto en desktop) ─── */
.como-carousel { display: none; }

@media (max-width: 768px) {
  .como-inner   { display: none; }
  .como-carousel {
    display: block;
    padding: 40px 0 32px;
    overflow: hidden;
  }

  .como-carousel-track {
    display: flex;
    gap: 16px;
    padding: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
  }
  .como-carousel-track:active { cursor: grabbing; }

  .como-slide {
    flex: 0 0 76%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Elemento decorativo: simula el slide siguiente entrando por la derecha */
  .como-peek-right {
    position: absolute;
    right: -12px;
    top: 80px;            /* alineado con las imágenes de los slides */
    bottom: 52px;
    width: 52px;
    background: rgba(255,255,255,0.10);
    border-radius: 16px 0 0 16px;
    pointer-events: none;
    /* Degradé: más opaco a la izquierda (borde del slide), transparente a la derecha */
    background: linear-gradient(to right,
      rgba(200,205,230,0.25) 0%,
      rgba(200,205,230,0.08) 60%,
      transparent 100%
    );
    border-left: 1px solid rgba(255,255,255,0.12);
  }

  .como-slide-badge {
    width: 36px; height: 36px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 18px; font-weight: 500; color: #fff;
  }

  .como-slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px; font-weight: 500;
    color: #fff; text-align: center;
    line-height: 1.3;
    padding: 25px 0 35px 0;
  }

  /* Carta del slide */
  .como-slide-card {
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .cf-dark  { background: #1e2235; }
  .cf-light { background: #fff; }

  /* Slide 1 – chat */
  .cf-chat { flex: 1; }
  .cf-msg-row { display: flex; gap: 12px; align-items: flex-start; }
  .cf-avatar {
    width: 48px; height: 48px; border-radius: 24px; flex-shrink: 0;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
  }
  .cf-bubble {
    background: #f3f4f6;
    border-radius: 0 14px 14px 14px;
    padding: 12px 14px;
    font-size: 14px; color: #373435; line-height: 1.5;
  }
  .cf-input-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: #f3f4f6; border-radius: 40px;
    padding: 12px 16px;
    font-size: 14px; color: #9ca3af;
    margin-top: 8px;
  }
  .cf-send-btn {
    width: 36px; height: 36px; border-radius: 18px;
    background: var(--purple);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  /* Slide 2 – bot response */
  .cf-bot-row { display: flex; gap: 12px; align-items: flex-start; }
  .cf-bot-avatar {
    width: 48px; height: 48px; border-radius: 24px; flex-shrink: 0;
    background: #1e2235;
    display: flex; align-items: center; justify-content: center;
  }
  .cf-bot-text { font-size: 14px; color: #373435; line-height: 1.5; }
  .cf-check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .cf-check-list li {
    font-size: 14px; color: #373435;
    padding-left: 24px; position: relative;
  }
  .cf-check-list li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--green); font-weight: 700;
    background: #dcfce7; border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; top: 1px;
  }
  .cf-tip {
    display: flex; gap: 10px; align-items: flex-start;
    background: #f0eeff; border-radius: 12px; padding: 12px;
  }
  .cf-tip p { font-size: 13px; color: #373435; line-height: 1.4; }

  /* Slide 3 – success */
  .cf-confetti { font-size: 13px; color: #a78bfa; text-align: center; letter-spacing: 4px; }
  .cf-check-circle {
    width: 56px; height: 56px; border-radius: 28px;
    background: #22c55e; color: #fff;
    font-size: 28px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
  }
  .cf-success-title { font-size: 20px; font-weight: 700; color: #373435; text-align: center; }
  .cf-success-sub   { font-size: 14px; color: #22c55e; text-align: center; font-weight: 600; }
  .cf-info-card {
    display: flex; gap: 12px; align-items: flex-start;
    background: #f9fafb; border-radius: 14px; padding: 14px;
  }
  .cf-info-icon { font-size: 24px; }
  .cf-info-line { font-size: 13px; color: #373435; }
  .cf-tag {
    display: inline-block; margin-top: 6px;
    background: #dcfce7; color: #16a34a;
    font-size: 11px; padding: 4px 10px; border-radius: 20px;
  }
  .cf-sale-card {
    display: flex; gap: 12px; align-items: center;
    background: #f9fafb; border-radius: 14px; padding: 14px;
  }
  .cf-sale-icon { font-size: 28px; }
  .cf-sale-label  { font-size: 13px; color: #6b7280; }
  .cf-sale-amount { font-size: 20px; font-weight: 700; color: #22c55e; }
  .cf-sale-plan   { font-size: 12px; color: #9ca3af; }

  /* Imagen del slide */
  .como-slide-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
  }

  /* Dots */
  .como-dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 20px;
  }
  .como-dot {
    width: 8px; height: 8px; border-radius: 4px;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: background .2s, width .2s;
  }
  .como-dot.active { background: #fff; width: 20px; }
}

/* ═══════════════════════════════════════════
   EMPRESAS
═══════════════════════════════════════════ */
.empresas { background: #fff; padding: 35px 0; overflow: hidden; }

.empresas-track-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.empresas-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoScroll 28s linear infinite;
}
.empresas-track:hover { animation-play-state: paused; }

.co-logo { width: 300px; padding: 0; flex-shrink: 0; }
.co-logo img {
  width: 100%;
  height: 188px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: opacity .2s, filter .2s;
}
.co-logo img:hover { filter: grayscale(0); opacity: 1; }

/* ═══════════════════════════════════════════
   PROBALO
═══════════════════════════════════════════ */
.probalo { background: #fff; padding: 40px var(--px) 60px; }

.probalo-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 631px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
}
.probalo-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.probalo-content { position: relative; z-index: 1; text-align: center; }

.probalo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 53px;
  color: var(--gray);
  line-height: 1.79;
  margin-bottom: 40px;
}
.probalo-features { display: flex; gap: 37px; justify-content: center; margin-top: 40px; }
.probalo-feat { display: flex; align-items: center; gap: 5px; }
.probalo-feat img { width: 21px; height: 21px; }
.probalo-feat span { font-weight: 500; font-size: 16px; color: var(--gray); line-height: 2.3; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  min-height: 375px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 375px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { width: 300px; height: auto; }
.footer-social { height: 36px; width: auto; }

/* ═══════════════════════════════════════════
   RESPONSIVE MOBILE ≤ 768px – HERO
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Bloqueo total de scroll horizontal mobile ── */
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* Cada sección no puede desbordar */
  section, header, footer, div {
    max-width: 100vw;
  }

  /* Elementos que se saben problemáticos */
  .hero-bg { display: none; }
  .hero, .hero-diagram-outer, .no-bot, .como-funciona,
  .beneficios, .empresas, .probalo, .footer-section {
    overflow-x: clip;
  }
  .te-pasa { overflow-x: visible; } /* permite que la ola salga 5px por fuera */
  .hero-diagram { aspect-ratio: unset; position: static; }
  .diagram-svg { display: none; }
  .como-peek-right { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; position: static !important; }
  #sphere-canvas { display: none !important; width: 0 !important; height: 0 !important; left: 0 !important; }

  /* Contener absolutamente todo dentro del viewport */
  *, *::before, *::after {
    max-width: 100%;
  }

  /* ── Header: solo logo ── */
  .header { height: 64px; }
  .header-inner { justify-content: center; padding: 0 20px; }
  .header-logo { width: 180px; }
  .header-right { display: none; }

  /* ── Bandera mobile: arriba del hero, centrada ── */
  .hero-flag-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 0 0;
    position: relative;
    z-index: 1;
  }

  /* ── Esfera: ocultar en mobile ── */
  .hero-sphere-img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* ── hd-cards: ocultar en mobile ── */
  .hd-card { display: none !important; }

  /* ── Hero texto ── */
  .hero-wrap { padding: 40px 24px 0; }
  .hero-left  { width: 100%; padding-top: 0; text-align: center; }

  .hero-title {
    font-size: 38px;
    line-height: 46px;
    margin-bottom: 20px;
  }
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
  }
  .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; }

  #sphere-canvas { display: none; }

  /* ── Diagrama mobile: columna centrada ── */
  .hero-diagram-outer {
    padding: 0 24px 60px;
    margin-top: 0;
  }
  .hero-diagram {
    aspect-ratio: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
  }

  /* Ocultar SVG desktop, mostrar línea mobile */
  .diagram-svg { display: none; }

  /* Ocultar cards desktop, mostrar mobile */
  .hd-card { display: none !important; }
  .mobile-diagram { display: block; width: 100%; }
  .mobile-diagram-img { width: 100%; height: auto; display: block; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE 1366px
═══════════════════════════════════════════ */
@media (max-width: 1366px) {

  .hero-title {
    font-size: 45px;
    line-height: 50px;
  }
  .hero-subtitle {
    font-size: 25px;
  }

  /* Esfera: más grande y centrada visualmente */
  .hero-sphere-img,
  #sphere-canvas {
    left: 50%;
    top: 0%;
    width: 44%;
  }

  /* Beneficios: centrar imágenes y reducir espacio con título */
  .bene-visual {
    height: 200px;
    justify-content: center;
    align-items: center;
  }
  .bene-visual-1 { align-items: center; padding-top: 0; }
  .bene-visual-2 { align-items: center; }

  /* No-bot: reducir padding para que entren los 4 en 1366px */
  .no-bot { padding: 55px 60px 80px; }
  .nb-main { padding: 43px 24px; }
  .nb-main p { font-size: 20px; }
  .nb-card { padding: 43px 20px; }
  .nb-card p { font-size: 16px; }

  /* Barra: bajarla para que no tape el botón */
  .tp-wave {
    top: 54%;
  }
  .tp-wave-mobile {
    width: calc(100% + 5px); /* sobresale 5px a la derecha */
  }

  /* Chats: tipografía reducida para que entre todo */
  .tp-chat p {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  .tp-chat-time {
    font-size: 9.5px;
  }
  .tp-chat-time svg {
    width: 13px;
    height: 8px;
  }
  .tp-left { padding-left: 90px;}
}

/* ═══════════════════════════════════════════
   RESPONSIVE MOBILE ≤ 768px – TE PASA ESTO
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  .te-pasa { padding: 20px 16px; }

  /* Apilar verticalmente */
  .te-pasa-card {
    grid-template-columns: 1fr;
    min-height: unset;
    border-radius: 24px;
    overflow: visible; /* permite que la ola salga 5px por fuera */
  }

  /* Panel texto: mantiene redondeo superior */
  .tp-left {
    padding: 32px 24px 36px !important;
    order: 1;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
  }
  .tp-title { font-size: 28px; margin-bottom: 20px; }
  .pain-item span { font-size: 15px; }
  .btn-green {
    font-weight: 500;
    height: 58px;
    width: 100%;
    padding-left: 34px;   /* A */
    padding-right: 10px;
    align-self: flex-start;
  }
  .btn-green-icon { width: 42px; height: 42px; }
  .btn-green-text {
  /*flex: 1; text-align: center;*/
  font-size: 18px;
}

  /* Panel imagen: abajo */
  .tp-right {
    order: 2;
    height: 320px;
    border-radius: 0 0 24px 24px;
  }

  /* Ola: swap desktop→mobile */
  .tp-wave-desktop { display: none; }
  .tp-wave-mobile  { display: block; }

  /* Chats: ocultar en mobile */
  .tp-chat { display: none !important; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE MOBILE ≤ 768px – BENEFICIOS
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  .beneficios { padding: 40px 20px; min-height: unset; overflow: hidden; }

  .bene-inner {
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
  }

  .bene-card { width: 100%; box-sizing: border-box; }

  .bene-card {
    padding: 32px 28px;
    min-height: unset;
    border-radius: 28px;
  }

  .bene-visual         { height: 180px; margin-bottom: 24px; }
  .bene-visual-2 img  { width: 75%; }
  .bene-title          { font-size: 32px; }
  .bene-item span { font-size: 17px; }

  /* bene02 mobile usa SVG dedicado */
  .bene-visual-2 img.bene-img-mobile { display: block; }
  .bene-visual-2 img:not(.bene-img-mobile) { display: none; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE MOBILE ≤ 768px – FOOTER
═══════════════════════════════════════════ */
@media (max-width: 768px) {

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

/* ═══════════════════════════════════════════
   RESPONSIVE MOBILE ≤ 768px – PROBALO
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  .probalo { padding: 20px 20px 40px; }
  .probalo-features { margin-left: 0; align-items: center; }

  .probalo-card {
    min-height: unset;
    padding: 48px 28px 40px;
    border-radius: 28px;
    align-items: center;
  }

  /* Swap backgrounds */
  .probalo-bg-desktop { display: none; }
  .probalo-bg-mobile  { display: block; }

  .probalo-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 32px;
    text-align: center;
  }

  .btn-gradient {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 20px;
    height: 64px;
  }

  .probalo-features {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    align-self: center;
  }

  .probalo-feat span {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--gray);
  }

  .probalo-feat img { width: 22px; height: 22px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE MOBILE ≤ 768px – NO ES UN BOT
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  .no-bot { padding: 40px 20px 60px; }

  .no-bot-title { font-size: 35px; line-height: 1.2; }

  /* Cards apiladas verticalmente */
  .no-bot-cards {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  .nb-main {
    flex: unset;
    width: 100%;
    padding: 32px 24px;
    border-radius: 18px;
  }
  .nb-main p { font-size: 18px; }

  .nb-card {
    flex: unset;
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 18px;
    margin-left: 0 !important;
  }
  .nb-card p { font-size: 16px; }

  /* Dot: arriba centrado, mitad adentro */
  .nb-dot {
    left: 50%;
    top: -10.5px;
    transform: translateX(-50%);
  }

  /* Estado inicial: ocultos — JS maneja el parallax bidireccional */
  .nb-main, .nb-card {
    opacity: 0;
    transform: translateX(-40px);
    transition: none; /* JS controla directamente, sin CSS lag */
    will-change: transform, opacity;
  }

  /* Logos empresas: más chicos y más rápidos en mobile */
  .co-logo { width: 190px; padding: 0; margin: 0px -20px; }
  .co-logo img { height: 120px; }
  .empresas-track { animation-duration: 8s; }
}

/* ═══════════════════════════════════════════
   VIDEO LANDING
═══════════════════════════════════════════ */
.video-landing {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: #fff;
  perspective: 1200px;
}

.video-wrapper {
  width: 800px;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid #E6E7E8;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(99, 102, 241, 0.15);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  will-change: transform;
}

/* Thumbnail */
.video-thumb {
  position: relative;
  width: 100%;
  cursor: pointer;
}
.video-thumb-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Botón play centrado */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.video-play-btn img {
  width: 80px;
  height: 80px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(99, 102, 241,0.15));
}

/* iFrame */
.video-iframe-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .video-landing { padding: 48px 16px; }
  .video-thumb-img { height: 210px; }
  .video-play-btn img { width: 60px; height: 60px; }
}

/* ═══════════════════════════════════════════
   CTA WHATSAPP
═══════════════════════════════════════════ */
.cta-whatsapp {
  background: #fff;
  padding: 0 var(--px) 60px;
}

.cta-wa-card {
  background: #00E185;
  border-radius: 24px;
  max-width: var(--max);
  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: #ffffff;
  line-height: 1.3;
}

/* Botón invertido: fondo blanco, texto y icono verde */
.btn-white {
  text-decoration: none;
  height: 84px;
  background: #ffffff;
  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;
}

@media (max-width: 768px) {
  .cta-whatsapp { padding: 0 16px 48px; }
  .cta-wa-card {
    height: auto;
    padding: 40px 28px;
  }
  .cta-wa-inner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
  }
  .cta-wa-title { font-size: 26px; }
  .btn-white {
    font-size: 18px;
    height: 58px;
    padding-left: 34px;   /* A */
    padding-right: 10px;
    width: auto;
    align-self: center;
    font-weight: 500;
    align-self: center;
  }
  .btn-white-icon { width: 46px; height: 46px; }
}
