/* agentic devs — landing
   Paleta tomada del logo (muestreo de pixeles del original):
     azul  #0f53eb · cian #00b4bc · verde #00bc9e · navy #06101f · claro #f8f8f8
   El degradado azul→cian es el mismo del wordmark "devs". */
:root {
  --azul: #0f53eb;
  --azul-claro: #4d86ff;
  --cian: #00b4bc;
  --verde: #00bc9e;
  --navy: #06101f;
  --navy-2: #0b1a2e;
  --navy-3: #12253d;
  /* Neutros con sesgo azul: un gris puro al lado de esta paleta se ve sucio. */
  --tinta: #0d1b2c;
  --gris: #5b6b7f;
  --gris-claro: #93a3b6;
  --linea: #dfe6ee;
  --claro: #f8f8f8;
  --blanco: #fff;
  --degradado: linear-gradient(100deg, var(--azul) 0%, var(--cian) 100%);
  --ancho: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: Poppins, Manrope, sans-serif; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
a { color: inherit; }
img, svg { max-width: 100%; }
.env { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 24px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,16,31,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav .env { display: flex; align-items: center; gap: 28px; height: 72px; }
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marca svg { width: 32px; height: 32px; }
.marca b { font-family: Poppins, sans-serif; font-weight: 600; font-size: 21px; color: #fff; letter-spacing: -.02em; }
.marca b span { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { margin-left: auto; display: flex; gap: 30px; }
.nav nav a { color: #b9c6d6; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav nav a:hover { color: #fff; }
.nav .btn { margin-left: 8px; }
@media (max-width: 900px) { .nav nav { display: none; } }

/* ---------- Móvil ----------
   El boton "Agendar una demo" se deformaba: el texto no cabia en el ancho que
   le quedaba y se montaba sobre si mismo. La causa era doble — flex permitia
   encogerlo por debajo de su contenido, y el texto podia partirse. */
.btn { white-space: nowrap; flex: 0 0 auto; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .env { padding-inline: 18px; }
  .nav .env { gap: 12px; height: 64px; }
  .marca svg { width: 28px; height: 28px; }
  .marca b { font-size: 18px; }
  /* La marca cede espacio antes que el boton: el logo se reconoce aunque se
     recorte, un boton a medias no se puede tocar. */
  .marca { min-width: 0; overflow: hidden; }
  .nav .btn { margin-left: auto; padding: 10px 15px; font-size: 13.5px; }

  .hero .env { padding: 68px 18px 76px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .hero p.bajada { font-size: 17.5px; }
  .acciones { flex-direction: column; align-items: stretch; }
  .acciones .btn { justify-content: center; }

  .seccion { padding: 68px 0; }
  .titulo { margin-bottom: 38px; }
  .titulo .kicker { font-size: 13.5px; letter-spacing: .11em; }
  .titulo h2 { font-size: clamp(1.7rem, 6.6vw, 2.1rem); }
  .titulo p { font-size: 17px; }
  .remate { font-size: 17.5px; padding: 24px 22px; }
  .dolor, .modulo, .agente, .plan { padding: 24px 21px; }
  .plan .lema { min-height: auto; }
  .cierre .env { padding: 72px 18px; }
  .cita { font-size: 17.5px; }
  .pie .env { gap: 20px; }
  .pie .der { margin-left: 0; gap: 14px; }
}

/* Muy angosto: el nombre completo no entra junto al boton. */
@media (max-width: 380px) {
  .marca b { font-size: 16px; }
  .nav .btn { padding: 9px 13px; font-size: 12.5px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px;
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer;
  background: var(--degradado); color: #fff;
  box-shadow: 0 6px 22px rgba(15,83,235,.32);
  transition: transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,83,235,.42); }
.btn.fantasma {
  background: transparent; color: #dce6f2;
  border: 1px solid rgba(255,255,255,.22); box-shadow: none;
}
.btn.fantasma:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 460px at 76% 34%, rgba(15,83,235,.30), transparent 62%),
              radial-gradient(620px 380px at 12% 82%, rgba(0,188,158,.18), transparent 62%);
  pointer-events: none;
}
.hero .env { position: relative; z-index: 2; padding: 108px 24px 116px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 100px;
  background: rgba(0,188,158,.12); border: 1px solid rgba(0,188,158,.30);
  color: #6fe6cd; font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 26px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(0,188,158,.22); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.05rem); line-height: 1.03; font-weight: 700; margin: 0 0 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #5c93ff, #2ee6c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.bajada { font-size: 19.5px; line-height: 1.62; color: #b6c6d8; margin: 0 0 36px; max-width: 33rem; }
.acciones { display: flex; gap: 14px; flex-wrap: wrap; }
.nota-hero { margin-top: 26px; font-size: 14.5px; color: #7e91a8; }

/* Consola de chat del hero */
.consola {
  background: linear-gradient(168deg, #0d1c30, #081525);
  border: 1px solid rgba(255,255,255,.10); border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0,0,0,.5);
  overflow: hidden;
}
.consola header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 17px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.consola header i { width: 10px; height: 10px; border-radius: 50%; background: #2c3f56; }
.consola header i:nth-child(1) { background: #ff5f57; }
.consola header i:nth-child(2) { background: #febc2e; }
.consola header i:nth-child(3) { background: #28c840; }
.consola header span { margin-left: 8px; font-size: 13px; color: #7f93aa; font-family: "IBM Plex Mono", monospace; }
.chat { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.burbuja { max-width: 84%; padding: 11px 15px; border-radius: 15px; font-size: 15px; line-height: 1.5; }
.burbuja.cliente { align-self: flex-end; background: var(--degradado); color: #fff; border-bottom-right-radius: 5px; }
.burbuja.bot { align-self: flex-start; background: rgba(255,255,255,.07); color: #d6e2f0; border-bottom-left-radius: 5px; border: 1px solid rgba(255,255,255,.06); }
.burbuja.voz { display: flex; align-items: center; gap: 10px; }
.onda { display: flex; align-items: center; gap: 3px; height: 20px; }
.onda i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.85); animation: onda 1.1s ease-in-out infinite; }
@keyframes onda { 0%,100% { height: 5px; } 50% { height: 17px; } }
.escribiendo { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: #62809e; animation: latir 1.3s infinite; }
@keyframes latir { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Secciones ---------- */
.seccion { padding: 104px 0; }
.seccion.oscura { background: var(--navy); color: #fff; }
.seccion.suave { background: var(--claro); }
.titulo { max-width: 44rem; margin-bottom: 56px; }
.titulo .kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 15.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--azul); margin-bottom: 16px;
}
.oscura .titulo .kicker { color: #38d6bd; }
.titulo h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.14; font-weight: 700; margin: 0 0 18px; }
.titulo p { font-size: 18.5px; color: var(--gris); margin: 0; line-height: 1.65; }
.oscura .titulo p { color: #a6b8cc; }
.centrado { margin-inline: auto; text-align: center; }

/* Dolores */
.dolores { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.dolor {
  padding: 30px 26px; border-radius: 15px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .25s, transform .25s;
}
.dolor:hover { border-color: rgba(0,188,158,.4); transform: translateY(-3px); }
.dolor .n {
  font-family: "IBM Plex Mono", monospace; font-size: 26px; font-weight: 600;
  color: #38d6bd; letter-spacing: .04em; line-height: 1;
}
.dolor h3 { font-size: 20px; margin: 14px 0 10px; font-weight: 600; }
.dolor p { margin: 0; font-size: 16.5px; color: #a2b4c8; line-height: 1.6; }
.remate {
  margin-top: 44px; padding: 30px 34px; border-radius: 15px;
  background: rgba(15,83,235,.10); border-left: 3px solid var(--azul);
  font-size: 20px; line-height: 1.55; color: #e2ecf8;
}
.remate b { color: #fff; }

/* Módulos */
.modulos { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.modulo {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 15px;
  padding: 27px 25px; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.modulo:hover { border-color: rgba(15,83,235,.42); box-shadow: 0 12px 34px rgba(13,27,44,.09); transform: translateY(-3px); }
.modulo .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(15,83,235,.11), rgba(0,180,188,.11));
  margin-bottom: 18px;
}
.modulo .ico svg { width: 24px; height: 24px; display: block; }
/* En las dos tarjetas destacadas el icono toma el verde, para que la vista
   encuentre de inmediato los modulos con agente. */
.modulo.destacado .ico { background: linear-gradient(135deg, rgba(0,188,158,.16), rgba(0,180,188,.12)); }
.modulo.destacado .ico svg { stroke: #018a74; }
.modulo h3 { font-size: 19.5px; margin: 0 0 8px; font-weight: 600; }
.modulo p { margin: 0; font-size: 16px; color: var(--gris); line-height: 1.58; }
.modulo.destacado { border-color: rgba(0,188,158,.5); box-shadow: 0 0 0 1px rgba(0,188,158,.16); }
.etiqueta {
  display: inline-block; margin-bottom: 11px; padding: 4px 10px; border-radius: 100px;
  background: rgba(0,188,158,.12); color: #018a74;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

/* Agentes */
.agentes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.agente {
  display: flex; gap: 17px; padding: 25px 24px; border-radius: 15px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  transition: background .25s, border-color .25s;
}
.agente:hover { background: rgba(255,255,255,.06); border-color: rgba(77,134,255,.42); }
.agente .punto {
  flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; margin-top: 7px;
  background: var(--azul-claro); box-shadow: 0 0 0 5px rgba(77,134,255,.14);
}
.agente.vivo .punto { background: var(--verde); box-shadow: 0 0 0 5px rgba(0,188,158,.18); }
.agente h3 { font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.agente p { margin: 0; font-size: 16.5px; color: #a2b4c8; line-height: 1.58; }
.chip {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px;
}
.chip.ya { background: rgba(0,188,158,.16); color: #4fdcc2; }
.chip.pronto { background: rgba(255,255,255,.07); color: #8fa3ba; }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: start; }
.plan {
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: 17px; padding: 34px 30px; position: relative;
}
.plan.top { border-color: transparent; box-shadow: 0 0 0 2px var(--azul), 0 20px 50px rgba(15,83,235,.16); }
.plan .cinta {
  position: absolute; top: -13px; left: 30px; padding: 5px 13px; border-radius: 100px;
  background: var(--degradado); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.plan h3 { font-size: 26px; margin: 0 0 7px; font-weight: 700; }
.plan .lema { font-size: 17.5px; color: var(--gris); margin: 0 0 24px; min-height: 3rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 11px; font-size: 16.5px; align-items: flex-start; line-height: 1.5; }
.plan li svg { flex: 0 0 auto; margin-top: 4px; }

/* Cierre */
.cierre { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cierre::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 400px at 50% 0%, rgba(15,83,235,.28), transparent 66%);
}
.cierre .env { position: relative; padding: 100px 24px; text-align: center; }
.cierre h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 20px; font-weight: 700; }
.cita {
  max-width: 47rem; margin: 0 auto 38px; font-size: 19.5px; line-height: 1.68; color: #b6c6d8;
}
.cita b { color: #fff; }

/* Pie */
.pie { background: #040b16; color: #7e91a8; padding: 52px 0 40px; font-size: 15px; }
.pie .env { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.pie .marca b { font-size: 19px; }
.pie .tag { color: #5f7186; }
.pie .der { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.pie a { color: #9db0c6; text-decoration: none; }
.pie a:hover { color: #fff; }

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