:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff4ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --dark: #0b1220;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.eyebrow-light { color: #93b4ff; }
.accent { color: var(--primary); }

/* Encabezado */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.logo-mark svg { width: 32px; height: 32px; }
.logo-mark rect { fill: var(--primary); }
.logo-mark path { fill: #fff; }
.logo-light { color: #fff; }

.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { font-size: .95rem; font-weight: 500; color: var(--text); transition: color .2s; }
.menu a:not(.btn):hover { color: var(--primary); }

.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: transform .25s, opacity .25s; }
.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); }

/* Hero */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, .10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, .06), transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Ilustración del navegador */
.hero-visual { position: relative; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px rgba(15, 23, 42, .12); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.browser-bar > span:nth-child(1) { background: #fca5a5; }
.browser-bar > span:nth-child(2) { background: #fcd34d; }
.browser-bar > span:nth-child(3) { background: #86efac; }
.browser-url { margin-left: 12px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; color: var(--muted); padding: 3px 10px; }
.browser-body { padding: 22px; }
.mock-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.mock-nav i { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); margin-right: auto; }
.mock-nav b { width: 44px; height: 8px; border-radius: 4px; background: var(--line); }
.mock-hero { padding: 28px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-soft), #f5f8ff); margin-bottom: 20px; }
.mock-line { height: 14px; border-radius: 7px; background: #c7d7fe; margin-bottom: 12px; }
.mock-line.w70 { width: 70%; height: 18px; background: #a5bffc; }
.mock-line.w50 { width: 50%; }
.mock-btn { width: 110px; height: 32px; border-radius: 8px; background: var(--primary); margin-top: 20px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-cards div { height: 74px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 500; color: var(--ink);
}
.float-speed { left: -28px; bottom: 48px; }
.float-speed strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #22c55e; color: #15803d; font-size: .9rem; }
.float-mobile { right: -20px; top: 70px; }
.float-mobile svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; }

/* Secciones */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #c7d7fe; box-shadow: var(--shadow); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Por qué */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.why-text > p { color: var(--muted); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); }
.checklist li strong { color: var(--ink); font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.plan-featured { border: 2px solid var(--primary); box-shadow: 0 20px 40px rgba(37, 99, 235, .12); }
.badge { position: absolute; top: -13px; left: 30px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan-desc { color: var(--muted); font-size: .92rem; min-height: 2.8em; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 8px 0 24px; line-height: 1; }
.price span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: .95rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: #c7d7fe; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Contacto */
.section-dark { background: var(--dark); color: #cbd5e1; }
.section-dark h2 { color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text > p { font-size: 1.05rem; color: #94a3b8; }
.contact-info { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact-info li { display: flex; align-items: center; gap: 12px; color: #e2e8f0; }
.contact-info svg { width: 20px; height: 20px; fill: none; stroke: #93b4ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.form { background: #fff; border-radius: 16px; padding: 32px; display: grid; gap: 18px; color: var(--text); }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.field .invalid { border-color: #ef4444; }
.form-status { margin: 0; font-size: .9rem; text-align: center; min-height: 1.4em; }
.form-status.ok { color: #15803d; }
.form-status.error { color: #dc2626; }

/* Footer */
.footer { background: var(--dark); color: #94a3b8; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid p { margin-top: 14px; max-width: 320px; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; font-size: .92rem; padding: 4px 0; transition: color .2s; }
.footer-grid a:not(.logo):hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

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

/* Responsive */
@media (max-width: 1000px) {
  .cards, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .why, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}

@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;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 16px; }

  .hero { padding: 48px 0 72px; }
  .section { padding: 72px 0; }
  .cards, .plans, .steps { grid-template-columns: 1fr; }
  .float-speed { left: 8px; bottom: -20px; }
  .float-mobile { right: 8px; top: -18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .form { padding: 24px; }
}

@media (max-width: 420px) {
  .why-stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
