/* ============================================================
   Nexus Sales AI — Sitio público (nexus-genai.com)
   ============================================================
   Misma paleta y tipografía que la consola: quien llega acá y
   después entra a su cuenta tiene que sentir que es el mismo lugar.
   ============================================================ */

:root {
  --noche:      #18223A;
  --noche-2:    #24304C;
  --noche-tinta:#E9ECF2;
  --papel:      #F3F4EF;
  --superficie: #FFFFFF;
  --tinta:      #18223A;
  --tinta-2:    #4D576A;
  --tinta-3:    #7A8394;
  --linea:      #D9DCD2;
  --jade:       #0E6E54;
  --jade-vivo:  #3FB68E;
  --jade-suave: #DCEFE7;
  --resaltador: #F2C14E;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texto: "Figtree", "Segoe UI", system-ui, sans-serif;

  --ancho: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --papel:      #10151F;
    --superficie: #171E2B;
    --tinta:      #E9ECF2;
    --tinta-2:    #AEB6C4;
    --tinta-3:    #808A9C;
    --linea:      #2A3344;
    --jade:       #4FBF98;
    --jade-suave: #17332A;
    --noche:      #1C2742;
    --noche-2:    #2A3756;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--texto);
  font-size: 18px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); color: var(--tinta); }
h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700; font-stretch: 85%;
  line-height: 1.02; letter-spacing: -.02em;
  max-width: 18ch;
}
h3 { font-size: 1.3rem; font-weight: 650; line-height: 1.2; }
p, li, dd { max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--resaltador); outline-offset: 3px; border-radius: 4px; }

.saltar {
  position: absolute; left: 12px; top: -60px; padding: 10px 14px; z-index: 50;
  background: var(--noche); color: #fff; border-radius: 8px;
}
.saltar:focus { top: 12px; }

section, .cabecera, .pie {
  width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter);
}
section { padding-block: clamp(64px, 9vw, 120px); }
.intro { color: var(--tinta-2); margin-top: 16px; font-size: 1.1rem; }

