/* ==========================================================
   Tokens — tomados del Figma "Capta · Website Design"
   ========================================================== */
:root {
  /* Fuentes */
  --font-primary: "Manrope", system-ui, sans-serif;     /* Headings */
  --font-secondary: "IBM Plex Sans", system-ui, sans-serif; /* Body */

  /* Colores */
  --hero-orange: #f49c2b;      /* Tarjeta del hero (tono más alto) */
  --primary-500: #e57411;
  --white: #ffffff;
  --black-10: rgba(0, 0, 0, 0.1);
  --grey-200: #e5e5e5;
  --grey-400: #a3a3a3;
  --grey-600: #525252;
  --grey-800: #262626;
  --grey-950: #0a0a0a;

  /* Tipografía */
  --h1-size: 72px;   --h1-lh: 80px;
  --h2-size: 64px;   --h2-lh: 72px;
  --b2-size: 18px;   --b2-lh: 26px;
  --b3-size: 16px;   --b3-lh: 24px;
  --b4-size: 14px;   --b4-lh: 20px;

  /* Espaciado */
  --sp-4: 4px;  --sp-6: 6px;  --sp-8: 8px;  --sp-10: 10px;
  --sp-12: 12px; --sp-14: 14px; --sp-16: 16px; --sp-20: 20px;
  --sp-24: 24px; --sp-40: 40px;

  /* Radios */
  --r-8: 8px;
  --r-16: 16px;
  --r-card: 32px;

  /* Sombras (tarjetas flotantes del hero en Figma) */
  --shadow-card: 0 0 7.132px 0 rgba(20, 21, 26, 0.08);
}

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

html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--white);
  color: var(--grey-950);
  font-family: var(--font-secondary);
  font-size: var(--b3-size);
  line-height: var(--b3-lh);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: inherit; text-decoration: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  padding: var(--sp-16);
}

.hero__card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--sp-24) var(--sp-24) 0;
  /* Naranja sólido + un toque blanco, casi imperceptible, en las esquinas superiores.
     Abajo queda el #F49C2B puro. */
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 100%),
    radial-gradient(60% 50% at 100% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 100%),
    var(--hero-orange);
}

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding: var(--sp-16) var(--sp-16) var(--sp-16) var(--sp-24);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-16);
  box-shadow: var(--shadow-card);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-shrink: 0;
}
.brand__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-8);
}
.nav__link {
  padding: var(--sp-8) var(--sp-12);
  border-radius: var(--r-8);
  font-size: var(--b4-size);
  line-height: var(--b4-lh);
  color: var(--grey-800);
  transition: background-color .2s ease;
}
.nav__link:hover { background: var(--black-10); }

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--black-10);
  border-radius: var(--r-8);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.header__toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--grey-950);
  transition: transform .2s ease;
}
.header__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-14);
  border: 1px solid transparent;
  border-radius: var(--r-8);
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: var(--b3-size);
  line-height: var(--b3-lh);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--grey-950); outline-offset: 2px; }

.btn--sm { padding: var(--sp-8) var(--sp-12); }
.btn--sm.btn--icon { padding: var(--sp-8) var(--sp-12) var(--sp-8) var(--sp-16); }
.btn--secondary { padding: var(--sp-12) var(--sp-12) var(--sp-12) var(--sp-20); }

.btn--brand { background: var(--primary-500); color: var(--white); }
.btn--brand:hover { background: #d0660c; }

.btn--ghost { border-color: var(--black-10); color: var(--grey-950); }
.btn--ghost:hover { background: var(--black-10); }

/* Sobre la tarjeta naranja el botón principal va oscuro para tener contraste */
.btn--dark { background: var(--grey-950); color: var(--white); }
.btn--dark:hover { background: var(--grey-800); box-shadow: 0 8px 24px rgba(10, 10, 10, .18); }

.btn--light { background: var(--white); border-color: var(--grey-400); color: var(--grey-600); }
.btn--light:hover { box-shadow: 0 8px 24px rgba(10, 10, 10, .1); }

/* ---------- Content ---------- */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-10);
  background: var(--white);
  border: 1px solid var(--black-10);
  border-radius: var(--r-16);
  font-weight: 500;
  font-size: var(--b4-size);
  line-height: var(--b4-lh);
  color: var(--primary-500);
}
.chip__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.chip__icon img { position: absolute; }
.chip__s1 { top: 25%;    left: 22.01%; }
.chip__s2 { top: 66.67%; left: 58.33%; }
.chip__s3 { top: 12.5%;  left: 12.5%; }

.hero__title {
  margin: var(--sp-20) 0 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, var(--h2-size));
  line-height: 1.125; /* H2: 72 / 64 */
  color: var(--grey-950);
  text-wrap: balance;
}
.hero__title strong { font-weight: inherit; }
.hero__title-main { color: var(--white); }
.hero__title-dark { color: var(--grey-950); }
.hero__title-sub { display: block; }

.hero__text {
  max-width: 720px;
  margin: var(--sp-12) 0 0;
  font-size: var(--b2-size);
  line-height: var(--b2-lh);
  color: var(--white);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: var(--sp-40);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-12);
}

/* ---------- Showcase: celular (izq.) + dashboard (der.) ---------- */
/* El showcase tiene una altura fija más baja que su contenido:
   la tarjeta recorta por abajo el celular y el dash.
   --chat-h = parte visible del chat (en px del celular) para que los mensajes
   nuevos siempre aparezcan dentro de la zona visible. */
.hero__showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  height: 360px;
  margin: 64px auto 0;
}
.hero__phone {
  --chat-h: 345px;
  position: absolute;
  z-index: 2;
  left: 72px;   /* espacio para las burbujas que sobresalen */
  top: 0;       /* al mismo nivel que la parte de arriba del dash */
  transition: opacity 0.6s ease 0.45s, translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

/* El marco blanco y el radio vienen del "Dashboard Image" del hero en Figma.
   Arranca después del celular y se sale por la derecha (la tarjeta lo recorta). */
.hero__visual {
  position: relative;
  z-index: 1;
  width: 825px;   /* 75% del tamaño original (1100px) */
  margin: 0 0 0 420px;
  border: 9px solid var(--white);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 21, 26, 0.18);
  transform-origin: top left;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Intro (script.js): el dash arranca centrado y sin celular;
   al pasar a .is-split se recorre a su lugar y aparece el celular. */
.hero__showcase[data-intro]:not(.is-split) .hero__phone {
  opacity: 0;
  translate: -48px 0;
}
/* Al regresar al inicio, el celular se oculta sin esperar */
.hero__showcase[data-intro]:not(.is-split) .hero__phone {
  transition-delay: 0s;
  transition-duration: 0.4s;
}

/* Hero original: el dash queda centrado ocupando 3/4 del ancho de la tarjeta
   (1/8 de espacio libre a cada lado). Solo en escritorio y laptop. */
@media (min-width: 901px) {
  .hero--centered .hero__showcase { max-width: none; }
  .hero--centered .hero__visual { width: 75%; margin: 0 auto; }
}

/* Modo "chat" (hero original): dash fijo, sin celular; la conversación son solo burbujas */
.hero__showcase[data-mode] .hero__phone { display: none; }

/* ==========================================================
   Secciones
   ========================================================== */
.section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--white);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1200px) {
  .hero__showcase { height: 330px; }
  .hero__phone { --chat-h: 400px; transform: scale(0.8); transform-origin: top left; }
  .hero__visual { margin-left: 350px; }
}

/* Tablet y móvil: mismo patrón. El celular queda partido a la mitad
   contra el borde izquierdo de la tarjeta y el dash se sale por la derecha. */
@media (max-width: 900px) {
  .hero__showcase {
    max-width: none;
    width: auto;
    height: 400px;
    margin: 56px 0 0 calc(-1 * var(--sp-24));
  }
  .hero__phone { --chat-h: 390px; left: -125px; top: 0; transform: none; }
  .hero__visual { width: 510px; margin-left: 150px; }
}

@media (max-width: 1024px) {
  .header { flex-wrap: wrap; padding: var(--sp-12) var(--sp-12) var(--sp-12) var(--sp-16); }
  .header__toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-8) 0 0;
    border-top: 1px solid var(--black-10);
  }
  .nav.is-open { display: flex; }
  .nav__link { font-size: var(--b3-size); line-height: var(--b3-lh); padding: var(--sp-12); }
}

@media (max-width: 600px) {
  .hero { padding: var(--sp-8); gap: var(--sp-8); }
  .hero__card {
    padding: var(--sp-12);
    border-radius: 24px;
  }
  .hero__content { padding: var(--sp-20) var(--sp-4) 0; }
  .hero__showcase { height: 370px; margin: var(--sp-40) 0 0 calc(-1 * var(--sp-12)); }
  .hero__phone { --chat-h: 360px; left: -110px; }
  .hero__visual {
    width: 420px;
    margin-left: 128px;
    border-width: 3px;
    border-radius: 9px;
    box-shadow: 0 12px 32px rgba(20, 21, 26, 0.16);
  }
  .hero__text { font-size: var(--b3-size); line-height: var(--b3-lh); }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Hero original en tablet y móvil: el dash va entre el texto y los botones,
   completo y centrado. */
@media (max-width: 900px) {
  .hero--centered .hero__card { align-items: center; padding-top: var(--sp-24); padding-bottom: var(--sp-24); } /* mismo espacio arriba y abajo */
  .hero--centered .hero__content { display: contents; }
  .hero--centered .hero__content > * { order: 0; }
  .hero--centered .hero__actions { order: 2; margin-top: var(--sp-24); }
  .hero--centered .hero__showcase {
    order: 1;
    width: 100%;
    max-width: 640px;
    height: auto;
    min-height: 0;
    margin: var(--sp-24) auto 0;
  }
  .hero--centered .hero__visual { width: 100%; margin: 0; }
}

/* ==========================================================
   Producto: hero solo con la tarjeta naranja (contenido por definir)
   ========================================================== */
/* La tarjeta llena el alto de la pantalla debajo del menú */
#contact .hero__card { flex: 1; min-height: 360px; }

/* Contenido alineado a la izquierda en escritorio, centrado en móvil */
.hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Logo + nombre en blanco — medidas del Figma (logo 56px con ícono de 48px, separación 10px) */
.hero-brand { display: flex; align-items: center; gap: 10px; }
.hero-brand__mark { display: grid; place-items: center; width: 56px; height: 56px; }
.hero-brand__mark img { width: 48px; height: 48px; }
/* Logotipo del Figma (90.86 × 30) */
.hero-brand__word { display: block; width: 90.859px; height: 30px; }

@media (max-width: 900px) {
  .hero__inner { align-items: center; text-align: center; padding: 40px 20px; }
}

/* ==========================================================
   Producto: hero con texto (izq.) + muro de tarjetas blancas (der.)
   ========================================================== */
.nav__link.is-active { color: var(--primary-500); }

#contact .hero__card {
  padding: 0;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, var(--hero-orange) 0%, var(--primary-500) 100%);
}
.hero__inner { position: relative; z-index: 2; flex: 1; justify-content: center; padding: 72px 64px; pointer-events: none; }
.hero__copy { max-width: 580px; pointer-events: auto; }

.p-title {
  margin: 32px 0 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--grey-950);
}
.p-title__light { color: var(--white); }
.p-text { margin: 24px 0 0; max-width: 560px; font-size: var(--b2-size); line-height: 1.5; color: var(--white); }

.p-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.p-btn { padding: 14px 20px; border-radius: 12px; font-size: 17px; }
.p-btn--white { background: var(--white); color: var(--grey-950); }
.p-btn--white:hover { box-shadow: 0 8px 24px rgba(10, 10, 10, .12); }


/* ---------- Muro inclinado ---------- */
.p-wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.p-wall__grid {
  position: absolute;
  /* Gira desde la esquina inferior: el borde izquierdo nunca invade el texto */
  top: -90%;
  left: 51%;
  height: 195%;
  display: flex;
  gap: 24px;
  transform: rotate(12deg) scale(.8);
  transform-origin: bottom left;
}
.p-wall__col { width: 270px; flex-shrink: 0; overflow: hidden; }
.p-wall__col:nth-child(2) { margin-top: -90px; }
.p-wall__col:nth-child(3) { margin-top: 60px; }
.p-wall__track { display: flex; flex-direction: column; gap: 20px; animation: wall-up 35s linear infinite; }
.p-wall__col:nth-child(2) .p-wall__track { animation-direction: reverse; animation-duration: 40s; }
.p-wall__col:nth-child(3) .p-wall__track { animation-duration: 45s; }
/* La pista contiene cuatro copias: subir una copia (¼ + ¼ de separación) deja todo igual
   y la columna siempre está llena, también abajo */
