:root {
  --tinta: #121413;
  --tinta-2: #1b1e1d;
  --tinta-3: #262a28;
  --gris: #5f6662;
  --gris-2: #939995;
  --papel: #f3f2f6;
  --papel-2: #e8e6ee;
  --blanco: #ffffff;
  --violeta: #b46cf5;
  --violeta-2: #c592ff;
  --violeta-osc: #7a35c4;
  --lila: #ece2ff;
  --texto-osc: #eceeed;
  --texto-osc-2: #9fa6a2;
  --verde: #2fbf71;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --ancho: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
  --sombra: 0 1px 2px rgb(18 20 19 / .06), 0 8px 24px -12px rgb(18 20 19 / .18);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h2 span { display: block; margin-top: 8px; font-size: .5em; font-weight: 400; letter-spacing: -.01em; color: var(--gris-2); }
p { margin: 0; }
a { color: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border: 0;
  font: 600 15px var(--sans); padding: 13px 22px; border-radius: 999px; transition: background .2s, transform .1s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-lima { background: var(--violeta); color: var(--tinta); }
.btn-lima:hover { background: var(--violeta-2); box-shadow: 0 8px 24px -10px rgb(180 108 245 / .7); }
.btn-linea { color: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.btn-linea:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
.btn-chico { padding: 8px 16px; font-size: 14px; }

/* ---------- Avatar ---------- */
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--violeta) center / cover no-repeat; display: grid; place-items: center;
  font-weight: 600; font-size: 16px; color: var(--tinta); }
.avatar-xl { width: 100%; height: 100%; border-radius: 0; font-size: 96px; }

/* ---------- Cabecera tipo chat ---------- */
.cab { position: sticky; top: 0; z-index: 20; background: rgb(18 20 19 / .86); backdrop-filter: blur(14px); color: var(--texto-osc); border-bottom: 1px solid rgb(255 255 255 / .06); }
.cab-in { max-width: var(--ancho); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 20px; }
.cab-perfil { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.cab-txt { display: grid; line-height: 1.25; }
.cab-txt b { font-size: 15.5px; font-weight: 600; }
.cab-txt small { font-size: 12.5px; color: var(--texto-osc-2); display: flex; align-items: center; gap: 6px; }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }
.cab-nav { display: flex; gap: 26px; margin-left: auto; }
.cab-nav a { text-decoration: none; font-size: 14px; color: var(--texto-osc-2); transition: color .2s; }
.cab-nav a:hover { color: var(--texto-osc); }

/* ---------- Mensajes ---------- */
.msg { position: relative; max-width: 86%; width: fit-content; padding: 8px 12px 7px; border-radius: 16px; font-size: 15px; line-height: 1.45;
  background: var(--blanco); color: var(--tinta); box-shadow: 0 1px 1px rgb(18 20 19 / .06); }
.msg time { float: right; margin: 6px 0 -4px 12px; font-size: 10.5px; color: var(--gris-2); }
.msg.el { border-top-left-radius: 5px; }
.msg.yo { margin-left: auto; background: var(--lila); border-top-right-radius: 5px; }
.msg.yo time::after { content: ' ✓✓'; color: var(--violeta-osc); letter-spacing: -2px; }
.msg b { font-weight: 600; }
.tag { display: block; width: fit-content; margin-bottom: 3px; font-size: 11.5px; font-weight: 600 !important; letter-spacing: .01em; }
.tag-vender { color: #c2410c; }
.tag-tiempo { color: #0369a1; }
.tag-ordenar, .tag-curso { color: var(--violeta-osc); }

.chat { display: flex; flex-direction: column; gap: 5px; }
.chat .msg.yo + .msg.el, .chat .msg.el + .msg.yo { margin-top: 8px; }
.chat-fecha { align-self: center; margin: 2px 0 8px; padding: 3px 10px; border-radius: 7px; background: rgb(255 255 255 / .8); color: var(--gris); font-size: 11.5px; font-weight: 500; }
.chat-nota { align-self: center; margin-top: 12px; font-size: 12px; color: var(--gris-2); }

.js .chat-hero .msg:not(.visible):not(.escribiendo) { display: none; }
.chat-hero .msg.visible { animation: entra .35s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
.escribiendo { display: inline-flex; gap: 4px; padding: 12px 14px !important; }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--gris-2); animation: punto 1.2s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* ---------- Portada ---------- */
.hero { position: relative; background: var(--tinta); color: var(--texto-osc); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; width: 720px; height: 720px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(180 108 245 / .22), transparent); }
.hero-in { max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(64px, 8vw, 112px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.tachado { position: relative; color: var(--gris); font-weight: 400; white-space: nowrap; }
.tachado::after { content: ''; position: absolute; left: -1%; right: -1%; top: 54%; height: 3px; border-radius: 3px; background: var(--violeta); transform: rotate(-3deg); }
.hero h1 .resalta { color: var(--violeta-2); }
.bajada { margin-top: 24px; font-size: clamp(16.5px, 1.4vw, 18.5px); font-weight: 300; color: var(--texto-osc-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.chat-hero { padding: 22px 18px; border-radius: 24px; min-height: 480px; justify-content: flex-end;
  background: var(--tinta-2); border: 1px solid rgb(255 255 255 / .06); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
.chat-hero .chat-fecha { background: var(--tinta-3); color: var(--texto-osc-2); }

/* ---------- Secciones ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-in { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.sec-osc { background: var(--tinta); color: var(--texto-osc); }
.sec-osc h2 span, .sec-osc .sec-bajada { color: var(--texto-osc-2); }
.sec-claro { background: var(--blanco); }
.sec-bajada { margin-top: 14px; font-size: 17.5px; font-weight: 300; color: var(--gris); max-width: 34em; }

.pares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-top: 56px; }
.par { display: flex; flex-direction: column; gap: 6px; }
.par:nth-child(3n+2) { margin-top: 28px; }
.par .msg.yo { font-weight: 500; }
.par .msg.el { box-shadow: var(--sombra); }
.par .msg { max-width: 94%; }

.linea-tiempo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.hito { display: flex; flex-direction: column; }
.hito .chat-fecha { align-self: flex-start; background: rgb(180 108 245 / .16); color: var(--violeta-2); }
.sec-osc .msg.el { background: var(--tinta-3); color: var(--texto-osc); max-width: 100%; box-shadow: none; }
.sec-osc .msg.el { font-weight: 300; }
.hito .msg b { display: block; margin-bottom: 2px; color: var(--texto-osc); font-weight: 600; }

/* ---------- Caso ---------- */
.caso { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); margin-top: 48px; align-items: center; }
.navegador { display: block; border-radius: 14px; overflow: hidden; background: var(--blanco); box-shadow: 0 1px 2px rgb(18 20 19 / .08), 0 30px 60px -30px rgb(18 20 19 / .35); transition: transform .3s; }
.navegador:hover { transform: translateY(-4px); }
.nav-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--papel-2); }
.nav-barra i { width: 10px; height: 10px; border-radius: 50%; background: #d3d0da; }
.nav-barra span { flex: 1; margin-left: 10px; padding: 4px 12px; border-radius: 7px; background: var(--blanco); font-size: 12.5px; color: var(--gris); text-align: center; }
.navegador img { display: block; width: 100%; height: auto; }
.caso-rubro { font-size: 13.5px; color: var(--gris-2); margin-bottom: 6px; }
.caso-txt h3 { font-size: clamp(26px, 2.8vw, 34px); }
.caso-cliente { margin-top: 10px; font-weight: 600; color: var(--violeta-osc); }
.caso-visual { position: relative; padding-bottom: 40px; }
.pedido { position: absolute; right: -14px; bottom: 0; max-width: 300px; font-size: 13.5px; box-shadow: 0 1px 2px rgb(18 20 19 / .08), 0 20px 40px -18px rgb(18 20 19 / .4); }
.caso-txt > p:not(.caso-rubro):not(.caso-cliente) { margin-top: 14px; color: var(--gris); font-weight: 300; font-size: 16.5px; }
.hechos { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hechos li { position: relative; padding-left: 20px; font-size: 15.5px; }
.hechos li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--violeta); }
.caso-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.estado { font-size: 13px; color: var(--gris); display: inline-flex; align-items: center; gap: 7px; }
.estado::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f5a524; }
.en-curso { margin-top: 56px; max-width: 640px; padding: 14px 16px; box-shadow: var(--sombra); }

/* ---------- Soluciones como lista de chats ---------- */
.sol-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.demo-link { margin-top: 26px; color: var(--gris); font-size: 15px; }
.demo-link a { font-weight: 500; color: var(--violeta-osc); }
.chats { list-style: none; padding: 0; margin: 0; }
.chats li { display: flex; align-items: center; gap: 14px; padding: 14px 10px; border-radius: 14px; transition: background .2s; }
.chats li + li { box-shadow: 0 -1px 0 var(--papel-2); }
.chats li:hover { background: var(--papel); box-shadow: none; }
.chats li:hover + li { box-shadow: none; }
.ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 22%, white); }
.chats div { flex: 1; min-width: 0; }
.chats b { font-size: 16px; font-weight: 600; }
.chats p { color: var(--gris); font-size: 14.5px; font-weight: 300; line-height: 1.4; }
.chats small { text-align: right; font-size: 11.5px; color: var(--gris-2); line-height: 1.35; }

/* ---------- Demo en vivo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--papel-2); }
.demo-eti { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--violeta-osc); }
.demo-eti::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgb(239 68 68 / .15); animation: vivo 1.6s infinite; }
@keyframes vivo { 50% { box-shadow: 0 0 0 7px rgb(239 68 68 / 0); } }
.demo-txt h3 { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); }
.demo-txt > p:not(.demo-eti):not(.demo-nota) { margin-top: 14px; color: var(--gris); font-weight: 300; font-size: 16.5px; }
.demo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn-borde { color: var(--tinta); box-shadow: inset 0 0 0 1px var(--papel-2); background: var(--blanco); }
.btn-borde:hover { box-shadow: inset 0 0 0 1px var(--gris-2); }
.demo-nota { margin-top: 16px; font-size: 13px; color: var(--gris-2); }

.demo-visual { position: relative; padding: 0 0 40px; min-height: 520px; }
.laptop { margin: 0; width: 88%; border-radius: 14px; overflow: hidden; background: var(--blanco); box-shadow: 0 1px 2px rgb(18 20 19 / .08), 0 30px 60px -30px rgb(18 20 19 / .35); }
.laptop img { display: block; width: 100%; height: auto; }
.cel { position: absolute; right: 0; top: 40px; width: 270px; height: 548px; border-radius: 36px; overflow: hidden; background: #0a0b0b;
  box-shadow: 0 0 0 7px #0a0b0b, 0 50px 90px -30px rgb(18 20 19 / .55); }
/* la landing se dibuja a 375 px de ancho (como un celular real) y se achica para entrar en el marco */
.cel iframe { width: 375px; height: 761px; border: 0; background: var(--blanco); transform: scale(.72); transform-origin: 0 0; }

/* ---------- Quién ---------- */
.quien { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.foto-marco { aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: var(--tinta); box-shadow: 0 30px 60px -30px rgb(122 53 196 / .5); }
.lista { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.lista li { position: relative; padding-left: 20px; }
.lista li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--violeta); }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 36px; }
.faq details { padding: 5px 0; }
.faq summary { list-style: none; cursor: pointer; margin-left: auto; width: fit-content; max-width: 88%; padding: 9px 14px; border-radius: 16px 5px 16px 16px; background: var(--lila); font-weight: 500; font-size: 15.5px; transition: background .2s; }
.faq summary:hover { background: #e3d3ff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: 10px; color: var(--violeta-osc); }
.faq details[open] summary::after { content: '−'; }
.faq details .msg { margin-top: 6px; background: var(--papel); box-shadow: none; font-weight: 300; }

/* ---------- Diagnóstico en un teléfono ---------- */
.diag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.diag-alt { margin-top: 24px; color: var(--texto-osc-2); font-size: 15px; }
.diag-alt a { color: var(--violeta-2); font-weight: 500; }
.telefono { border-radius: 34px; background: var(--tinta-2); border: 1px solid rgb(255 255 255 / .1); box-shadow: 0 0 0 7px #0a0b0b, 0 50px 90px -40px rgb(180 108 245 / .45); overflow: hidden; display: flex; flex-direction: column; height: min(660px, 84vh); }
.tel-cab { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: var(--tinta-3); }
.reiniciar { margin-left: auto; background: none; border: 0; color: var(--texto-osc-2); font: 500 12.5px var(--sans); cursor: pointer; }
.reiniciar:hover { color: var(--texto-osc); }
.tel-chat { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 5px; background: var(--tinta-2); scroll-behavior: smooth; }
.tel-chat .msg.el { background: var(--tinta-3); color: var(--texto-osc); }
.tel-chat .msg.yo { background: var(--violeta); color: var(--tinta); }
.tel-chat .msg.yo time, .tel-chat .msg.yo time::after { color: rgb(18 20 19 / .55); }
.tel-chat .msg.el + .msg.yo, .tel-chat .msg.yo + .msg.el { margin-top: 8px; }
.tel-chat .escribiendo i { background: var(--texto-osc-2); }
.tel-respuestas { padding: 10px 12px 14px; background: var(--tinta-3); display: flex; flex-wrap: wrap; gap: 7px; max-height: 52%; overflow-y: auto; }
.tel-respuestas:empty { display: none; }
.chip { padding: 8px 13px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); background: transparent; color: var(--texto-osc); font: 400 14px/1.3 var(--sans); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--violeta); }
.chip[aria-pressed="true"] { background: var(--violeta); border-color: var(--violeta); color: var(--tinta); font-weight: 500; }
.chip-listo { width: 100%; text-align: center; }
.campos { width: 100%; display: grid; gap: 8px; }
.campos input, .campos textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent; background: var(--tinta-2); color: var(--texto-osc); font: 400 16px var(--sans); }
.campos textarea { min-height: 64px; resize: vertical; }
.campos input:focus, .campos textarea:focus { outline: none; border-color: var(--violeta); }
.campos input::placeholder, .campos textarea::placeholder { color: var(--gris-2); }
.campos .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.error { color: #ff9a8f; font-size: 13px; min-height: 1em; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: var(--texto-osc-2); border-top: 1px solid rgb(255 255 255 / .06); }
.pie-in { max-width: var(--ancho); margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 14px; }
.pie-marca { display: flex; align-items: center; gap: 10px; color: var(--texto-osc); font-weight: 600; font-size: 16px; }
.pie-marca .avatar { width: 30px; height: 30px; }
.pie-dato { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cab-nav { display: none; }
  .cab .btn { margin-left: auto; }
  .hero-in, .caso, .sol-grid, .quien, .diag, .demo { grid-template-columns: 1fr; }
  .chat-hero { min-height: 0; }
  .pares { grid-template-columns: 1fr 1fr; }
  .par:nth-child(3n+2) { margin-top: 0; }
  .par:nth-child(even) { margin-top: 28px; }
  .linea-tiempo { grid-template-columns: 1fr 1fr; }
  .foto-marco { max-width: 280px; }
  .telefono { max-width: 420px; width: 100%; margin: 0 auto; }
  .pie-dato { margin-left: 0; }
}
@media (max-width: 600px) {
  .pares, .linea-tiempo { grid-template-columns: 1fr; gap: 26px; }
  .par:nth-child(even) { margin-top: 0; }
  .campos .dos { grid-template-columns: 1fr; }
  .telefono { height: 80vh; }
  .chats small { display: none; }
  .demo-visual { min-height: 0; padding: 0; }
  .laptop { display: none; }
  .cel { position: relative; top: 0; margin: 0 auto; }
  .caso-visual { padding-bottom: 0; }
  .pedido { position: static; margin: -28px 8px 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .escribiendo i, .chat-hero .msg.visible { animation: none; }
}
