:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ink: #0d1b2a;
  --ink-2: #44546a;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --dark: #0b1220;
  --dark-2: #121b2e;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(13, 27, 42, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.accent { color: var(--brand); }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: .8em; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 600; border: 0; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, box-shadow .15s; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 1.05rem; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--ink-2); font-weight: 500; }
.menu a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(900px 420px at 85% 10%, rgba(124, 58, 237, .12), transparent 60%), radial-gradient(700px 380px at 0% 0%, rgba(37, 99, 235, .10), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: .45em; }

.hero-card { background: var(--dark); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(13, 27, 42, .45); }
.chat { display: flex; flex-direction: column; gap: 12px; color: #e5ecf6; font-size: .95rem; }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #9fb0c8; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 88%; }
.msg.in { background: var(--dark-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: linear-gradient(135deg, var(--brand), var(--brand-2)); align-self: flex-end; border-bottom-right-radius: 4px; color: #fff; }
.chat-foot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.tag { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: rgba(6, 182, 212, .14); color: #67e8f9; }

/* Secciones */
.section { padding: 88px 0; }
.band { background: var(--bg-soft); }
.dark { background: var(--dark); color: #e5ecf6; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .section-head p:not(.eyebrow) { color: #9fb0c8; }
.dark .eyebrow { color: var(--accent); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.05rem; }

.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.pains p { margin: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-style: italic; color: var(--ink-2); }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.ico { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-soft); margin-bottom: 16px; }
.card-highlight { background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(124, 58, 237, .10)); border-color: rgba(124, 58, 237, .3); }

/* Agentes */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent { padding: 26px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.agent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--brand-2)); }
.agent p { color: #9fb0c8; margin: 0; font-size: .95rem; }
.agent-foot { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: var(--radius); background: rgba(6, 182, 212, .08); border: 1px solid rgba(6, 182, 212, .25); }
.agent-foot strong { color: #fff; margin-right: .4em; }
.agent-foot span { color: #b5c3d8; }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.benefits p { color: var(--ink-2); margin: 0; }
.num { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--brand); margin-bottom: 8px; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 12px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: #b5c3d8; }
.contact-list a { color: #fff; font-weight: 500; }
.form { background: #fff; color: var(--ink); padding: 32px; border-radius: 20px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }
.form-note { font-size: .82rem; color: var(--ink-2); margin: 0; text-align: center; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .6); z-index: 60; transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); }

/* Animación al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .agents, .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; }
  .menu .btn { margin-top: 8px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .cards, .agents, .benefits, .steps, .pains { grid-template-columns: 1fr; }
  .agent-foot { flex-direction: column; align-items: flex-start; }
  .form { padding: 24px; }
}