@keyframes wall-up { to { transform: translateY(calc(-25% - 5px)); } }
@media (prefers-reduced-motion: reduce) { .p-wall__track { animation: none; } }

/* ---------- Tarjeta (Figma: Design System › Cards › Card) ----------
   Marco crema de 2px + cuerpo blanco; el pie opcional queda sobre el crema. */
.pc {
  display: flex;
  flex-direction: column;
  padding: 2px;
  background: #fef7ec;
  border: 1px solid #fceac9;
  border-radius: 12px;
  box-shadow: 0 18px 40px -14px rgba(120, 50, 0, .35);
  font-family: var(--font-secondary);
  color: var(--grey-950);
}
.pc__body { display: flex; flex-direction: column; gap: 20px; padding: 12px; background: var(--white); border-radius: 10px; }
.pc__head { display: flex; align-items: center; gap: 8px; }
.pc__icon { display: grid; place-items: center; padding: 6px; background: rgba(254, 247, 236, .5); border: 1px solid #fceac9; border-radius: 6px; flex-shrink: 0; }
.pc__icon i {
  display: block; width: 20px; height: 20px;
  /* Íconos del Figma (Lucide) teñidos con el naranja de la marca */
  background: var(--primary-500);
  -webkit-mask: var(--ic) center / contain no-repeat;
          mask: var(--ic) center / contain no-repeat;
}
.pc__label { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: #404040; }
.pc__foot { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 12px; line-height: 16px; color: var(--grey-600); }
.pc__foot > span { flex: 1; display: flex; align-items: center; gap: 6px; }
.pc__foot b { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--grey-800); white-space: nowrap; }

.pc-ia { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 6px; background: var(--grey-950); color: var(--white); font: 700 11px/1 var(--font-primary); }
.pc-ia img { width: 11px; height: 11px; }

/* Valor + badge de tendencia (Heading H6 Semibold 24/32 y Caption C1 12/16) */
.pc-value { display: flex; align-items: baseline; gap: 8px; }
.pc-value strong { font: 600 24px/32px var(--font-primary); color: #000; white-space: nowrap; }
.pc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 64px; background: #f0fdf4; font-size: 12px; line-height: 16px; color: #16a34a; }
.pc-badge img { width: 12px; height: 12px; }

.pc-title { margin: 0; font: 600 18px/24px var(--font-primary); }
.pc-muted { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--grey-600); }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pc-chat { display: grid; gap: 8px; }
.pc-bubble { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.pc-bubble--in { background: #f5f5f5; border-top-left-radius: 4px; margin-right: 24px; }
.pc-bubble--out { margin-left: 24px; background: var(--primary-500); color: var(--white); border-top-right-radius: 4px; }

.pc-person { display: flex; align-items: center; gap: 10px; }
.pc-person div { flex: 1; min-width: 0; }
.pc-person strong { display: block; font: 600 16px/24px var(--font-primary); }
.pc-person small { font-size: 12px; line-height: 16px; color: var(--grey-600); }
.pc-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fef7ec; border: 1px solid #fceac9; color: var(--primary-500); font: 600 14px/1 var(--font-primary); flex-shrink: 0; }
.pc-pill { padding: 2px 8px; border-radius: 64px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.pc-pill--ok { background: #f0fdf4; color: #16a34a; }
.pc-pill--no { background: #fef2f2; color: #dc2626; }

/* Logos de integraciones: el SVG trae margen interno, se recorta en un cuadro */
.pc-logo { position: relative; width: 20px; height: 20px; flex-shrink: 0; overflow: hidden; border-radius: 6px; }
.pc-logo img { position: absolute; width: 164%; height: 164%; left: -32%; top: -32%; max-width: none; }
.pc__foot .pc-logo { width: 16px; height: 16px; border-radius: 4px; }
.pc-logo--full { border-radius: 0; overflow: visible; }
.pc-logo--full img { position: static; width: 100%; height: 100%; }

.pc-chan { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pc-chan li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--grey-200); border-radius: 8px; font-size: 14px; line-height: 20px; }

.pc-bars { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pc-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 12px; line-height: 16px; color: var(--grey-600); }
.pc-bars b { font-weight: 500; color: var(--grey-800); }
.pc-bars i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary-500) var(--w), #fef7ec var(--w)); }
.pc-bars li:nth-child(2) i { background: linear-gradient(90deg, #f0a35e var(--w), #fef7ec var(--w)); }
.pc-bars li:nth-child(3) i { background: linear-gradient(90deg, #f6c79a var(--w), #fef7ec var(--w)); }

.pc-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.pc-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--grey-200); border-radius: 8px; font-size: 14px; line-height: 20px; }
.pc-steps li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fef7ec; color: var(--primary-500); font: 600 12px/1 var(--font-primary); }

@media (max-width: 1200px) {
  .hero__inner { padding: 64px 40px; }
  .hero__copy { max-width: 500px; }
  .hero__copy { max-width: 480px; }
}

/* Móvil / tableta: texto centrado arriba y el muro debajo */
@media (max-width: 900px) {
  .hero__inner { flex: none; padding: 40px 20px 32px; }
  .hero__copy { max-width: 620px; display: flex; flex-direction: column; align-items: center; }
  .p-text { font-size: 16px; }
  .p-actions { justify-content: center; }
  .p-wall {
    position: relative;
    inset: auto;
    width: 100%;
    height: 380px;
  }
  .p-wall__grid { top: -110%; left: 6%; height: 220%; gap: 16px; transform: rotate(12deg) scale(.74); }
  .p-wall__col { width: 230px; }
  .p-wall__track { gap: 16px; }
  @keyframes wall-up { to { transform: translateY(calc(-25% - 4px)); } }
  .p-title { margin-top: 24px; }
}
@media (max-width: 600px) {
  .p-wall { height: 320px; }
  .p-wall__grid { left: -12%; transform: rotate(12deg) scale(.66); }
}

/* Móvil: los botones van debajo del muro de tarjetas.
   .hero__inner y .hero__copy se "disuelven" para poder reordenar sus hijos dentro de la tarjeta. */
@media (max-width: 900px) {
  #contact .hero__card { padding: 40px 20px 32px; align-items: center; text-align: center; }
  .hero__inner, .hero__copy { display: contents; }
  .p-wall { order: 1; width: calc(100% + 40px); margin: 32px -20px 0; flex-shrink: 0; text-align: left; }
  .p-actions { order: 2; margin-top: 32px; }
}

/* Marca más chica: Figma Brand Text · 40px (ícono de 34px en cuadro de 40, separación 7px, logotipo 60.57 × 20) */
.hero-brand { gap: 7px; }
.hero-brand__mark { width: 40px; height: 40px; }
.hero-brand__mark img { width: 34px; height: 34px; }
.hero-brand__word { width: 60.573px; height: 20px; }

/* Título un escalón abajo en la escala del Figma: H3 56/64 en web, H5 32/40 en móvil */
.p-title { font-size: 56px; line-height: 64px; }
@media (max-width: 1200px) { .p-title { font-size: 40px; line-height: 48px; } }  /* H4 */
@media (max-width: 900px) { .p-title { font-size: 32px; line-height: 40px; } }

/* Móvil: menú 25% más chico (logo, nombre, botón de menú, márgenes y enlaces) */
@media (max-width: 600px) {
  .header { padding: 9px 9px 9px 12px; gap: 12px; border-radius: 12px; }
  .brand { gap: 6px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__mark img { width: 30px; height: 30px; }
  .brand__word { width: 54.5px; height: 18px; }
  .header__toggle { width: 33px; height: 33px; gap: 4.5px; border-radius: 6px; }
  .header__toggle span { width: 13.5px; }
  .header__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }
  .nav { padding-top: 6px; }
  .nav__link { font-size: 12px; line-height: 18px; padding: 9px; }
}

/* Móvil y tableta: texto del hero alineado a la izquierda */
@media (max-width: 900px) {
  #contact .hero__card, .hero__inner, .hero__copy { align-items: flex-start; text-align: left; }
  .p-actions { justify-content: flex-start; }
}

/* Móvil: botones casi del ancho de la tarjeta, con el texto centrado */
@media (max-width: 900px) {
  .p-actions { align-self: stretch; flex-direction: column; }
  .p-btn { width: 100%; justify-content: center; }
}

/* Móvil: el muro de tarjetas se desvanece arriba y abajo hacia el naranja */
@media (max-width: 900px) {
  .p-wall {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
}

/* ==========================================================
   Sección "Así funciona": la animación del celular en su propia tarjeta
   ========================================================== */
.p-demo { min-height: 0; padding-top: 0; }
/* Sin fondo naranja: la tarjeta queda sobre el fondo de la página y los colores se invierten */
.p-demo .hero__card { background: transparent; }
.p-demo .hero__title-main { color: var(--grey-950); }
.p-demo .hero__title-dark { color: var(--primary-500); }
.p-demo .hero__text { color: var(--grey-600); }
.p-demo .chip { border-color: #fceac9; }
/* Título del mismo tamaño que el del hero (H3 56/64 · H4 40/48 · H5 32/40) */
.p-demo .hero__title { font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: -0.035em; }
@media (max-width: 1200px) { .p-demo .hero__title { font-size: 40px; line-height: 48px; } }
@media (max-width: 900px) { .p-demo .hero__title { font-size: 32px; line-height: 40px; } }
/* Sin el naranja, el recorte inferior del celular y el dash se desvanece en lugar de cortarse en seco */
/* La máscara va en toda la tarjeta (no en el showcase) para no recortar las sombras de arriba y los lados */
.p-demo .hero__card {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent 100%);
}
/* Línea naranja ligera en el dash y en las tarjetas blancas (web y móvil) */
.p-demo .hero__visual { box-shadow: 0 0 0 1px #f9d28e, 0 24px 60px rgba(20, 21, 26, 0.18); }
.p-demo .appt { box-shadow: 0 0 0 1px #f9d28e, 0 24px 50px rgba(20, 21, 26, 0.2); }
.p-demo .capta-bubble--in { box-shadow: 0 0 0 1px #f9d28e, 0 7px 22px rgba(19, 23, 35, 0.2), 0 2px 6px rgba(19, 23, 35, 0.09); }

/* Móvil: lo que queda al frente del dash lleva una sombra un poco más fuerte */
@media (max-width: 900px) {
  .p-demo .appt { box-shadow: 0 0 0 1px #f9d28e, 0 28px 60px rgba(20, 21, 26, 0.32); }
  .p-demo .capta-bubble { box-shadow: 0 12px 30px rgba(19, 23, 35, 0.32), 0 3px 8px rgba(19, 23, 35, 0.14); }
  .p-demo .capta-bubble--in { box-shadow: 0 0 0 1px #f9d28e, 0 12px 30px rgba(19, 23, 35, 0.32), 0 3px 8px rgba(19, 23, 35, 0.14); }
  .p-demo .capta-phone { box-shadow: 0 32px 70px rgba(18, 22, 35, 0.4); }
}
/* Móvil: dash un poco más grande (antes 420px) */
@media (max-width: 600px) {
  .p-demo .hero__visual { width: 520px; margin-left: 120px; }
}

/* Etiqueta de la etapa actual de la animación (encima del celular) */
.p-stage {
  position: absolute;
  z-index: 5;
  top: -48px;
  left: 72px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--white);
  border: 1px solid #f9d28e;
  border-radius: 64px;
  box-shadow: 0 6px 18px rgba(229, 116, 17, 0.15);
  font: 600 14px/20px var(--font-primary);
  color: var(--primary-500);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.p-stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); box-shadow: 0 0 0 3px rgba(229, 116, 17, .18); }
.p-stage.is-on { opacity: 1; transform: none; }
@media (max-width: 900px) { .p-stage { left: 44px; top: -42px; font-size: 13px; } }
/* Móvil: más espacio arriba de la animación para que la etiqueta no toque el subtítulo */
@media (max-width: 600px) { .p-demo .hero__showcase { margin-top: 80px; } }

/* Burbujas naranjas: en lugar de "CAPTA" las firma la IA (pastilla negra con el logo) */
.capta-message-meta { opacity: 1; }
.capta-message-meta > span:last-child { opacity: .75; }
.capta-ai {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 4px;
  border-radius: 6px;
  background: var(--grey-950);
  color: var(--white);
  font: 700 10px/14px var(--font-primary);
  opacity: 1;
}
.capta-ai img { width: 11px; height: 11px; }
/* Etiqueta centrada sobre la animación, y la animación un poco más abajo para darle aire */
.p-demo .hero__showcase { margin-top: 112px; }
.p-stage { left: 50%; top: -60px; transform: translate(-50%, 6px); }
.p-stage.is-on { transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .p-demo .hero__showcase { margin-top: 96px; }
  .p-stage { left: 50%; top: -54px; }
}
@media (max-width: 600px) {
  /* el showcase en móvil arranca 12px a la izquierda de la tarjeta: se compensa para centrar */
  .p-stage { left: calc(50% + 6px); }
}

/* Burbujas del celular: la conversación recorta lo que se sale, así que se le da margen
   a los lados para que la sombra de las burbujas no se corte (el texto queda en el mismo lugar) */
@media (min-width: 901px) {
  .p-demo .capta-conversation { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 900px) {
  .p-demo .capta-conversation { left: calc(50% + 10px - 28px); width: calc(250px + 56px); padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 600px) {
  .p-demo .capta-conversation { width: calc(220px + 56px); }
}
/* phone.css (que carga después) baja la opacidad de la línea de hora; la pastilla IA va blanca sólida */
.p-demo .capta-message-meta { opacity: 1; }
.p-demo .capta-message-meta > :not(.capta-ai) { opacity: .75; }
.p-demo .capta-ai { opacity: 1; color: #fff; }
/* Etiqueta de etapa: fondo naranja y letras blancas */
.p-stage { background: var(--primary-500); border-color: var(--primary-500); color: var(--white); box-shadow: 0 8px 20px rgba(229, 116, 17, 0.3); }
.p-stage::before { background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }

/* Optimización de campañas: el evento enviado a Meta parpadea (sin el conteo de "Asistieron") */
@keyframes p-event-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 116, 17, 0); background-color: var(--white); }
  50% { box-shadow: 0 0 0 4px rgba(229, 116, 17, 0.3); background-color: #fef7ec; }
}
.p-demo .d-event.is-blink { animation: p-event-blink 0.9s ease-in-out 4; }
.p-demo .d-event[data-event="opt"] { display: none; }

/* Remarketing y reactivación: 2 tarjetas arriba y 2 abajo, con título y cantidad grandes.
   (El dash se diseña a 1440px y se escala, por eso los tamaños se ven grandes aquí.) */
.p-demo .d-rmk__body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; }
.p-demo .d-rmk__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon num" "tag tag";
  align-items: center;
  column-gap: 22px;
  row-gap: 6px;
  padding: 26px 28px;
}
.p-demo .d-rmk__icon { grid-area: icon; width: 76px; height: 76px; border-radius: 14px; }
.p-demo .d-rmk__icon img { width: 34px; height: 34px; }
.p-demo .d-rmk__label { grid-area: label; min-height: 0; margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; color: var(--grey-950); }
.p-demo .d-rmk__card .d-h4 { grid-area: num; margin: 0; font-size: 64px; line-height: 70px; }
.p-demo .d-rmk__sub { display: none; }
.p-demo .d-rmk__card .d-tag { grid-area: tag; justify-self: start; margin-top: 12px; font-size: 20px; line-height: 28px; padding: 6px 16px; }

/* La tarjeta del mensaje que se está enviando parpadea con su color */
@keyframes p-rmk-blink {
  0%, 100% { box-shadow: inset 0 3px 0 var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); background-color: var(--white); }
  50% { box-shadow: inset 0 3px 0 var(--c), 0 0 0 8px color-mix(in srgb, var(--c) 35%, transparent); background-color: var(--bg); }
}
.p-demo .d-rmk__card.is-blink { animation: p-rmk-blink 0.9s ease-in-out infinite; }
/* Móvil: el dash se sale por la derecha, así que las 4 tarjetas van en una columna para que se lean */
@media (max-width: 900px) {
  .p-demo .d-rmk__body { grid-template-columns: 1fr; gap: 14px; }
  .p-demo .d-rmk__card { padding: 18px 24px; grid-template-areas: "icon label" "icon num"; }
  .p-demo .d-rmk__card .d-tag { display: none; }
}
@media (max-width: 900px) {
  /* el título se parte en dos líneas para que quepa en la parte visible del dash */
  .p-demo .d-rmk__label { max-width: 270px; font-size: 24px; line-height: 30px; }
  .p-demo .d-rmk__card .d-h4 { font-size: 56px; line-height: 60px; }
  .p-demo .d-rmk__body { gap: 12px; padding: 18px; }
  .p-demo .d-rmk__card { padding: 14px 20px; column-gap: 18px; }
  .p-demo .d-rmk__icon { width: 64px; height: 64px; }
}

/* Espacio entre secciones más amplio y parejo (web 120px · móvil 80px) */
.p-demo { padding-top: 120px; padding-bottom: 40px; }
@media (max-width: 900px) {
  .p-demo { padding-top: 80px; padding-bottom: 24px; }
}
/* Móvil — Remarketing: tipografía igual al resto del dash y etiquetas de estado de vuelta */
@media (max-width: 900px) {
  .p-demo .d-rmk__card { grid-template-areas: "icon label" "icon num" "tag tag"; padding: 16px 20px; row-gap: 4px; }
  .p-demo .d-rmk__label { font-family: var(--font-secondary); font-weight: 500; font-size: 22px; line-height: 28px; color: #404040; max-width: 270px; }
  .p-demo .d-rmk__card .d-h4 { font-family: var(--font-primary); font-weight: 600; font-size: 40px; line-height: 48px; color: #000; }
  .p-demo .d-rmk__card .d-tag { display: inline-flex; margin-top: 8px; font-size: 18px; line-height: 24px; padding: 5px 14px; }
}

/* Optimización de campañas: tarjeta del evento a Meta que aparece afuera del dash (donde va la tarjeta de la cita) */
.p-float-event {
  position: absolute;
  z-index: 6;
  left: 40px;
  top: 40px;
  width: 360px;
  margin: 0;
  transform-origin: top left;
  border-color: #f9d28e;
  box-shadow: 0 0 0 1px #f9d28e, 0 24px 50px rgba(20, 21, 26, 0.2);
}
.p-float-event .d-event__title { font-size: 16px; line-height: 22px; }
.p-float-event .d-c1 { font-size: 12px; line-height: 16px; color: #737373; margin: 0; }
.p-float-event .d-event__title { margin: 0; }
.p-float-event .d-event__ok { font-size: 12px; }
@media (max-width: 900px) {
  .p-float-event { left: 28px; top: 24px; width: 300px; box-shadow: 0 0 0 1px #f9d28e, 0 28px 60px rgba(20, 21, 26, 0.32); }
}
@media (max-width: 900px) {
  .p-float-event { width: 310px; padding: 12px 14px; gap: 10px; }
  .p-float-event .d-event__title { font-size: 14px; line-height: 20px; white-space: nowrap; }
  .p-float-event .d-c1 { font-size: 11px; line-height: 15px; }
}
@media (max-width: 900px) { .p-float-event .d-event__ok { white-space: nowrap; padding: 4px 8px; font-size: 11px; } }


/* ==========================================================
   El ecosistema CAPTA (Figma "The CAPTA Ecosystem" 661:6912)
   ========================================================== */
.p-eco { max-width: 1280px; margin: 0 auto; padding: 120px 40px 40px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.p-eco__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.p-eco__head h2 { margin: 0; max-width: 620px; font: 600 56px/64px var(--font-primary); color: var(--grey-950); }
.p-eco__head h2 span { display: block; color: var(--primary-500); }
.p-eco__head p { margin: -8px 0 0; max-width: 820px; font-size: 18px; line-height: 26px; color: var(--grey-600); }

.p-eco__body { width: 100%; display: flex; gap: 32px; align-items: flex-start; }
.p-eco__list { width: 632px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }

/* Acordeón: una capa abierta a la vez */
.p-eco__item { background: var(--white); border: 1px solid var(--grey-200); border-radius: 12px; transition: background-color .35s ease, border-color .35s ease; }
.p-eco__item.is-open { background: rgba(229, 116, 17, 0.05); border-color: var(--primary-500); }
.p-eco__btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px; border: 0; background: none; cursor: pointer; text-align: left; font: 500 24px/32px var(--font-primary); color: var(--grey-950); }
.p-eco__btn img { width: 32px; height: 32px; flex-shrink: 0; }
.p-eco__btn:focus-visible { outline: 2px solid var(--primary-500); outline-offset: -4px; border-radius: 12px; }
.p-eco__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1); }
.p-eco__item.is-open .p-eco__panel { grid-template-rows: 1fr; }
.p-eco__panel-inner { overflow: hidden; }
.p-eco__panel-inner > p { margin: 0; padding: 0 24px; font-size: 16px; line-height: 24px; color: var(--grey-600); }
.p-eco__tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 24px; }
.p-eco__tags span { padding: 4px 8px; background: var(--white); border: 1px solid var(--black-10); border-radius: 4px; font-size: 12px; line-height: 16px; color: var(--grey-800); }

/* Diagrama: escenario de 616 × 640 (medidas del Figma) que se escala al recuadro */
.p-eco__visual { flex: 1; min-width: 0; height: 640px; position: relative; overflow: hidden; background: #fffcf8; border: 1px solid var(--grey-200); border-radius: 16px; }
.p-eco__stage { position: absolute; left: 50%; top: 50%; width: 616px; height: 640px; transform: translate(-50%, -50%) scale(var(--eco-s, 1)); }
.p-eco__line { position: absolute; left: 148.9px; width: 320.17px; height: 59.88px; max-width: none; }
.p-eco__line--top { top: 206.16px; transform: scaleX(-1); }
.p-eco__line--bottom { top: 378.61px; transform: rotate(180deg); }
.p-eco__dot { position: absolute; width: 12px; height: 12px; border-radius: 90px; background: rgba(255, 255, 255, .1); box-shadow: 0 0 37.7px rgba(0, 0, 0, .2); }
.p-eco__dot::after { content: ""; position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: linear-gradient(180deg, #f49c2b, #e57411); animation: p-eco-dot 2.4s ease-in-out infinite; }
.p-eco__dot:nth-of-type(even)::after { animation-delay: 1.2s; }
@keyframes p-eco-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.8); } }
.p-eco__node { position: absolute; width: 70.97px; height: 70.97px; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--white); border: 1.11px solid var(--grey-200); border-radius: 8.87px; }
.p-eco__node img { width: 35.49px; height: 35.49px; }
.p-eco__logo { position: absolute; left: 308.57px; top: 322.91px; transform: translate(-50%, -50%); padding: 22.18px; background: var(--white); border: .73px solid var(--primary-500); border-radius: 22.18px; }
.p-eco__logo-in { display: grid; place-items: center; width: 70.97px; height: 70.97px; border-radius: 13.31px; background: linear-gradient(0deg, #e57411 6.58%, #f49c2b 106.58%); }
/* El ícono del centro es el de la capa abierta, en blanco */
.p-eco__logo-in i { display: block; width: 35.49px; height: 35.49px; background: var(--white); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; transition: opacity .25s ease, transform .25s ease; }
.p-eco__logo-in i.is-swap { opacity: 0; transform: scale(.7); }
@media (prefers-reduced-motion: reduce) { .p-eco__dot::after { animation: none; } .p-eco__panel { transition: none; } }

@media (max-width: 1200px) {
  .p-eco__head h2 { font-size: 40px; line-height: 48px; max-width: 460px; }
  .p-eco__list { width: 52%; }
}
@media (max-width: 900px) {
  .p-eco { padding: 80px 20px 24px; gap: 40px; }
  .p-eco__head h2 { font-size: 32px; line-height: 40px; max-width: 360px; }
  .p-eco__head p { font-size: 16px; line-height: 24px; }
  .p-eco__body { flex-direction: column-reverse; gap: 20px; }
  .p-eco__list { width: 100%; gap: 12px; }
  .p-eco__visual { width: 100%; flex: none; height: auto; aspect-ratio: 500 / 300; }
  .p-eco__btn { padding: 18px 20px; gap: 14px; font-size: 20px; line-height: 28px; }
  .p-eco__btn img { width: 28px; height: 28px; }
  .p-eco__panel-inner > p { padding: 0 20px; }
  .p-eco__tags { padding: 16px 20px 20px; }
}

/* ---------- Ecosistema · capa 01: encabezado con número ---------- */
.p-eco__btn-text { display: flex; flex-direction: column; gap: 4px; }
.p-eco__kicker { font: 600 12px/16px var(--font-secondary); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-500); }

/* Mientras hay escena, se oculta el diagrama; con las demás capas se ve el diagrama */
.p-eco__visual.is-scene .p-eco__stage { opacity: 0; visibility: hidden; }
.p-eco__visual:not(.is-scene) .eco-scene { opacity: 0; visibility: hidden; }
.p-eco__stage, .eco-scene { transition: opacity .4s ease, visibility .4s; }

/* ---------- Escena: canales + conversación + registro ---------- */
.eco-scene { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.eco-ch { display: flex; gap: 8px; justify-content: center; }
.eco-ch__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 64px; font: 500 14px/20px var(--font-secondary); color: var(--grey-800); transition: border-color .3s ease, box-shadow .3s ease, color .3s ease; }
.eco-ch__item.is-active { border-color: var(--primary-500); color: var(--grey-950); box-shadow: 0 0 0 4px rgba(229, 116, 17, .15); }
/* Los logos de la carpeta traen margen interno: se recortan en un cuadro */
.eco-logo { position: relative; width: 20px; height: 20px; flex-shrink: 0; overflow: hidden; border-radius: 6px; }
.eco-logo img { position: absolute; width: 164%; height: 164%; left: -32%; top: -32%; max-width: none; }
.eco-logo--sm { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: 4px; }

.eco-chat { width: 400px; max-width: 100%; background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px; box-shadow: 0 0 0 1px #f9d28e, 0 18px 40px rgba(20, 21, 26, .12); overflow: hidden; }
.eco-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--grey-200); }
.eco-chat__avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #fef7ec; border: 1px solid #fceac9; color: var(--primary-500); font: 600 13px/1 var(--font-primary); }
.eco-chat__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eco-chat__who strong { font: 600 15px/20px var(--font-primary); color: var(--grey-950); }
.eco-chat__who small { font-size: 12px; line-height: 16px; color: var(--grey-600); }
.eco-ia, .eco-b__ia { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px 3px 5px; border-radius: 6px; background: var(--grey-950); color: var(--white); font: 700 11px/14px var(--font-primary); white-space: nowrap; }
.eco-ia img, .eco-b__ia img { width: 11px; height: 11px; }
.eco-chat__body { height: 268px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fffcf8; }

.eco-b { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 19px; animation: eco-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.eco-b--in { align-self: flex-start; background: var(--white); border: 1px solid var(--grey-200); border-top-left-radius: 4px; color: var(--grey-950); }
.eco-b--out { align-self: flex-end; background: var(--primary-500); color: var(--white); border-top-right-radius: 4px; box-shadow: 0 6px 16px rgba(229, 116, 17, .25); }
.eco-b__ia { margin-top: 6px; }
.eco-b--typing { display: flex; gap: 4px; padding: 12px 14px; }
.eco-b--typing span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; animation: eco-dot .55s ease-in-out infinite; }
.eco-b--typing span:nth-child(2) { animation-delay: .16s; }
.eco-b--typing span:nth-child(3) { animation-delay: .32s; }
@keyframes eco-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes eco-dot { 50% { transform: translateY(-3px); } }
.eco-chat__body.is-leaving > * { opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .35s ease; }

.eco-data { position: absolute; right: 32px; bottom: 32px; width: 300px; padding: 16px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px; box-shadow: 0 0 0 1px #f9d28e, 0 24px 50px rgba(20, 21, 26, .18); }
.eco-data__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.eco-data__head strong { flex: 1; font: 600 15px/20px var(--font-primary); color: var(--grey-950); }
.eco-data__icon { display: grid; place-items: center; width: 32px; height: 32px; background: #fef7ec; border: 1px solid #fceac9; border-radius: 8px; }
.eco-data__icon i { width: 18px; height: 18px; background: var(--primary-500); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.eco-data__state { padding: 2px 8px; border-radius: 64px; font-size: 11px; line-height: 16px; white-space: nowrap; background: #f5f5f5; color: var(--grey-600); }
.eco-data__state[data-state="saving"] { background: #fef7ec; color: var(--primary-500); }
.eco-data__state[data-state="saved"] { background: #f0fdf4; color: #16a34a; }
.eco-data__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #f5f5f5; font-size: 13px; line-height: 18px; }
.eco-data__row span { color: var(--grey-600); }
.eco-data__row b { font-weight: 500; color: var(--grey-950); text-align: right; min-height: 18px; }
.eco-data__row.is-filled { animation: eco-fill .8s ease; }
@keyframes eco-fill { 0% { background: transparent; } 30% { background: #fef7ec; } 100% { background: transparent; } }

/* Móvil: la escena va en flujo normal (no escalada) para que se lea */
@media (max-width: 900px) {
  .p-eco__visual.is-scene { aspect-ratio: auto; }
  .p-eco__visual.is-scene .eco-scene { position: relative; padding: 20px 16px; gap: 14px; }
  .eco-ch { flex-wrap: wrap; gap: 6px; }
  .eco-ch__item { padding: 6px 10px 6px 8px; font-size: 12px; gap: 6px; }
  .eco-chat { width: 100%; }
  .eco-chat__body { height: 250px; }
  .eco-data { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 0 0 28px; }
}
/* Ajustes: la conversación completa queda visible sobre la tarjeta de registro */
.eco-chat__body { height: 300px; overflow: hidden; justify-content: flex-end; }
.eco-data { bottom: 24px; }
@media (max-width: 900px) {
  .eco-ch { flex-wrap: nowrap; gap: 4px; }
  .eco-ch__item { padding: 5px 8px 5px 6px; font-size: 11px; gap: 4px; }
  .eco-ch__item .eco-logo { width: 16px; height: 16px; border-radius: 4px; }
  .eco-chat__body { height: 290px; }
  .eco-data { margin: 12px 0 0; }
}
/* Escritorio: conversación arriba a la izquierda y registro abajo a la derecha, sin taparse */
@media (min-width: 901px) {
  .eco-scene { padding: 24px; gap: 14px; }
  .eco-chat__body { height: 262px; }
  .eco-b { font-size: 13px; line-height: 18px; }
  .eco-data { position: relative; right: auto; bottom: auto; width: 300px; margin: -4px 0 0 auto; padding: 14px 16px; }
  .eco-data__row { padding: 6px 0; }
}
@media (max-width: 900px) { .eco-chat__body { height: 330px; } }

/* ---------- Ecosistema · capa 01 v2 ---------- */
.p-eco__checks { margin: 16px 0 0; padding: 0 24px; list-style: none; display: grid; gap: 8px; }
.p-eco__checks li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; color: var(--grey-800); }
.p-eco__checks li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--primary-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.eco-logo--full { overflow: visible; }
.eco-logo--full img { position: static; width: 100%; height: 100%; }
@media (min-width: 901px) {
  .eco-ch { gap: 6px; }
  .eco-ch__item { padding: 7px 12px 7px 9px; font-size: 13px; }
}
@media (max-width: 900px) {
  .eco-ch { flex-wrap: wrap; justify-content: center; }
  .p-eco__checks { padding: 0 20px; }
  .p-eco__checks li { font-size: 14px; line-height: 20px; }
}

/* Link a WhatsApp y link de pago dentro de la burbuja de la IA */
.eco-b--card { padding: 6px; }
.eco-link, .eco-pay { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--white); border-radius: 10px; color: var(--grey-950); }
.eco-link small, .eco-pay small { display: block; font-size: 11px; line-height: 14px; color: var(--grey-600); }
.eco-link b, .eco-pay b { display: block; font: 600 13px/18px var(--font-primary); }
.eco-link .eco-logo { width: 26px; height: 26px; border-radius: 7px; }
.eco-pay { gap: 16px; justify-content: space-between; min-width: 210px; }
.eco-pay__btn { padding: 6px 14px; border-radius: 8px; background: var(--grey-950); color: var(--white); font: 600 12px/16px var(--font-primary); }

/* Aviso al pasar de canal */
.eco-note { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 64px; background: #f0fdf4; color: #16a34a; font-size: 12px; line-height: 16px; font-weight: 500; animation: eco-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.eco-note .eco-logo { width: 14px; height: 14px; border-radius: 4px; }
.eco-chat.is-switch .eco-chat__head { animation: eco-fill .9s ease; }

/* Etapa del cliente en el registro */
.eco-stage { display: inline-block; padding: 1px 8px; border-radius: 64px; font-size: 12px; line-height: 18px; font-weight: 500; }
.eco-stage[data-stage="quote"] { background: #fef7ec; color: var(--primary-500); }
.eco-stage[data-stage="date"] { background: #eff6ff; color: #2563eb; }
.eco-stage[data-stage="won"] { background: #f0fdf4; color: #16a34a; }
/* Escritorio: el recuadro de la animación crece con el acordeón y la escena se centra */
@media (min-width: 901px) {
  .p-eco__body { align-items: stretch; }
  .p-eco__visual { height: auto; min-height: 640px; }
  .eco-scene { justify-content: center; }
}

/* ---------- Ecosistema: íconos del acordeón (negro cerrado, naranja abierto) ---------- */
.p-eco__ico { display: block; width: 32px; height: 32px; flex-shrink: 0; background: var(--grey-950); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; transition: background-color .3s ease; }
.p-eco__item.is-open .p-eco__ico { background: var(--primary-500); }
.p-eco__btn-text > span { font: 500 24px/32px var(--font-primary); }
.p-eco__item:not(.is-open) .p-eco__btn-text > span { font-size: 20px; line-height: 28px; }
@media (max-width: 900px) {
  .p-eco__ico { width: 28px; height: 28px; }
  .p-eco__btn-text > span { font-size: 20px; line-height: 28px; }
  .p-eco__item:not(.is-open) .p-eco__btn-text > span { font-size: 17px; line-height: 24px; }
}

/* Solo se ve la escena de la capa abierta */
.eco-scene { opacity: 0; visibility: hidden; }
.eco-scene.is-on { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  .p-eco__visual.is-scene .eco-scene { position: absolute; }
  .p-eco__visual.is-scene .eco-scene.is-on { position: relative; }
}
.eco-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px; box-shadow: 0 0 0 1px #f9d28e, 0 18px 40px rgba(20, 21, 26, .12); }

/* ---------- 02 · Segmenta ---------- */
.eco-seg { display: flex; flex-direction: column; gap: 14px; }
.eco-seg__event { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 14px; box-shadow: 0 0 0 1px #f9d28e, 0 18px 40px rgba(20, 21, 26, .12); }
.eco-seg__event.is-flash { animation: eco-fill .8s ease; }
.eco-seg__auto { padding: 3px 8px; border-radius: 64px; background: #fef7ec; color: var(--primary-500); font-size: 11px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.eco-seg__list { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px; }
.eco-seg__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 18px; color: var(--grey-800); transition: background-color .3s ease, box-shadow .3s ease; }
.eco-seg__row > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.eco-seg__row > span:first-of-type { flex: 1; }
.eco-seg__row b { min-width: 40px; text-align: right; font: 600 14px/18px var(--font-primary); color: var(--grey-950); }
.eco-seg__row.is-hit { background: color-mix(in srgb, var(--c) 10%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, white); }
.eco-seg__avs { display: flex; }
.eco-seg__avs span { width: 22px; height: 22px; margin-left: -6px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--white); background: color-mix(in srgb, var(--c) 18%, white); color: var(--c); font: 700 9px/1 var(--font-primary); animation: eco-in .45s cubic-bezier(.22, 1, .36, 1) both; }

/* ---------- 03 · Seguimiento ---------- */
.eco-steps { display: flex; flex-direction: column; gap: 10px; }
.eco-steps__title { margin: 0 0 2px; display: flex; align-items: center; gap: 8px; font: 600 15px/20px var(--font-primary); color: var(--grey-950); }
.eco-step { position: relative; padding: 12px 14px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 14px; box-shadow: 0 0 0 1px #f9d28e, 0 14px 30px rgba(20, 21, 26, .1); opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }
.eco-step.is-on { opacity: 1; transform: none; }
.eco-step__top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.eco-step__top .eco-chat__avatar { width: 28px; height: 28px; font-size: 11px; }
.eco-step__top strong { font: 600 14px/20px var(--font-primary); color: var(--grey-950); }
.eco-step__arrow { color: var(--grey-400); font-size: 13px; }
.eco-step__action { padding: 1px 8px; border-radius: 64px; background: var(--grey-950); color: var(--white); font-size: 12px; line-height: 18px; font-weight: 500; }
.eco-step__msg { margin-top: 8px; padding: 8px 11px; border-radius: 12px; border-top-left-radius: 4px; background: var(--primary-500); color: var(--white); font-size: 13px; line-height: 18px; min-height: 34px; display: none; }
.eco-step__msg.is-on { display: block; animation: eco-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.eco-step__msg .eco-b--typing { padding: 4px 0; }
.eco-ticket { display: none; margin-top: 8px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1.5px dashed var(--primary-500); border-radius: 10px; background: #fef7ec; }
.eco-ticket.is-on { display: flex; animation: eco-pop .5s cubic-bezier(.22, 1, .36, 1) both; }
.eco-ticket b { font: 700 15px/20px var(--font-primary); letter-spacing: .06em; color: var(--primary-500); }
.eco-ticket span { font-size: 12px; line-height: 16px; color: var(--grey-800); }
.eco-step__ok { position: absolute; right: 12px; bottom: 12px; padding: 1px 8px; border-radius: 64px; background: #f0fdf4; color: #16a34a; font-size: 11px; line-height: 16px; opacity: 0; transition: opacity .3s ease; }
.eco-step.is-done .eco-step__ok { opacity: 1; }
.eco-step.is-done .eco-step__msg, .eco-step.is-done .eco-ticket { margin-right: 74px; }
@keyframes eco-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ---------- 04 · Insiste y recupera ---------- */
.eco-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.eco-kpi { padding: 10px 12px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 12px; }
.eco-kpi b { display: block; font: 600 22px/28px var(--font-primary); color: var(--grey-950); }
.eco-kpi span { font-size: 11.5px; line-height: 15px; color: var(--grey-600); }
.eco-kpi.is-flash { animation: eco-fill .9s ease; box-shadow: 0 0 0 1px #f9d28e; }
.eco-gap { align-self: center; padding: 2px 10px; border-radius: 64px; background: #f5f5f5; color: var(--grey-600); font-size: 11px; line-height: 16px; animation: eco-in .45s ease both; }
.eco-stage[data-stage="lost"] { background: #fef2f2; color: #dc2626; }
.eco-stage.is-flip { animation: eco-pop .5s ease; }

/* ---------- 05 · Optimiza ---------- */
.eco-meta, .eco-opt { padding: 14px 16px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px; box-shadow: 0 0 0 1px #f9d28e, 0 18px 40px rgba(20, 21, 26, .12); }
.eco-meta { display: flex; flex-direction: column; gap: 6px; }
.eco-meta__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.eco-meta__logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #eff6ff; }
.eco-meta__logo img { width: 20px; height: 20px; }
.eco-meta__logo.is-ping { animation: eco-ping .6s ease; }
@keyframes eco-ping { 50% { box-shadow: 0 0 0 6px rgba(0, 129, 251, .2); } }
.eco-meta__live { font-size: 11px; color: #16a34a; white-space: nowrap; }
.eco-meta__ev { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #f5f5f5; border-radius: 10px; font-size: 13.5px; line-height: 18px; color: var(--grey-800); transition: background-color .3s ease, border-color .3s ease; }
.eco-meta__ev > span:nth-child(2) { flex: 1; }
.eco-meta__n { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #f5f5f5; color: var(--grey-600); font: 600 11px/1 var(--font-primary); }
.eco-meta__ev em { font-style: normal; font-size: 11.5px; color: var(--grey-400); }
.eco-meta__ev.is-on { background: #fef7ec; border-color: #f9d28e; }
.eco-meta__ev.is-on .eco-meta__n { background: var(--primary-500); color: var(--white); }
.eco-meta__ev.is-on em { color: #16a34a; font-weight: 500; }
.eco-opt { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.eco-opt__row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--grey-600); }
.eco-opt__goal { padding: 2px 10px; border-radius: 64px; background: #f5f5f5; color: var(--grey-800); font-weight: 500; transition: background-color .3s ease, color .3s ease; }
.eco-opt__goal.is-good { background: #f0fdf4; color: #16a34a; }
.eco-opt__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eco-opt__cols div { padding: 8px 10px; border-radius: 10px; background: #fafafa; }
.eco-opt__cols small, .eco-opt__bar small { display: block; font-size: 11px; line-height: 15px; color: var(--grey-600); }
.eco-opt__cols b { font: 600 17px/24px var(--font-primary); color: var(--grey-950); }
.eco-opt__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.eco-opt__bar span { height: 8px; border-radius: 8px; background: #f5f5f5; overflow: hidden; }
.eco-opt__bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #f49c2b, #e57411); transition: width 1.4s cubic-bezier(.22, 1, .36, 1); }
.eco-opt__bar b { font: 600 13px/18px var(--font-primary); color: #16a34a; }

/* ---------- 06 · Analiza ---------- */
.eco-ana { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px; box-shadow: 0 0 0 1px #f9d28e, 0 18px 40px rgba(20, 21, 26, .12); }
.eco-ana__head { display: flex; align-items: center; gap: 8px; }
.eco-ana__head strong { flex: 1; font: 600 15px/20px var(--font-primary); color: var(--grey-950); }
.eco-ana__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eco-ana__tile { padding: 10px 12px; border-radius: 12px; background: #fef7ec; border: 1px solid #fceac9; }
.eco-ana__tile b { display: block; font: 600 28px/34px var(--font-primary); color: var(--primary-500); }
.eco-ana__tile span { font-size: 12px; line-height: 16px; color: var(--grey-800); }
.eco-ana__sub { margin: 4px 0 0; font: 600 13px/18px var(--font-primary); color: var(--grey-950); }
.eco-ana__bar { display: grid; grid-template-columns: 120px 1fr 36px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--grey-800); }
.eco-ana__bar i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--primary-500) var(--p, 0%), #f5f5f5 var(--p, 0%)); transition: --p 1s ease; }
.eco-ana__bar b { font: 600 12.5px/18px var(--font-primary); text-align: right; color: var(--grey-950); }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.eco-ana__bar.is-on i { --p: var(--w); }
.eco-ana__tip { display: none; padding: 10px 12px; border-radius: 12px; background: var(--grey-950); color: var(--white); font-size: 13px; line-height: 18px; }
.eco-ana__tip.is-on { display: block; animation: eco-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.eco-ana__tip .eco-b--typing span { background: var(--white); }
@media (max-width: 900px) { .eco-ana__bar { grid-template-columns: 96px 1fr 34px; } }
/* Escritorio: con 6 capas el acordeón es alto, así que la animación se queda fija a la vista */
@media (min-width: 901px) {
  .p-eco__body { align-items: flex-start; }
  .p-eco__visual { position: sticky; top: 24px; height: 680px; min-height: 0; }
}
/* Móvil: la animación dentro de la capa abierta */
@media (max-width: 900px) {
  .p-eco__panel-inner > .p-eco__visual { margin: 0 12px 12px; width: auto; }
}
/* Escritorio: todo cabe en la pantalla. Acordeón más compacto y la animación arriba, con alto según la pantalla */
@media (min-width: 901px) {
  .p-eco { gap: 48px; }
  .p-eco__list { gap: 10px; }
  .p-eco__btn { padding: 16px 20px; gap: 14px; }
  .p-eco__ico { width: 28px; height: 28px; }
  .p-eco__item:not(.is-open) .p-eco__btn-text > span { font-size: 18px; line-height: 24px; }
  .p-eco__item.is-open .p-eco__btn { padding-top: 20px; }
  .p-eco__panel-inner > p { padding: 0 20px; font-size: 15px; line-height: 22px; }
  .p-eco__checks { margin-top: 12px; padding: 0 20px; gap: 6px; }
  .p-eco__checks li { font-size: 14px; line-height: 20px; }
  .p-eco__tags { padding: 16px 20px 20px; }
  .p-eco__visual { top: 32px; height: min(620px, calc(100vh - 64px)); }
  .eco-scene { justify-content: flex-start; padding: 24px; }
  .eco-chat__body { height: 240px; }
}
/* Pantallas bajas (laptops): las escenas se reducen un poco para caber completas */
@media (min-width: 901px) and (max-height: 760px) {
  .eco-scene { zoom: .88; }
}
/* Escritorio: el recuadro mide lo mismo que el acordeón (todo cabe en pantalla) y la animación queda centrada en él */
@media (min-width: 901px) {
  .p-eco__body { align-items: stretch; }
  .p-eco__visual { position: relative; top: auto; height: auto; min-height: 0; }
  .eco-scene { justify-content: center; }
}

/* Capa 01: conversación y tarjeta en el mismo lugar; primero una y luego la otra */
.eco-swap { display: grid; place-items: center; }
.eco-swap > .eco-chat, .eco-swap > .eco-data { grid-area: 1 / 1; transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s; }
.eco-swap > .eco-data { position: relative; right: auto; bottom: auto; margin: 0; width: 100%; max-width: 380px; padding: 20px; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96); }
.eco-scene.is-record .eco-swap > .eco-chat { opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.96); }
.eco-scene.is-record .eco-swap > .eco-data { opacity: 1; visibility: visible; transform: none; }
.eco-swap .eco-data__head { margin-bottom: 14px; }
.eco-swap .eco-data__head strong { font-size: 17px; line-height: 24px; }
.eco-swap .eco-data__icon { width: 40px; height: 40px; }
.eco-swap .eco-data__icon i { width: 22px; height: 22px; }
.eco-swap .eco-data__row { padding: 11px 0; font-size: 14.5px; line-height: 20px; }
.eco-swap .eco-stage { font-size: 13px; padding: 2px 10px; }
@media (min-width: 901px) { .eco-chat__body { height: 280px; } }
@media (max-width: 900px) { .eco-swap > .eco-data { max-width: none; } }
/* Escritorio (definitivo): recuadro de tamaño fijo que cabe en la pantalla y se queda a la vista
   mientras se recorren las capas; la animación va centrada dentro */
@media (min-width: 901px) {
  .p-eco__body { align-items: flex-start; }
  .p-eco__visual { position: sticky; top: 32px; height: min(600px, calc(100vh - 64px)); min-height: 0; }
  .eco-scene { justify-content: center; }
}

/* ==========================================================
   Ecosistema · animaciones con los componentes del Figma (Design System)
   Card 846:5960 · Badge 733:12504 · Tab 597:61408 · Tab Bar 455:26287
   User Avatar 455:25767 · Toggle 173:3967
   ========================================================== */

/* Card: marco crema de 2px (#FEF7EC) con borde #FCEAC9, interior blanco radio 10 */
.eco-chat, .eco-data, .eco-seg__event, .eco-seg__list, .eco-step, .eco-meta, .eco-opt, .eco-ana, .eco-kpi {
  background: var(--white);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #fef7ec, 0 0 0 3px #fceac9, 0 12px 28px rgba(20, 21, 26, .06);
}
.eco-seg__list, .eco-meta, .eco-opt, .eco-ana, .eco-data { padding: 12px; }
.eco-chat__head, .eco-meta__head, .eco-ana__head, .eco-data__head { gap: 8px; }

/* Encabezado de Card: ícono en cuadro crema (padding 6, radio 6) + etiqueta B4 14/20 gris 700 */
.eco-data__icon, .eco-meta__logo { width: auto; height: auto; padding: 6px; background: rgba(254, 247, 236, .5); border: 1px solid #fceac9; border-radius: 6px; }
.eco-data__icon i { width: 20px; height: 20px; }
.eco-meta__logo img { width: 20px; height: 20px; display: block; }
.eco-data__head strong, .eco-ana__head strong, .eco-steps__title, .eco-meta__head strong { font: 400 14px/20px var(--font-secondary); color: #404040; }
.eco-swap .eco-data__head strong { font: 400 14px/20px var(--font-secondary); }
.eco-chat__who strong { font: 500 14px/20px var(--font-secondary); color: var(--grey-950); }
.eco-chat__who small, .eco-meta__head small { font-size: 12px; line-height: 16px; color: var(--grey-600); }

/* Valores: H6 Semibold 24/32 negro · etiquetas Caption C1 12/16 */
.eco-kpi b, .eco-ana__tile b, .eco-opt__cols b { font: 600 24px/32px var(--font-primary); color: #000; }
.eco-kpi span, .eco-ana__tile span, .eco-opt__cols small, .eco-opt__bar small { font-size: 12px; line-height: 16px; color: var(--grey-600); }
.eco-kpi { padding: 12px; }
.eco-ana__tile, .eco-opt__cols div { background: #fafafa; border: 1px solid var(--grey-200); border-radius: 8px; }
.eco-data__row span, .eco-meta__ev, .eco-seg__row { font-size: 14px; line-height: 20px; }
.eco-data__row b { font-weight: 500; color: var(--grey-800); }

/* Badge: radio 64, padding 2/8, C1 12/16 — verde, info, warning, error y gris */
.eco-stage, .eco-data__state, .eco-seg__auto, .eco-step__ok, .eco-gap, .eco-note, .eco-meta__live, .eco-opt__goal, .eco-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 64px;
  font: 400 12px/16px var(--font-secondary);
  white-space: nowrap;
}
.eco-stage[data-stage="won"], .eco-data__state[data-state="saved"], .eco-step__ok, .eco-note, .eco-meta__live, .eco-opt__goal.is-good { background: #f0fdf4; color: #16a34a; }
.eco-stage[data-stage="date"] { background: #e0f2fe; color: #0284c7; }
.eco-stage[data-stage="quote"], .eco-data__state[data-state="saving"], .eco-seg__auto { background: #fffbeb; color: #d97706; }
.eco-stage[data-stage="lost"] { background: #fef2f2; color: #dc2626; }
.eco-data__state[data-state="idle"], .eco-gap, .eco-opt__goal { background: #fafafa; color: var(--grey-600); }
/* Badge con el ícono de tendencia del Figma (para porcentajes) */
.eco-opt__bar b { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 64px; background: #f0fdf4; color: #16a34a; font: 400 12px/16px var(--font-secondary); }
.eco-opt__bar b::before { content: ""; width: 12px; height: 12px; background: url(assets/eco/badge-up-green.svg) center / contain no-repeat; }

/* Tab (etiqueta pequeña): blanco, borde negro 10%, radio 4, padding 4/8, C1 12/16 gris 800 */
.eco-step__action, .eco-ticket span { display: inline-flex; padding: 4px 8px; background: var(--white); border: 1px solid var(--black-10); border-radius: 4px; font: 400 12px/16px var(--font-secondary); color: var(--grey-800); }

/* Tab Bar: fondo gris 100, borde gris 200, radio 8, padding 2; pestaña activa naranja radio 6 */
.eco-ch { align-self: center; display: inline-flex; gap: 0; padding: 2px; background: #f5f5f5; border: 1px solid var(--grey-200); border-radius: 8px; }
.eco-ch__item { gap: 6px; padding: 8px 14px; background: transparent; border: 0; border-radius: 6px; box-shadow: none; font: 500 14px/20px var(--font-secondary); color: var(--grey-500); transition: background-color .3s ease, color .3s ease; }
.eco-ch__item.is-active { background: var(--primary-500); color: var(--white); box-shadow: none; }
.eco-ch__item.is-active .eco-logo { box-shadow: 0 0 0 1.5px var(--white); }
.eco-ch__item.is-active .eco-logo--full img { filter: brightness(0) invert(1); }

/* User Avatar (40px): círculo gris 200 con ícono de usuario y punto verde de "en línea" */
.eco-chat__avatar {
  position: relative; width: 40px; height: 40px; flex-shrink: 0;
  font-size: 0; color: transparent; border: 0;
  background: #e5e5e5 url(assets/eco/user-fill.svg) center / 20px no-repeat;
}
.eco-chat__avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; border: 1.5px solid var(--white); box-sizing: border-box; }
.eco-step__top .eco-chat__avatar { width: 32px; height: 32px; background-size: 16px; }
.eco-step__top .eco-chat__avatar::after { width: 8px; height: 8px; }
.eco-seg__avs span { background: #e5e5e5 url(assets/eco/user-fill.svg) center / 12px no-repeat; font-size: 0; color: transparent; }

/* Toggle (44 × 24): naranja encendido, bolita blanca con borde naranja de 2px */
.eco-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; border-radius: 1000px; background: #e5e5e5; transition: background-color .3s ease; }
.eco-toggle::after { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; box-sizing: border-box; border-radius: 1000px; background: var(--white); border: 2px solid #e5e5e5; transition: left .3s ease, border-color .3s ease; }
.eco-toggle.is-on { background: var(--primary-500); }
.eco-toggle.is-on::after { left: 20px; border-color: var(--primary-500); }
.eco-opt__row { gap: 10px; }
.eco-opt__row > span:first-child { flex: 1; font-size: 14px; line-height: 20px; color: #404040; }

/* Filas de eventos y de etapas con el borde de las Cards de estado del Figma */
.eco-meta__ev { border: 1px solid var(--grey-200); border-radius: 8px; }
.eco-meta__ev.is-on { background: rgba(229, 116, 17, .05); border-color: var(--primary-500); }
.eco-meta__ev em { font: 400 12px/16px var(--font-secondary); padding: 2px 8px; border-radius: 64px; background: #fafafa; color: var(--grey-600); }
.eco-meta__ev.is-on em { background: #f0fdf4; color: #16a34a; font-weight: 400; }
.eco-meta__n { border-radius: 6px; }

@media (max-width: 900px) {
  .eco-ch { display: flex; flex-wrap: wrap; justify-content: center; }
  .eco-ch__item { padding: 6px 10px; font-size: 12px; }
}
.eco-ch__item { white-space: nowrap; }
@media (min-width: 901px) { .eco-ch__item { padding: 8px 11px; } }
/* Capa 05: giro del negocio como Tab del Figma */
.eco-ana__giro { padding: 4px 8px; background: var(--white); border: 1px solid var(--black-10); border-radius: 4px; font: 400 12px/16px var(--font-secondary); color: var(--grey-800); white-space: nowrap; }
.eco-ana__head .eco-data__state { display: none; }
/* Capa 02: título de la lista de etapas (encabezado de Card del Figma) */
.eco-seg__title { margin: 2px 4px 6px; display: flex; align-items: center; justify-content: space-between; font: 400 14px/20px var(--font-secondary); color: #404040; }
.eco-seg__title span { padding: 4px 8px; background: var(--white); border: 1px solid var(--black-10); border-radius: 4px; font-size: 12px; line-height: 16px; color: var(--grey-800); }
/* Logo de Google Ads del Figma (661:7526): el dibujo ocupa el recuadro con estos márgenes */
.eco-gads { position: relative; display: block; width: 20px; height: 20px; overflow: hidden; }
.eco-meta__logo .eco-gads img { position: absolute; top: 12.33%; left: 8.67%; width: 82.76%; height: 75.63%; max-width: none; }
/* Capa 02: solo se ven las etapas del negocio en turno; entran una por una */
.eco-seg__row { display: none; }
.eco-seg__row.is-in { display: flex; animation: eco-in .4s cubic-bezier(.22, 1, .36, 1) both; }
.eco-seg__title span { transition: opacity .3s ease; }

/* ---------- Capa 02: mini sistema (Figma Dashboard 888:5763 · Side Bar 461:41683) ---------- */
.eco-crm { display: flex; gap: 10px; height: 420px; }
.eco-crm__side { width: 172px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--grey-200), 0 12px 28px rgba(20, 21, 26, .06); overflow: hidden; }
.eco-crm__brand { display: flex; align-items: center; gap: 5px; padding: 12px; border-bottom: 1px solid var(--grey-200); }
.eco-crm__biz { margin: 12px 12px 4px; font: 500 11px/14px var(--font-secondary); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-400); }
.eco-crm__menu { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 8px; }
/* Sidebar Tab: padding 8, radio 10, C1 12/16; activa naranja con texto blanco */
.eco-crm__tab { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; font: 400 12px/16px var(--font-secondary); color: var(--grey-600); opacity: 0; transform: translateX(-8px); transition: background-color .3s ease, color .3s ease; }
.eco-crm__tab.is-in { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease, background-color .3s ease, color .3s ease; }
.eco-crm__tab i { width: 16px; height: 16px; flex-shrink: 0; background: #737373; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.eco-crm__tab span { flex: 1; min-width: 0; }
.eco-crm__tab b { padding: 0 6px; border-radius: 64px; background: #f5f5f5; font: 500 11px/16px var(--font-secondary); color: var(--grey-600); }
.eco-crm__tab.is-active { background: var(--primary-500); color: var(--white); font-weight: 500; }
.eco-crm__tab.is-active i { background: var(--white); }
.eco-crm__tab.is-active b { background: rgba(255, 255, 255, .25); color: var(--white); }
.eco-crm__tab.is-ping b { animation: eco-pop .5s ease; }

.eco-crm__main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--grey-200), 0 12px 28px rgba(20, 21, 26, .06); overflow: hidden; }
.eco-crm__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--grey-200); }
.eco-crm__head strong { display: block; font: 500 15px/20px var(--font-primary); color: var(--grey-950); }
.eco-crm__head small { font-size: 12px; line-height: 16px; color: var(--grey-600); }
.eco-crm__list { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.eco-crm__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--grey-200); border-radius: 10px; animation: eco-in .35s cubic-bezier(.22, 1, .36, 1) both; transition: opacity .4s ease, transform .4s ease; }
.eco-crm__row:nth-child(2) { animation-delay: .06s; }
.eco-crm__row:nth-child(3) { animation-delay: .12s; }
.eco-crm__row .eco-chat__avatar { width: 32px; height: 32px; background-size: 16px; }
.eco-crm__row .eco-chat__avatar::after { width: 8px; height: 8px; }
.eco-crm__row > div { flex: 1; min-width: 0; }
.eco-crm__row strong { display: block; font: 500 13px/18px var(--font-secondary); color: var(--grey-950); }
.eco-crm__row small { display: block; font-size: 11.5px; line-height: 16px; color: var(--grey-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eco-crm__row .eco-stage { display: none; }
.eco-crm__row.is-new { background: rgba(229, 116, 17, .05); border-color: var(--primary-500); }
.eco-crm__row.is-new .eco-stage { display: inline-flex; background: #f0fdf4; color: #16a34a; }
.eco-crm__row.is-new .eco-stage::before { content: "Nuevo"; }
.eco-crm__row.is-new .eco-stage { font-size: 0; }
.eco-crm__row.is-new .eco-stage::before { font-size: 12px; }
.eco-crm__row.is-leaving { opacity: 0; transform: translateX(16px); }

@media (max-width: 900px) {
  .eco-crm { height: auto; min-height: 360px; gap: 8px; }
  .eco-crm__side { width: 132px; }
  .eco-crm__brand img + img { display: none; }
  .eco-crm__tab { padding: 7px 6px; gap: 6px; font-size: 11px; }
  .eco-crm__tab i { display: none; }
  .eco-crm__head .eco-seg__auto { display: none; }
}
@media (min-width: 901px) { .eco-crm__side { width: 196px; } .eco-crm__tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 900px) {
  .eco-crm__row { flex-wrap: wrap; }
  .eco-crm__row.is-new .eco-stage { order: 3; margin-left: 42px; }
}
/* Capa 03: la conversación crece hacia abajo desde arriba (no se corta) y tiene más alto */
.eco-scene[data-scene="recupera"] { justify-content: flex-start; padding-top: 20px; gap: 10px; }
.eco-scene[data-scene="recupera"] .eco-chat { width: 100%; max-width: 440px; align-self: center; }
.eco-scene[data-scene="recupera"] .eco-chat__body { height: 400px; justify-content: flex-start; gap: 6px; padding: 10px 12px; }
.eco-scene[data-scene="recupera"] .eco-b { font-size: 12.5px; line-height: 17px; padding: 7px 10px; }
.eco-scene[data-scene="recupera"] .eco-b__ia { margin-top: 4px; }
.eco-scene[data-scene="recupera"] .eco-kpi { padding: 8px 12px; }
.eco-scene[data-scene="recupera"] .eco-kpi b { font-size: 20px; line-height: 26px; }
@media (max-width: 900px) { .eco-scene[data-scene="recupera"] .eco-chat__body { height: 470px; } }
/* Capa 03 (ajuste): los mensajes vuelven a entrar abajo y empujar hacia arriba,
   pero la línea donde aparecen queda más arriba (espacio libre abajo) para que no se corten */
.eco-scene[data-scene="recupera"] .eco-chat__body { height: 380px; justify-content: flex-end; padding: 10px 12px 64px; }
@media (max-width: 900px) { .eco-scene[data-scene="recupera"] .eco-chat__body { height: 420px; padding-bottom: 56px; } }
/* Capa 03 (definitivo): la conversación llena el alto que quede en el recuadro, sea cual sea
   la pantalla. Los mensajes entran abajo (con aire) y suben; nunca se salen del recuadro */
@media (min-width: 901px) {
  .eco-scene[data-scene="recupera"] { display: flex; flex-direction: column; justify-content: flex-start; padding: 20px 24px 24px; zoom: 1; }
  .eco-scene[data-scene="recupera"] .eco-kpis { flex-shrink: 0; }
  .eco-scene[data-scene="recupera"] .eco-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .eco-scene[data-scene="recupera"] .eco-chat__head { flex-shrink: 0; }
  .eco-scene[data-scene="recupera"] .eco-chat__body { flex: 1; min-height: 0; height: auto; padding-bottom: 48px; }
  .eco-scene[data-scene="recupera"] .eco-kpi span { white-space: nowrap; }
}

/* ---------- Capa 04: tarjeta de agenda + conversiones ---------- */
.eco-scene[data-scene="optimiza"] { justify-content: flex-start; padding: 20px 24px; gap: 12px; }
.eco-appt { position: relative; padding: 12px; background: var(--white); border-radius: 10px; box-shadow: 0 0 0 2px #fef7ec, 0 0 0 3px #fceac9, 0 12px 28px rgba(20, 21, 26, .06); }
.eco-appt__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eco-appt__label { flex: 1; font: 400 14px/20px var(--font-secondary); color: #404040; }
.eco-appt__who { display: flex; align-items: center; gap: 10px; padding: 8px 0 10px; border-top: 1px solid #f5f5f5; }
.eco-appt__who strong { display: block; font: 500 14px/20px var(--font-secondary); color: var(--grey-950); }
.eco-appt__who small { font-size: 12px; line-height: 16px; color: var(--grey-600); }
.eco-appt__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eco-appt__btn { display: grid; place-items: center; padding: 8px; border: 1px solid var(--grey-200); border-radius: 8px; font: 500 13px/18px var(--font-secondary); transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.eco-appt__btn--yes { color: #16a34a; }
.eco-appt__btn--no { color: #dc2626; }
.eco-appt__btn--yes.is-chosen { background: #16a34a; border-color: #16a34a; color: var(--white); }
.eco-cursor { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); }
.eco-cursor svg { display: block; }
/* Eventos y optimización más compactos para que todo quepa debajo de la tarjeta */
.eco-scene[data-scene="optimiza"] .eco-meta { gap: 5px; padding: 10px 12px; }
.eco-scene[data-scene="optimiza"] .eco-meta__head { margin-bottom: 2px; }
.eco-scene[data-scene="optimiza"] .eco-meta__ev { padding: 5px 8px; font-size: 13px; }
.eco-scene[data-scene="optimiza"] .eco-meta__n { width: 20px; height: 20px; }
.eco-scene[data-scene="optimiza"] .eco-opt { margin-top: 0; gap: 8px; padding: 10px 12px; }
.eco-scene[data-scene="optimiza"] .eco-opt__cols b { font-size: 20px; line-height: 26px; }
.eco-scene[data-scene="optimiza"] .eco-opt__cols div { padding: 6px 10px; }
/* Capa 04 sin el bloque de optimización: tarjeta y eventos centrados con su tamaño normal */
.eco-scene[data-scene="optimiza"] { justify-content: center; gap: 16px; }
.eco-scene[data-scene="optimiza"] .eco-meta { gap: 6px; padding: 12px; }
.eco-scene[data-scene="optimiza"] .eco-meta__ev { padding: 8px 10px; font-size: 14px; }
/* Capa abierta sin contenedor: sin fondo ni borde (las cerradas siguen como tarjetas) */
.p-eco__item.is-open { background: transparent; border-color: transparent; box-shadow: none; }
/* Animaciones sin contenedor: el recuadro crema de la derecha ya no tiene fondo ni borde */
.p-eco__visual, .p-eco__visual.is-scene { background: transparent; border: 0; box-shadow: none; overflow: visible; }

/* ==========================================================
   Por qué CAPTA: comparativa (tipografías y colores del Figma)
   ========================================================== */
.p-cmp { max-width: 1280px; margin: 0 auto; padding: 120px 40px 40px; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.p-cmp__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.p-cmp__head .chip { border-color: rgba(229, 116, 17, .3); }
.p-cmp__head h2 { margin: 0; font: 700 56px/64px var(--font-primary); letter-spacing: -0.035em; color: var(--grey-950); }
.p-cmp__head h2 span { color: var(--primary-500); }
.p-cmp__head p { margin: -8px 0 0; max-width: 720px; font-size: 18px; line-height: 26px; color: var(--grey-600); }

.p-cmp__table { position: relative; width: 100%; display: grid; grid-template-columns: 200px 1fr 1.35fr; }
.p-cmp__bg { grid-column: 2; border-radius: 24px; background: #f5f4f1; border: 1px solid var(--grey-200); }
.p-cmp__bg--capta { grid-column: 3; border: 0; background: linear-gradient(170deg, #f49c2b 0%, #e57411 100%); box-shadow: 0 30px 60px -20px rgba(229, 116, 17, .45); }
.p-cmp__col, .p-cmp__label, .p-cmp__cell, .p-cmp__result { position: relative; z-index: 1; }
.p-cmp__col { padding: 32px 28px 24px; font: 600 24px/32px var(--font-primary); }
.p-cmp__col--other { grid-column: 2; color: #737373; }
.p-cmp__col--capta { grid-column: 3; display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 28px; }
.p-cmp__col--capta .eco-ia { font-size: 12px; padding: 4px 8px; }
.p-cmp__label { grid-column: 1; padding: 26px 16px 26px 0; border-top: 1px solid var(--grey-200); font: 600 12px/16px var(--font-secondary); letter-spacing: .1em; text-transform: uppercase; color: #8a8178; }
.p-cmp__cell { display: flex; gap: 14px; padding: 22px 28px; border-top: 1px solid var(--grey-200); }
.p-cmp__cell--other { grid-column: 2; }
.p-cmp__cell--capta { grid-column: 3; border-top-color: rgba(255, 255, 255, .25); }
.p-cmp__cell p { margin: 0; font-size: 16px; line-height: 24px; }
.p-cmp__cell--other p { color: var(--grey-600); }
.p-cmp__cell--capta p { color: var(--white); }
.p-cmp__cell--capta b { font-weight: 600; }
.p-cmp__ico { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; }
.p-cmp__ico--no { background: #e5e5e5; }
.p-cmp__ico--no::before { content: ""; width: 8px; height: 1.5px; border-radius: 1px; background: #a3a3a3; }
.p-cmp__ico--yes { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11.5l2.6 2.6L15 8.6' fill='none' stroke='%23E57411' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.p-cmp__result { padding: 26px 28px 32px; border-top: 1px solid var(--grey-200); font: 700 28px/36px var(--font-primary); letter-spacing: -0.02em; }
.p-cmp__result--other { grid-column: 2; color: #8a8178; }
.p-cmp__result--capta { grid-column: 3; color: var(--white); border-top-color: rgba(255, 255, 255, .25); }
.p-cmp__label:last-of-type { padding-top: 34px; }
.p-cmp__close { margin: 8px 0 0; text-align: center; font: 700 36px/44px var(--font-primary); letter-spacing: -0.03em; color: var(--grey-950); }
.p-cmp__close span { color: var(--primary-500); }

@media (max-width: 1200px) {
  .p-cmp__head h2 { font-size: 40px; line-height: 48px; }
  .p-cmp__table { grid-template-columns: 150px 1fr 1.3fr; }
  .p-cmp__close { font-size: 28px; line-height: 36px; }
}
/* Móvil: cada fila con su etiqueta arriba y las dos opciones lado a lado */
@media (max-width: 900px) {
  .p-cmp { padding: 80px 20px 24px; gap: 36px; }
  .p-cmp__head h2 { font-size: 32px; line-height: 40px; }
  .p-cmp__head p { font-size: 16px; line-height: 24px; }
  .p-cmp__table { display: flex; flex-direction: column; gap: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--grey-200); }
  .p-cmp__bg, .p-cmp__col { display: none; }
  .p-cmp__label { padding: 18px 16px 8px; border: 0; background: var(--white); }
  .p-cmp__label:not(:first-of-type) { border-top: 1px solid var(--grey-200); }
  .p-cmp__cell { padding: 12px 16px; border: 0; gap: 10px; }
  .p-cmp__cell--other { background: #f5f4f1; }
  .p-cmp__cell--other::before { content: "Otras soluciones"; position: absolute; top: 8px; right: 12px; font-size: 10px; color: #a3a3a3; }
  .p-cmp__cell--capta { background: linear-gradient(170deg, #f49c2b, #e57411); }
  .p-cmp__cell--capta::before { content: "CAPTA"; position: absolute; top: 8px; right: 12px; font: 700 10px/1 var(--font-primary); color: rgba(255, 255, 255, .8); }
  .p-cmp__cell p { font-size: 14px; line-height: 20px; padding-right: 64px; }
  .p-cmp__ico { width: 20px; height: 20px; background-size: 20px; }
  .p-cmp__label:last-of-type { padding-top: 18px; }
  .p-cmp__result { padding: 12px 16px; border: 0; font-size: 20px; line-height: 28px; }
  .p-cmp__result--other { background: #f5f4f1; }
  .p-cmp__result--capta { background: linear-gradient(170deg, #f49c2b, #e57411); }
  .p-cmp__close { font-size: 24px; line-height: 32px; }
}
@media (max-width: 900px) {
  .p-cmp__cell { flex-wrap: wrap; padding-top: 26px; }
  .p-cmp__cell p { padding-right: 0; flex: 1; }
  .p-cmp__cell--other::before, .p-cmp__cell--capta::before { left: 46px; right: auto; top: 10px; }
}

/* Por qué CAPTA · elementos solo de móvil */
.p-cmp__legend, .p-cmp__result small, .p-cmp__m { display: none; }

/* Móvil (según referencia): una tarjeta por fila, parte de arriba blanca y abajo naranja */
@media (max-width: 900px) {
  .p-cmp { gap: 24px; }
  .p-cmp__legend { display: flex; justify-content: center; gap: 20px; font: 500 14px/20px var(--font-secondary); color: var(--grey-800); }
  .p-cmp__legend span { display: inline-flex; align-items: center; gap: 8px; }
  .p-cmp__legend i { width: 12px; height: 12px; border-radius: 3px; background: #e5e5e5; }
  .p-cmp__legend span + span i { background: var(--primary-500); }

  .p-cmp__table { display: flex; flex-wrap: wrap; border-radius: 0; overflow: visible; box-shadow: none; }
  .p-cmp__table > * { width: 100%; }
  .p-cmp__label, .p-cmp__label:not(:first-of-type) {
    margin-top: 16px; padding: 18px 20px 6px; background: var(--white);
    border: 1px solid var(--grey-200); border-bottom: 0; border-radius: 20px 20px 0 0;
  }
  .p-cmp__label:first-of-type { margin-top: 0; }
  .p-cmp__cell--other { padding: 6px 20px 18px; background: var(--white); border: 1px solid var(--grey-200); border-top: 0; border-bottom: 0; }
  .p-cmp__cell--capta { padding: 18px 20px; border-radius: 0 0 20px 20px; box-shadow: 0 14px 30px -16px rgba(229, 116, 17, .55); }
  .p-cmp__cell--other::before, .p-cmp__cell--capta::before { content: none; }
  .p-cmp__cell { flex-wrap: nowrap; }
  .p-cmp__cell p { font-size: 15px; line-height: 22px; }
  .p-cmp__cell--capta p { font-size: 16px; line-height: 24px; }

  /* Resultado: dos mitades, blanca y negra */
  .p-cmp__label:last-of-type { display: none; }
  .p-cmp__result { width: 50% !important; margin-top: 16px; padding: 18px 20px; font-size: 18px; line-height: 24px; display: flex; flex-direction: column; gap: 4px; }
  .p-cmp__result small { display: block; font: 600 11px/14px var(--font-secondary); letter-spacing: .1em; text-transform: uppercase; }
  .p-cmp__m { display: block; }
  .p-cmp__d { display: none; }
  .p-cmp__result--other { background: var(--white); border: 1px solid var(--grey-200); border-right: 0; border-radius: 20px 0 0 20px; color: #8a8178; }
  .p-cmp__result--other small { color: #a3a3a3; }
  .p-cmp__result--capta { background: var(--grey-950); border-radius: 0 20px 20px 0; color: var(--white); box-shadow: 0 14px 30px -14px rgba(229, 116, 17, .5); }
  .p-cmp__result--capta small { color: var(--primary-500); }
}
.p-cmp__label--result { padding-top: 34px; }
@media (max-width: 900px) {
  .p-cmp__table { flex-direction: row; }
  .p-cmp__label--result { display: none; }
  .p-cmp__label:first-of-type { margin-top: 0; }
}
/* Resultado: mismo texto en web y móvil */
.p-cmp__m { display: block; }
/* Móvil: el título de cada fila va fuera de la tarjeta, como encabezado propio */
@media (max-width: 900px) {
  .p-cmp__label, .p-cmp__label:not(:first-of-type) {
    margin-top: 28px; padding: 0 4px 10px; background: none; border: 0; border-radius: 0;
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; letter-spacing: .12em; color: var(--grey-800);
  }
  .p-cmp__label::after { content: ""; flex: 1; height: 1px; background: var(--grey-200); }
  .p-cmp__label:first-of-type { margin-top: 4px; }
  .p-cmp__cell--other { padding: 16px 20px; border: 1px solid var(--grey-200); border-bottom: 0; border-radius: 20px 20px 0 0; }
  .p-cmp__label--result { display: none; }
}
/* Tarjetas naranjas de la comparativa con el mismo fondo que la tarjeta del hero */
.p-cmp__bg--capta {
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, var(--hero-orange) 0%, var(--primary-500) 100%);
}
@media (max-width: 900px) {
  .p-cmp__cell--capta {
    background:
      radial-gradient(70% 60% at 0% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 100%),
      linear-gradient(135deg, var(--hero-orange) 0%, var(--primary-500) 100%);
  }
}
/* Igual que la tarjeta del hero: sin sombra */
.p-cmp__bg--capta, .p-cmp__cell--capta, .p-cmp__result--capta { box-shadow: none; }
@media (max-width: 900px) { .p-cmp__cell--capta, .p-cmp__result--capta { box-shadow: none; } }
/* Títulos de cada fila en naranja */
.p-cmp__label { color: var(--primary-500); }
@media (max-width: 900px) { .p-cmp__label, .p-cmp__label:not(:first-of-type) { color: var(--primary-500); } .p-cmp__label::after { background: #fceac9; } }
@media (max-width: 900px) { .p-cmp__table .p-cmp__label::after { background: #fceac9; } }

/* ==========================================================
   Por qué CAPTA · móvil: dos tarjetas (Otras soluciones vs CAPTA). En web se usa la tabla.
   ========================================================== */
.p-cmpm { display: none; }
@media (max-width: 900px) {
  .p-cmp__legend, .p-cmp__table { display: none !important; }
  .p-cmpm { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .p-cmpm__card { width: 100%; padding: 26px 20px 24px; border-radius: 24px; }
  .p-cmpm__card h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 24px/32px var(--font-primary); letter-spacing: -0.01em; }
  .p-cmpm__card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
  .p-cmpm__card li { position: relative; padding-left: 26px; font-size: 15px; line-height: 22px; }
  .p-cmpm__result { margin: 18px 0 0; padding-top: 16px; font: 700 22px/28px var(--font-primary); letter-spacing: -0.02em; }

  .p-cmpm__card--other { background: #f5f4f1; border: 1px solid var(--grey-200); }
  .p-cmpm__card--other h3 { color: #525252; }
  .p-cmpm__card--other li { color: var(--grey-600); }
  .p-cmpm__card--other li::before { content: "–"; position: absolute; left: 4px; top: 0; color: #a3a3a3; }
  .p-cmpm__card--other .p-cmpm__result { border-top: 1px solid var(--grey-200); color: #6b6560; }

  .p-cmpm__vs { position: relative; z-index: 1; margin: -14px 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--grey-200); box-shadow: 0 6px 16px rgba(20, 21, 26, .08); font: 700 15px/1 var(--font-primary); color: #525252; }

  .p-cmpm__card--capta {
    padding-top: 30px; color: var(--white);
    background:
      radial-gradient(70% 60% at 0% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 100%),
      linear-gradient(135deg, var(--hero-orange) 0%, var(--primary-500) 100%);
  }
  .p-cmpm__card--capta h3 { font-size: 28px; color: var(--white); }
  .p-cmpm__card--capta .eco-ia { font-size: 12px; padding: 4px 8px; }
  .p-cmpm__sub { margin: 8px 0 0; font-style: italic; font-weight: 500; font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .92); }
  .p-cmpm__card--capta li { color: var(--white); }
  .p-cmpm__card--capta li b { font-weight: 600; }
  .p-cmpm__card--capta li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .p-cmpm__card--capta .p-cmpm__result { border-top: 1px solid rgba(255, 255, 255, .3); color: var(--white); font-size: 26px; line-height: 32px; }
}

/* Ecosistema: tarjetas de las animaciones sin borde naranja/crema, solo su sombra */
.p-eco .eco-chat, .p-eco .eco-data, .p-eco .eco-seg__event, .p-eco .eco-seg__list, .p-eco .eco-step,
.p-eco .eco-meta, .p-eco .eco-opt, .p-eco .eco-ana, .p-eco .eco-kpi, .p-eco .eco-appt {
  border: 0;
  box-shadow: 0 1px 3px rgba(20, 21, 26, .06), 0 12px 28px rgba(20, 21, 26, .08);
}
.p-eco .eco-kpi.is-flash { box-shadow: 0 1px 3px rgba(20, 21, 26, .06), 0 12px 28px rgba(20, 21, 26, .08); }

/* ==========================================================
   Integraciones (referencia del usuario, estilos del Figma)
   ========================================================== */
.p-int { position: relative; overflow: hidden; padding: 80px 0 40px; }
.p-int__stage { position: relative; max-width: 1400px; height: 760px; margin: 0 auto; }

/* Círculos concéntricos; el segundo con el arco naranja */
.p-int__rings i { position: absolute; left: 50%; top: 400px; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid #efe7df; }
.p-int__rings i:nth-child(1) { width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(254, 247, 236, .9), rgba(254, 247, 236, 0)); }
.p-int__rings i:nth-child(2) { width: 930px; height: 930px; }
.p-int__rings i:nth-child(3) { width: 1100px; height: 1100px; border-color: transparent; border-top-color: #f2b27a; border-left-color: #f2b27a; border-right-color: #f2b27a; border-width: 1.5px; animation: p-int-spin 40s linear infinite; }
.p-int__rings i:nth-child(4) { width: 1280px; height: 1280px; }
@keyframes p-int-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Apps alrededor */
.p-int__app { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); animation: p-int-float 6s ease-in-out var(--d) infinite; }
@keyframes p-int-float { 50% { translate: 0 -6px; } }
.p-int__logo { position: relative; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--grey-200); box-shadow: 0 10px 24px rgba(20, 21, 26, .08); transition: box-shadow .35s ease, transform .35s ease; }
.p-int__logo img { width: 34px; height: 34px; }
/* Los logos de la carpeta traen margen interno: se recortan */
.p-int__logo--crop img { width: 56px; height: 56px; clip-path: inset(19% round 9px); margin: 0; }
.p-int__name { font: 500 14px/20px var(--font-secondary); color: #8a8178; white-space: nowrap; }
.p-int__app.is-hit .p-int__logo { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(229, 116, 17, .15), 0 12px 28px rgba(229, 116, 17, .25); }

/* Encabezado al centro */
.p-int__head { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding-top: 50px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.p-int__head .chip { border-color: rgba(229, 116, 17, .3); }
.p-int__head h2 { margin: 0; font: 700 56px/64px var(--font-primary); letter-spacing: -0.035em; color: var(--grey-950); }
.p-int__head h2 span { color: var(--primary-500); }
.p-int__head p { margin: -8px 0 0; max-width: 600px; font-size: 18px; line-height: 26px; color: var(--grey-600); }

/* Notificaciones apiladas */
.p-int__feed { position: absolute; z-index: 3; left: 50%; top: 500px; width: 390px; height: 240px; transform: translateX(-50%); }
.p-int__note { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border-radius: 14px; box-shadow: 0 1px 3px rgba(20, 21, 26, .06), 0 14px 30px rgba(20, 21, 26, .10); transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .6s ease; }
.p-int__note .p-int__logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: none; flex-shrink: 0; }
.p-int__note .p-int__logo img { width: 22px; height: 22px; }
.p-int__note .p-int__logo--crop img { width: 36px; height: 36px; clip-path: inset(19% round 6px); }
.p-int__note div { flex: 1; min-width: 0; }
.p-int__note strong { display: block; font: 500 14px/20px var(--font-secondary); color: var(--grey-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-int__note small { font-size: 12px; line-height: 16px; color: var(--grey-600); }
.p-int__note .eco-ia { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .p-int__app, .p-int__rings i { animation: none; } }

@media (max-width: 1200px) {
  .p-int__head h2 { font-size: 40px; line-height: 48px; }
  .p-int__head { max-width: 560px; }
  .p-int__app:nth-child(n) { --s: 1; }
  .p-int__logo { width: 58px; height: 58px; }
}

/* Móvil: encabezado arriba, apps en dos filas alrededor del círculo y notificaciones abajo */
@media (max-width: 900px) {
  .p-int { padding: 72px 0 24px; }
  .p-int__stage { height: auto; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }
  .p-int__rings i { top: 330px; }
  .p-int__rings i:nth-child(1) { width: 380px; height: 380px; }
  .p-int__rings i:nth-child(2) { width: 560px; height: 560px; }
  .p-int__rings i:nth-child(3) { width: 700px; height: 700px; }
  .p-int__rings i:nth-child(4) { display: none; }
  .p-int__head { order: 1; padding-top: 0; }
  .p-int__head h2 { font-size: 32px; line-height: 40px; }
  .p-int__head p { font-size: 16px; line-height: 24px; }
  .p-int__apps { order: 2; position: relative; z-index: 2; margin-top: 32px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 6px; width: 100%; }
  .p-int__app { position: static; transform: none; gap: 6px; }
  .p-int__logo { width: 50px; height: 50px; }
  .p-int__logo img { width: 26px; height: 26px; }
  .p-int__logo--crop img { width: 42px; height: 42px; }
  .p-int__name { font-size: 10.5px; line-height: 14px; white-space: normal; text-align: center; max-width: 64px; }
  .p-int__feed { order: 3; position: relative; left: auto; top: auto; transform: none; margin-top: 32px; width: 100%; max-width: 380px; height: 230px; }
}
/* Web: notificaciones justo debajo del párrafo */
@media (min-width: 901px) {
  .p-int__feed { top: 410px; }
  .p-int__stage { height: 680px; }
}
@media (min-width: 901px) { .p-int__feed { top: 350px; } .p-int__stage { height: 620px; } }
/* Web: los círculos se recortan un poco arriba de la pastilla y, a la misma distancia, abajo de los íconos */
@media (min-width: 901px) {
  .p-int__rings { position: absolute; inset: 0; overflow: hidden; clip-path: inset(26px 0 calc(100% - 586px) 0); }
}
/* Íconos de integraciones sin nombre */
.p-int__apps .p-int__name { display: none; }
@media (min-width: 901px) { .p-int__rings { clip-path: inset(26px 0 calc(100% - 558px) 0); } }
@media (max-width: 900px) { .p-int__apps { gap: 14px 6px; } }

/* Botones del header dentro del menú móvil */
.nav__cta { display: none; }
@media (max-width: 1024px) {
  .nav__cta { display: grid; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--black-10); }
  .nav__cta .btn { width: 100%; }
}

/* Seis opciones en el menú: sin saltos de línea y más compacto en laptops chicas */
.nav__link { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1240px) {
  .nav { gap: 0; padding: 0; }
  .nav__link { padding-inline: 10px; }
}
