/* VendeLabs. Oscuro por defecto; una conversación real ocupa el lugar del retrato.
   Estructura: barra con esquinas, hero a dos columnas, franja de datos, filas a lo ancho. */
:root {
  --bg: #1b1d24;
  --bg-2: #222630;
  --surface: #262b36;
  --field: #1b1e26;
  --line: #343b49;
  --fg: #f4f6fb;
  --fg-2: #b3bac9;
  --fg-3: #929bad;
  --accent: #4a72ff;
  --accent-2: #6f9bff;
  --accent-text: #85a6ff;
  --accent-soft: rgba(74, 114, 255, .15);
  --on-accent: #ffffff;
  --good: #3ecf9a;
  --bad: #ff8b82;
  --footer: #171a21;
  --bubble-me: #2b4bb8;
  --shadow: 0 24px 60px rgba(6, 9, 18, .45);
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #eaeef7;
  --surface: #ffffff;
  --field: #ffffff;
  --line: #d3dae8;
  --fg: #141925;
  --fg-2: #475064;
  --fg-3: #626c80;
  --accent: #2f5bea;
  --accent-2: #4f7dfa;
  --accent-text: #2750d3;
  --accent-soft: rgba(47, 91, 234, .1);
  --good: #0b7a54;
  --bad: #b8322a;
  --footer: #e2e8f4;
  --bubble-me: #2f5bea;
  --shadow: 0 24px 50px rgba(40, 60, 120, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; letter-spacing: -.015em; }
a { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: stretch; height: 68px; }
.corner { width: 64px; flex: none; display: grid; place-items: center; background: var(--surface); border: 0; font-size: 1.05rem; transition: background .2s; }
.corner:hover { background: var(--accent-soft); }
.corner:focus-visible { outline-offset: -4px; }
.menu-btn { display: none; }
.top-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 28px; padding-inline: 24px; max-width: 1240px; margin-inline: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.3rem/1 var(--display); color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a { color: var(--fg-2); text-decoration: none; font-size: 1rem; padding: 8px 0; transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); }
#tema .sol { display: block; color: #ffc24a; } #tema .luna { display: none; }
[data-theme="light"] #tema .sol { display: none; } [data-theme="light"] #tema .luna { display: block; color: var(--accent); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 24px; border-radius: 12px; border: 1px solid transparent; font: 600 1.02rem/1.2 var(--display); text-decoration: none; transition: transform .18s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-1 { background: linear-gradient(100deg, #3a62f0, #4a72ff); color: #fff; }
.btn-1:hover { background: linear-gradient(100deg, #3159e6, #3f68f6); }
.btn-2 { border-color: var(--accent); color: var(--fg); background: transparent; }
.btn-2:hover { background: var(--accent-soft); }
.btn-s { min-height: 44px; padding: 8px 18px; font-size: .98rem; white-space: nowrap; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(760px 420px at 72% -4%, rgba(74, 114, 255, .24), transparent 70%), var(--bg); }
.hero-in { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; padding-block: 72px 84px; }
.hero-in > * { min-width: 0; }
.hello { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); margin-bottom: 18px; }
.hello i { width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
h1 { font-size: clamp(2.5rem, 5.1vw, 4.1rem); line-height: 1.06; }
h1 em, h2 em { font-style: normal; color: var(--accent-text); }
.lead { color: var(--fg-2); font-size: 1.16rem; max-width: 54ch; margin: 22px 0 32px; }
.canales { margin-top: 38px; color: var(--fg-3); font-size: 1rem; }
.canales ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.canales li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 10px; background: var(--surface); color: var(--fg); font-weight: 500; }

.demo { position: relative; padding: 26px 0; }
.demo-bg { position: absolute; inset: -12px -60px -12px -44px; width: calc(100% + 104px); height: calc(100% + 24px); max-width: none; }
.chat { position: relative; margin-inline: auto; max-width: 420px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.chat-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); }
.chat-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border: 0; background: none; color: var(--fg-3); font-size: .95rem; font-weight: 500; border-bottom: 3px solid transparent; padding: 0 4px; }
.chat-tabs button[aria-selected="true"] { color: var(--fg); border-color: var(--accent); }
.chat-tabs button:focus-visible { outline-offset: -4px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head svg { width: 38px; height: 38px; }
.chat-head b { display: block; font: 600 1.02rem/1.25 var(--display); }
.chat-head span { font-size: .92rem; color: var(--good); }
.msgs { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 392px; background: var(--bg); }
.m { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .98rem; line-height: 1.42; animation: in .38s both; animation-delay: calc(var(--i) * .16s); }
.m.c { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; }
.m.b { align-self: flex-end; background: var(--bubble-me); color: #fff; border-bottom-right-radius: 4px; }
.m.f { align-self: flex-end; width: 82%; max-width: 82%; background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.m.f b { display: block; font-family: var(--display); margin-bottom: 8px; }
.m.f dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; font-size: .94rem; font-variant-numeric: tabular-nums; }
.m.f dt { color: var(--fg-2); } .m.f dd { margin: 0; text-align: right; }
.m.f .t { color: var(--fg); font-weight: 600; }
.chat-foot { padding: 11px 18px; font-size: .92rem; color: var(--fg-2); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Franja */
.band { background: var(--bg-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: 44px; }
.facts li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.facts b { font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; }
.facts b i { font-style: normal; color: var(--accent-text); }
.facts span { color: var(--fg-2); line-height: 1.3; } .facts strong { display: block; color: var(--fg); font-weight: 600; }

/* Secciones */
.sec { padding-block: 96px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.head > div { max-width: 700px; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); color: var(--fg); }
.head p { color: var(--fg-2); margin-top: 14px; font-size: 1.1rem; max-width: 62ch; }

.dolor { border-top: 1px solid var(--line); }
.dolor li { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 24px; align-items: center; padding-block: 26px; border-bottom: 1px solid var(--line); }
.dolor li > * { min-width: 0; }
.dolor h3 { font-size: 1.28rem; margin-bottom: 6px; line-height: 1.25; }
.dolor p { color: var(--fg-2); }
.dolor .sol-t { color: var(--accent-text); }
.flecha { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }

.serv details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.serv { display: grid; gap: 12px; }
.serv summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.25fr) 30px; gap: 22px; align-items: center; padding: 22px 24px; cursor: pointer; list-style: none; border-radius: var(--r); }
.serv summary::-webkit-details-marker { display: none; }
.serv summary:hover h3 { color: var(--accent-text); }
.serv summary > .ic:first-child { font-size: 1.6rem; color: var(--accent-text); }
.serv h3 { font-size: 1.42rem; font-weight: 500; transition: color .2s; }
.serv summary p { color: var(--fg-2); }
.serv .mas { font-size: 1.15rem; transition: transform .25s; }
.serv details[open] .mas { transform: rotate(45deg); }
.serv .det { padding: 0 24px 26px 82px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.serv .det li, .lista li { display: flex; gap: 11px; color: var(--fg-2); }
.serv .det .ic, .lista .ic { color: var(--good); margin-top: .18em; }

.flujo { display: grid; grid-template-columns: 1fr 52px 1.1fr 52px 1fr; align-items: center; gap: 12px; }
.flujo > * { min-width: 0; }
.flujo .col { display: grid; gap: 12px; }
.flujo .nodo { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; font-weight: 500; }
.flujo .nodo .ic { color: var(--accent-text); font-size: 1.15rem; }
.flujo .cerebro { background: linear-gradient(150deg, #2f53d8, #4a72ff); color: #fff; border-radius: 22px; padding: 34px 28px; display: grid; gap: 12px; }
.flujo .cerebro h3 { font-size: 1.5rem; }
.flujo .cerebro svg { width: 52px; height: 52px; }
.flujo .con { display: grid; place-items: center; color: var(--accent-text); font-size: 1.4rem; }

.duo { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.duo > * { min-width: 0; }
.duo .txt p { color: var(--fg-2); margin: 16px 0 24px; font-size: 1.1rem; }
.lista { display: grid; gap: 13px; margin-bottom: 30px; }
.tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--display); font-weight: 600; }
thead th:nth-child(2) { color: var(--accent-text); }
tbody th { font-weight: 500; color: var(--fg); }
td { color: var(--fg-2); }
td:nth-child(2) { background: var(--accent-soft); color: var(--fg); }

.calc { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.calc > * { min-width: 0; }
.calc-in { padding: 36px; display: grid; gap: 26px; }
.calc label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.calc output { font: 600 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 26px; margin: 0; }
.calc-out { padding: 36px; background: linear-gradient(150deg, #2a4cc9, #4a72ff); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.calc-out b { font: 600 clamp(2.8rem, 6vw, 4.3rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-out .btn { background: #fff; color: #1c3796; align-self: flex-start; margin-top: 14px; }

.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: p; }
.pasos li { counter-increment: p; border-top: 3px solid var(--accent); padding-top: 22px; min-width: 0; }
.pasos li::before { content: counter(p); font: 600 2.6rem/1 var(--display); color: var(--accent-text); }
.pasos h3 { font-size: 1.25rem; margin: 14px 0 8px; } .pasos p { color: var(--fg-2); }
.rubros { display: flex; flex-wrap: wrap; gap: 10px; }
.rubros li { padding: 11px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 500 1.2rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s; color: var(--accent-text); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { color: var(--fg-2); padding-bottom: 24px; max-width: 74ch; }

/* Agenda y formularios */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; }
.agenda { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.agenda > * { min-width: 0; }
.paso-t { font: 600 1.2rem/1.3 var(--display); margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav b { display: block; font: 600 1.12rem/1 var(--display); }
.cal-nav b::first-letter { text-transform: uppercase; }
.cal-nav button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); display: grid; place-items: center; }
.cal-nav button[disabled] { opacity: .35; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal span { color: var(--fg-3); font-size: .9rem; padding-block: 4px; }
.cal button { aspect-ratio: 1; min-height: 40px; width: 100%; border-radius: 10px; border: 1px solid transparent; background: var(--accent-soft); font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; }
.cal button:hover { border-color: var(--accent); }
.cal button[disabled] { background: none; color: var(--fg-3); opacity: .5; font-weight: 400; cursor: not-allowed; border-color: transparent; }
.cal button[aria-pressed="true"], .horas button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.horas button { min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); font-variant-numeric: tabular-nums; }
.horas button:hover { border-color: var(--accent); }
.nota { color: var(--fg-3); font-size: .95rem; margin-top: 14px; }
.sep { margin-top: 28px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campos .full { grid-column: 1 / -1; }
.f label, .f legend { display: block; margin-bottom: 7px; font-weight: 500; }
.f input:not([type="checkbox"]), .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); }
.f textarea { min-height: 130px; resize: vertical; }
.f ::placeholder { color: var(--fg-3); opacity: 1; }
.f :is(input, select, textarea):focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.f [aria-invalid="true"] { border-color: var(--bad) !important; }
.err { color: var(--bad); font-size: .95rem; margin-top: 6px; }
.f .acepta { display: flex; margin: 0; font-weight: 400; gap: 12px; align-items: flex-start; color: var(--fg-2); font-size: 1rem; }
.acepta input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.trampa { position: absolute; left: -9999px; }
.aviso { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--bad); color: var(--bad); }
.listo { display: grid; gap: 14px; justify-items: start; }
.listo .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--good); display: grid; place-items: center; font-size: 1.5rem; }
.listo h3 { font-size: 1.6rem; } .listo p { color: var(--fg-2); }
.contacto { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.contacto > * { min-width: 0; }
.datos { display: grid; gap: 22px; margin-top: 32px; }
.datos li { display: flex; gap: 16px; align-items: center; }
.datos .caja { width: 54px; height: 54px; flex: none; border-radius: 13px; border: 1px solid var(--accent); background: var(--bg); color: var(--accent-text); display: grid; place-items: center; font-size: 1.1rem; }
.datos span { color: var(--fg-3); display: block; line-height: 1.3; } .datos b { font-weight: 600; }

.foot { background: var(--footer); padding-block: 56px 40px; text-align: center; }
.foot .logo { justify-content: center; }
.foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin: 26px 0; }
.foot ul a { color: var(--fg); text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot p { color: var(--fg-2); font-size: .98rem; } .foot p + p { margin-top: 8px; color: var(--fg-3); font-size: .93rem; }
.pegado { display: none; }

/* Páginas legales */
.legal { padding-block: 64px 96px; max-width: 800px; }
.legal h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--fg-2); } .legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.legal ol { list-style: decimal; padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }

@media (max-width: 1080px) {
  .nav { gap: 18px; } .top-mid { gap: 18px; }
  .hero-in { gap: 36px; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; max-height: calc(100dvh - 68px); overflow: auto; }
  .nav.abierto { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; color: var(--fg); }
  .nav a:last-child { border: 0; }
  .top-mid { padding-inline: 16px; justify-content: space-between; }
  .hero-in, .duo, .contacto, .agenda, .calc { grid-template-columns: minmax(0, 1fr); }
  .hero-in { padding-block: 52px 64px; }
  .duo, .contacto { gap: 40px; } .agenda { gap: 34px; }
  .facts, .pasos { grid-template-columns: 1fr 1fr; }
  .flujo { grid-template-columns: minmax(0, 1fr); }
  .flujo .con .ic { transform: rotate(90deg); } .flujo .con { padding-block: 4px; }
  .sec { padding-block: 72px; }
}
@media (max-width: 680px) {
  .corner { width: 56px; }
  .top .btn { display: none; }
  .btns .btn { width: 100%; }
  .facts { gap: 26px 18px; } .facts li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pasos { grid-template-columns: 1fr; }
  .demo-bg { inset: 0 -20px; width: calc(100% + 40px); height: 100%; }
  .chat-tabs button { font-size: .9rem; }
  .dolor li { grid-template-columns: 1fr; gap: 14px; } .flecha { transform: rotate(90deg); width: 38px; height: 38px; }
  .serv summary { grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 8px 14px; padding: 20px 18px; }
  .serv summary p { grid-column: 2 / -1; grid-row: 2; }
  .serv h3 { font-size: 1.25rem; }
  .serv .det { grid-template-columns: 1fr; padding: 0 18px 22px 62px; }
  .campos { grid-template-columns: 1fr; }
  .panel, .calc-in, .calc-out { padding: 24px 20px; }
  .cal { gap: 4px; }
  th, td { padding: 13px 12px; font-size: 1rem; }
  .pegado { display: flex; position: fixed; z-index: 30; inset: auto 0 0 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--bg-2); border-top: 1px solid var(--line); transition: transform .25s; }
  .pegado .btn { width: 100%; }
  .pegado.fuera { transform: translateY(110%); }
  .foot { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
