/* Web de presentación · sin dependencias externas · sin estilos en línea (la política de seguridad no los permite) */
:root {
  --bg: #f5f7fc; --bg-alt: #ecf1fb; --surface: #ffffff; --ink: #0b1220; --ink-2: #334155; --muted: #5b6678;
  --line: #e2e8f4; --brand: #2563eb; --brand-2: #4f46e5; --brand-ink: #1e3a8a; --soft: #eaf1ff;
  --warm: #ea580c; --warm-soft: #fff1e6; --cool: #0891b2; --cool-soft: #e0f7fb; --ok: #047857; --ok-soft: #dcfce7;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(30, 58, 138, .25);
  --shadow-lg: 0 30px 70px -30px rgba(30, 58, 138, .45);
  --radius: 20px;
  color-scheme: light;
}
:root[data-tema="oscuro"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) { color-scheme: dark; } }
:root[data-tema="oscuro"] {
  --bg: #070b14; --bg-alt: #0b1120; --surface: #111a2e; --ink: #eef2ff; --ink-2: #c6d0e6; --muted: #93a0bb;
  --line: #1f2a44; --brand: #5b8def; --brand-2: #7c83ff; --brand-ink: #c7d7ff; --soft: #16233f;
  --warm: #fb923c; --warm-soft: #2b1a0e; --cool: #22d3ee; --cool-soft: #0b2530; --ok: #6ee7b7; --ok-soft: #0c2a20;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --bg: #070b14; --bg-alt: #0b1120; --surface: #111a2e; --ink: #eef2ff; --ink-2: #c6d0e6; --muted: #93a0bb;
    --line: #1f2a44; --brand: #5b8def; --brand-2: #7c83ff; --brand-ink: #c7d7ff; --soft: #16233f;
    --warm: #fb923c; --warm-soft: #2b1a0e; --cool: #22d3ee; --cool-soft: #0b2530; --ok: #6ee7b7; --ok-soft: #0c2a20;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.small { font-size: .86rem; } .muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* ---------- botones ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; border: 1px solid transparent;
  border-radius: 14px; padding: 11px 18px; cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .9); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: .92rem; border-radius: 12px; } .btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; letter-spacing: -.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .9); }
.brand-mark svg { width: 20px; height: 20px; } .brand-mark.sm { width: 26px; height: 26px; border-radius: 8px; } .brand-mark.sm svg { width: 15px; height: 15px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--soft); color: var(--brand); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }
.i-sun { display: none; }
:root[data-tema="oscuro"] .i-sun { display: block; } :root[data-tema="oscuro"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .i-sun { display: block; } :root:not([data-tema="claro"]) .i-moon { display: none; } }
.menu-btn { display: none; }