/* ── Botones ── */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--jade); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--jade);
  transition: transform .15s ease, background .15s ease;
}
@media (prefers-color-scheme: dark) { .boton { color: #0D1A15; } }
.boton:hover { transform: translateY(-1px); }
.boton:active { transform: translateY(1px); }
.boton.secundario { background: transparent; color: var(--tinta); border-color: var(--linea); }
.boton.secundario:hover { border-color: var(--tinta-3); }
.boton.chico { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.letra-chica { font-size: .9rem; color: var(--tinta-3); margin-top: 14px; }

/* ── Cabecera ── */
.cabecera {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo .b1 { fill: var(--jade); }
.logo .b2 { fill: var(--resaltador); }
.logo span { font-family: var(--display); font-size: 1.6rem; font-weight: 750; font-stretch: 80%; letter-spacing: -.03em; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.boton) { text-decoration: none; color: var(--tinta-2); font-weight: 500; }
.menu a:not(.boton):hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 5px; }

/* ── Portada ── */
.portada {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-top: clamp(28px, 5vw, 64px);
}
.portada h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  font-weight: 750; font-stretch: 78%;
  line-height: .95; letter-spacing: -.035em;
  max-width: 11ch;
}
.bajada { font-size: 1.2rem; color: var(--tinta-2); margin-top: 26px; max-width: 46ch; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* La noche: el panel oscuro es la madrugada en la que el agente sigue atendiendo. */
.noche {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--noche); color: var(--noche-tinta);
  border-radius: 32px; padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 22px;
}
/* La hora es el dato que cuenta la historia: va grande, y el teléfono se apoya encima. */
.noche::before {
  content: "02:14"; position: absolute; z-index: -1; left: .18em; top: .02em;
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(6.5rem, 11vw, 9.5rem); line-height: 1; letter-spacing: -.04em;
  color: #34446B; pointer-events: none;
}
.telefono {
  margin-top: clamp(62px, 7vw, 92px); margin-left: auto; width: min(100%, 430px);
  background: rgba(10, 15, 28, .72); border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px; overflow: hidden; backdrop-filter: blur(6px);
}
.telefono-barra {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.telefono-barra b { display: block; font-size: 1rem; color: #fff; }
.telefono-barra small { display: block; font-size: .8rem; color: #A9B2C5; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--jade-vivo); color: var(--noche); font-weight: 700; font-size: .85rem;
}
.hora { margin-left: auto; font-size: .85rem; color: #A9B2C5; font-variant-numeric: tabular-nums; }

.chat { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 18px; min-height: 360px; }
.msj {
  max-width: 86%; padding: 9px 13px; font-size: .92rem; line-height: 1.42;
  border-radius: 18px;
}
.msj.entra { align-self: flex-start; background: #2B3754; color: #EEF1F6; border-bottom-left-radius: 6px; }
.msj.sale  { align-self: flex-end; background: var(--jade-vivo); color: #0B1F18; border-bottom-right-radius: 6px; }
.msj.pago { display: grid; gap: 2px; background: #fff; color: var(--noche); padding: 14px 16px; }
.pago-prod { font-weight: 700; }
.pago-precio { font-family: var(--display); font-size: 1.5rem; font-weight: 750; font-stretch: 85%; }
.pago-boton {
  margin-top: 8px; padding: 9px 12px; border-radius: 10px; text-align: center;
  background: var(--noche); color: #fff; font-weight: 700; font-size: .88rem;
}
.escribiendo { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 18px; background: #2B3754; }
.escribiendo.sale { align-self: flex-end; background: var(--jade-vivo); }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; animation: punto 1s infinite; color: #EEF1F6; }
.escribiendo.sale i { color: #0B1F18; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 50% { opacity: 1; transform: translateY(-2px); } }

/* Mientras se reproduce, los mensajes que todavía no llegaron no se ven. */
.chat.reproduciendo .msj:not(.llego) { display: none; }
.msj.llego { animation: llega .28s ease-out; }
@keyframes llega { from { opacity: 0; transform: translateY(6px); } }

.noche figcaption { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.venta {
  background: var(--resaltador); color: var(--noche);
  font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: 1.25rem;
  padding: 2px 8px; border-radius: 4px; line-height: 1.3;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.noche figcaption span { font-size: .95rem; color: #B9C1D1; }
.repetir {
  margin-top: 6px; background: none; border: 0; padding: 0; cursor: pointer;
  color: #fff; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px;
}

/* ── Qué es Nexus: tres agentes conectados ── */
.que-es { border-top: 1px solid var(--linea); }
.que-es h2 { max-width: none; }
.que-es-texto { font-size: clamp(1.15rem, 1.6vw, 1.35rem); margin-top: 22px; max-width: 64ch; }
.que-es-texto b { color: var(--jade); font-weight: 650; }
.agentes {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px); margin-top: 48px;
}
.agentes li {
  position: relative; background: var(--superficie); border: 1px solid var(--linea);
  border-radius: 18px; padding: 26px 24px 24px;
}
.agentes li:not(:last-child)::after {
  /* La conexión entre un agente y el siguiente. */
  content: ""; position: absolute; top: 50px; right: calc(-1 * clamp(20px, 3vw, 36px)); width: clamp(20px, 3vw, 36px);
  height: 2px; background: repeating-linear-gradient(90deg, var(--jade-vivo) 0 6px, transparent 6px 11px);
}
.agente-marca {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--jade-suave); color: var(--jade);
  font-family: var(--display); font-weight: 750; font-size: 1.35rem;
}
.agentes h3 { margin-top: 18px; }
.agentes p { margin-top: 10px; color: var(--tinta-2); font-size: 1rem; }
.agentes b { color: var(--tinta); font-weight: 600; }
.que-es-pie { margin-top: 28px; color: var(--tinta-2); font-size: 1rem; }

/* ── Miedos ── */
.miedos-lista {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 80px);
  margin-top: 48px;
}
.miedos-lista > div { padding-block: 28px; border-top: 1px solid var(--linea); }
.miedos-lista dt {
  font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600; font-stretch: 85%; letter-spacing: -.015em; color: var(--tinta-3);
  text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--jade);
}
.miedos-lista dd { margin-top: 10px; color: var(--tinta); }

/* ── Cómo empezás: es una secuencia real, por eso va numerada ── */
.pasos {
  list-style: none; counter-reset: paso;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px;
}
.pasos li { counter-increment: paso; position: relative; padding-top: 74px; }
.pasos li::before {
  content: counter(paso); position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 750; font-size: 1.5rem;
  background: var(--superficie); border: 2px solid var(--jade); color: var(--jade);
}
.pasos li:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 64px; right: -16px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--linea) 0 8px, transparent 8px 14px);
}
.pasos p { margin-top: 10px; color: var(--tinta-2); font-size: 1rem; }

/* ── Lo que hace y lo que no ── */
.trato-columnas {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px;
  background: var(--superficie); border: 1px solid var(--linea); border-radius: 28px; overflow: hidden;
}
.trato-columnas > div { padding: clamp(24px, 4vw, 44px); }
.no-hace { border-left: 1px solid var(--linea); }
.trato-columnas ul { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.trato-columnas li { position: relative; padding-left: 34px; font-size: 1rem; }
.hace li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--jade-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%230E6E54' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.no-hace li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 14px; height: 2px; background: var(--tinta-3);
}

/* ── Planes ── */
.planes-lista {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px;
  border: 1px solid var(--linea); border-radius: 28px; overflow: hidden; background: var(--superficie);
}
.planes-lista:empty { display: none; }
.plan { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 6px; }
.plan + .plan { border-left: 1px solid var(--linea); }
.plan h3 { font-size: 1.15rem; color: var(--tinta-2); font-weight: 600; }
.plan-precio {
  font-family: var(--display); font-size: clamp(2.2rem, 3.6vw, 2.9rem); font-weight: 750;
  font-stretch: 80%; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.plan-precio small { font-family: var(--texto); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--tinta-2); }
.plan-usd { font-size: .9rem; color: var(--tinta-3); }
.plan ul { list-style: none; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 8px; font-size: 1rem; }
.plan ul li { padding-left: 18px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); }
.plan .boton { margin-top: auto; }

/* ── Cierre ── */
.cierre {
  max-width: none; background: var(--noche); color: var(--noche-tinta);
  padding-inline: max(var(--gutter), calc((100% - var(--ancho)) / 2 + var(--gutter)));
}
.cierre h2 { color: #fff; max-width: 16ch; }
.cierre p { margin: 16px 0 32px; color: #B9C1D1; font-size: 1.15rem; }
.cierre .boton { background: var(--resaltador); border-color: var(--resaltador); color: var(--noche); }

/* ── Pie ── */
.pie {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding-block: 36px 48px; font-size: .95rem; color: var(--tinta-2);
}
.pie-marca { display: flex; flex-direction: column; }
.pie-marca b { color: var(--tinta); }
.pie nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pie nav a { text-underline-offset: 4px; }

/* ── Pantallas chicas ── */
@media (max-width: 980px) {
  .portada { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .agentes { grid-template-columns: 1fr; }
  .agentes li:not(:last-child)::after {
    top: auto; bottom: calc(-1 * clamp(20px, 3vw, 36px)); right: auto; left: 48px;
    width: 2px; height: clamp(20px, 3vw, 36px);
    background: repeating-linear-gradient(180deg, var(--jade-vivo) 0 6px, transparent 6px 11px);
  }
  .pasos li:nth-child(2)::after { display: none; }
  .planes-lista { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--linea); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .menu a:not(.boton):not(.entrar) { display: none; }
  .menu { gap: 16px; }
  .miedos-lista, .trato-columnas { grid-template-columns: 1fr; }
  .no-hace { border-left: 0; border-top: 1px solid var(--linea); }
  .pasos { grid-template-columns: 1fr; }
  .pasos li { padding-top: 0; padding-left: 70px; min-height: 52px; }
  .pasos li::after { display: none; }
  .chat { min-height: 0; }
  .acciones .boton { flex: 1 1 100%; }
}
@media (max-width: 340px) {
  .menu .entrar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
