:root {
  --bg: #F6F8F7; --surface: #FFFFFF; --surface-2: #EDF2F0; --ink: #16201E; --ink-soft: #52605A; --line: #D9E1DD;
  --primary: #1F4E5F; --primary-2: #2B6A80; --primary-tint: #E3EEF1; --accent: #C97A22; --accent-tint: #FBEEDD;
  --green: #3E7A57; --red: #B0392E; --radius: 14px; --shadow: 0 18px 50px rgba(22, 43, 50, .12);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; }
h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1.5px solid var(--primary); background: var(--primary); color: #fff; cursor: pointer; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31, 78, 95, .25); background: var(--primary-2); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary-tint); box-shadow: none; }
.btn.light { background: #fff; color: var(--primary); border-color: #fff; }
.btn.small { padding: 9px 15px; font-size: 14px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 248, 247, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: 14px; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.top .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.top .login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* Portada */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--primary); }
.hero .lead { margin: 20px 0 30px; max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--ink-soft); }
.hero .trust span::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 6px; }
.shots { position: relative; min-height: 440px; }
.shot-desk { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.shot-desk .bar { height: 26px; background: var(--surface-2); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot-desk .bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9D3CE; }
.shot-phone { position: absolute; width: 36%; right: -4%; bottom: -26px; border-radius: 26px; border: 7px solid #16201E; box-shadow: var(--shadow); overflow: hidden; background: #fff; }

/* Secciones */
section { padding: 84px 0; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { margin: 10px 0 14px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.pain b { display: block; font-size: 17px; margin-bottom: 6px; }

/* Flujo */
.flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: st; }
.flow li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; position: relative; }
.flow li::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-weight: 600; font-size: 13px; }
.flow li b { display: block; margin: 6px 0 4px; font-size: 15.5px; }
.flow li span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; display: block; }
.flow ol { display: contents; }

/* Funciones con captura */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 34px 0; }
.feature.rev { grid-template-columns: 1.15fr 1fr; }
.feature.rev .txt { order: 2; }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.feature li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.feature li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-tint); box-shadow: inset 0 0 0 5px var(--primary); }
.feature h3 { font-size: 26px; margin: 8px 0 12px; }
.phones { display: flex; gap: 16px; justify-content: center; }
.phones img { width: 31%; border-radius: 22px; border: 6px solid #16201E; box-shadow: var(--shadow); }
.phones img:nth-child(2) { transform: translateY(-22px); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.role .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-tint); font-size: 21px; margin-bottom: 14px; }
.role p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }

/* Comparación */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.compare td:nth-child(2) { color: var(--ink); font-weight: 500; background: #F3F8F9; }
.compare td:nth-child(3) { color: var(--ink-soft); }

/* Seguridad */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sec-item { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.sec-item b { display: block; margin-bottom: 6px; }
.dark { background: #13333E; color: #E8F0EE; }
.dark .muted, .dark .lead { color: #B5C8C4; }
.dark .sec-item p { color: #B5C8C4; font-size: 14.5px; }

/* Precios */
.billing { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.billing button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.billing button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: 'Más elegido'; position: absolute; top: -13px; left: 28px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan .price { font-size: 38px; font-weight: 700; font-family: var(--mono); letter-spacing: -.02em; margin: 14px 0 2px; }
.plan .per { font-size: 13.5px; color: var(--ink-soft); min-height: 20px; }
.plan .pitch { color: var(--ink-soft); margin-top: 6px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 9px; font-size: 14.5px; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.price-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* Preguntas */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--primary); font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 10px; color: var(--ink-soft); }

/* Llamado final */
.final { background: linear-gradient(135deg, #1F4E5F, #13333E); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.final p { color: #C7D8D5; margin-top: 12px; }
.final .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.final .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.final .btn.ghost:hover { background: rgba(255,255,255,.1); }

/* Formulario */
.form-page { padding: 56px 0 84px; }
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-tint); border-color: var(--primary); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 18px; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; font-size: 14.5px; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: var(--red); }
.steps { display: grid; gap: 16px; margin-top: 26px; }
.steps div { display: flex; gap: 14px; }
.steps b { font-family: var(--mono); color: var(--accent); }

/* Legales */
.legal { padding: 50px 0 80px; }
.legal article { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 40px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; }
.legal p, .legal li { color: #2E3A36; margin-bottom: 10px; }
.legal .draft { background: var(--accent-tint); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; font-size: 14px; margin: 16px 0 24px; }

/* Pie */
footer { padding: 54px 0 36px; border-top: 1px solid var(--line); margin-top: 20px; font-size: 14.5px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
footer a { display: block; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
footer a:hover { color: var(--primary); }
footer .legal-line { margin-top: 36px; color: var(--ink-soft); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 26px; text-decoration: none; z-index: 30; }

/* Aparición suave */
.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: 980px) {
  .hero .grid, .feature, .feature.rev, .form-grid, .final { grid-template-columns: 1fr; }
  .feature.rev .txt { order: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .pains, .roles, .plans { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .final { padding: 36px 24px; } .final .cta { justify-content: flex-start; }
  .shots { min-height: 0; margin-bottom: 30px; }
}
@media (max-width: 760px) {
  .top nav, .top .actions { display: none; }
  .menu-btn { display: block; }
  .top.open nav, .top.open .actions { display: flex; }
  .top.open .wrap { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .top.open nav { flex-direction: column; width: 100%; margin: 0; gap: 12px; order: 3; }
  .top.open .actions { width: 100%; order: 4; margin: 10px 0 0; }
  section { padding: 60px 0; }
  .sec-grid, .row2 { grid-template-columns: 1fr; }
  .compare th:nth-child(3), .compare td:nth-child(3) { display: none; }
  .legal article { padding: 24px; }
  .hero { padding-top: 36px; }
}