/* ---------- portada ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: #3b82f6; top: -140px; right: -80px; }
.b2 { width: 360px; height: 360px; background: #22d3ee; bottom: -120px; left: -60px; animation-delay: -6s; opacity: .35; }
.b3 { width: 300px; height: 300px; background: #fb923c; top: 30%; right: 22%; animation-delay: -11s; opacity: .22; }
.b4 { width: 420px; height: 420px; background: #6366f1; top: -120px; left: -100px; opacity: .3; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
:root[data-tema="oscuro"] .blob { opacity: .28; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 650; color: var(--brand); background: var(--soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow.center { display: flex; width: max-content; margin-inline: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warm) 25%, transparent); }
.grad { background: linear-gradient(100deg, var(--brand) 0%, var(--cool) 55%, var(--warm) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--ink-2); font-size: .92rem; font-weight: 550; }
.chips li { display: inline-flex; align-items: center; gap: 7px; }
.chips svg { width: 18px; height: 18px; color: var(--ok); }

/* teléfono */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { width: min(330px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 11px; background: linear-gradient(160deg, #1e293b, #0b1220);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08); position: relative; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 88px; height: 22px; transform: translateX(-50%); background: #0b1220; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; background: var(--surface); padding: 48px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.live { margin-left: auto; font-size: .72rem; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.bubble { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: .78rem; line-height: 1.45; animation: pop .5s both; }
.bubble:nth-of-type(2) { animation-delay: .4s; } .bubble:nth-of-type(3) { animation-delay: 1.1s; } .bubble:nth-of-type(4) { animation-delay: 1.9s; } .bubble:nth-of-type(5) { animation-delay: 2.5s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.bubble.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--bg-alt); color: var(--ink); border-bottom-left-radius: 5px; }
.cite { display: inline-block; margin-top: 6px; font-size: .68rem; font-weight: 650; color: var(--brand-ink); background: var(--soft); padding: 2px 8px; border-radius: 999px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; background: var(--bg-alt); border-radius: 14px; animation: pop .4s 3.1s both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: .85rem; }
.f1 { left: -9%; bottom: 7%; width: 210px; animation: floaty 8s ease-in-out -2s infinite; }
.f2 { right: -4%; top: -8%; width: 220px; display: flex; flex-wrap: wrap; gap: 6px; animation: floaty 9s ease-in-out -4s infinite; }
.f-title { font-weight: 700; } .f-sub { color: var(--muted); font-size: .78rem; margin-top: 2px; flex-basis: 100%; }
.bar-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cool)); }
.w-40 { width: 40%; } .w-70 { width: 70%; } .w-75 { width: 75%; }
.tag { display: inline-block; font-size: .72rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.tag.warm { color: var(--warm); background: var(--warm-soft); } .tag.cool { color: var(--cool); background: var(--cool-soft); }
.tag.ok { color: var(--ok); background: var(--ok-soft); } .tag.mute { color: var(--muted); background: var(--bg-alt); }

/* ---------- secciones ---------- */
.section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.sub { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.sub.center { margin-inline: auto; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.pain h2 { max-width: 22ch; margin-inline: auto; }
.pain-card, .feature, .trust-card, .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.pain-card:hover, .feature:hover, .trust-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.pain-n { font-size: .8rem; font-weight: 800; color: var(--warm); letter-spacing: .08em; }
.pain-card h3 { margin: 10px 0 8px; font-size: 1.15rem; } .pain-card p, .feature p, .trust-card p, .step p { color: var(--ink-2); font-size: .97rem; }
.features { margin-top: 48px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: var(--soft); margin-bottom: 16px; }
.ico svg { width: 25px; height: 25px; }
.feature h3, .trust-card h3, .step h3 { margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step-n { position: absolute; top: 20px; left: 26px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center; }
.ticks b { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { background: var(--bg-alt); border-radius: 14px; padding: 12px 14px; } .kpis small { display: block; color: var(--muted); font-size: .72rem; } .kpis b { font-size: 1.6rem; letter-spacing: -.02em; }
.route-top { display: flex; justify-content: space-between; font-size: .85rem; } .route-top span { color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.row small { display: block; color: var(--muted); font-size: .76rem; }
.trust { margin-top: 44px; }
.contact { overflow: hidden; isolation: isolate; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.mail { margin-top: 22px; color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.form { padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: .88rem; font-weight: 600; color: var(--ink-2); } .opt { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea { resize: vertical; min-height: 110px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: .86rem; color: var(--muted); }
.check input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: .92rem; font-weight: 550; } .form-msg.ok { color: var(--ok); } .form-msg.err { color: #dc2626; }
:root[data-tema="oscuro"] .form-msg.err { color: #f87171; }

/* ---------- pie y páginas legales ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 44px 0 30px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot p { margin-top: 12px; max-width: 42ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .93rem; } .foot-links a:hover { color: var(--brand); }
.copy { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal { padding: clamp(40px, 6vw, 80px) 0; } .legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 8px; } .legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); } .legal p + p, .legal ul { margin-top: 12px; } .legal li { margin-top: 6px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.draft { background: var(--warm-soft); color: var(--warm); border: 1px solid currentColor; border-radius: 12px; padding: 10px 14px; font-weight: 600; margin-bottom: 20px; }
.hole { background: var(--warm-soft); color: var(--warm); padding: 0 6px; border-radius: 6px; font-weight: 600; }

/* ---------- aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; } .js .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- adaptación ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; } .split-visual { order: 2; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .f1 { left: 0; } .f2 { right: 0; }
}
@media (max-width: 760px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; padding: 10px 20px 18px; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; } .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .menu-btn { display: grid; } .hide-sm { display: none; } .bar-actions { margin-left: auto; }
  .grid-3, .grid-2, .steps, .two { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; } .f1 { bottom: 2%; left: 0; width: 190px; } .f2 { top: 1%; right: 0; width: 200px; }
  .brand-name { font-size: .95rem; }
}
@media (max-width: 420px) { .btn-sm { padding: 8px 11px; font-size: .86rem; } .brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .blob, .hero-visual, .contact, .site-footer .foot-links { display: none; } body { background: #fff; color: #000; } }
