:root {
  --blue: #0b3d91;
  --blue-dark: #082c69;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --teal: #0f766e;
  --violet: #6d28d9;
  --amber: #b45309;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: background .2s, transform .2s, box-shadow .2s; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(11, 61, 145, .25); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; margin-top: auto; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.navbar.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand-name span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 400px at 85% -10%, #e8efff 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.hl { color: var(--blue); }
.lead { font-size: 18px; margin: 20px 0 28px; max-width: 580px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-points li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.mini-app { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--bg-alt); }
.mini-app.muted { opacity: .75; }
.mini-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.mini-dot.teal { background: var(--teal); } .mini-dot.violet { background: var(--violet); } .mini-dot.amber { background: var(--amber); }
.mini-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.mini-text { font-size: 13px; color: var(--muted); }
.mini-ok { margin-left: auto; color: var(--teal); font-weight: 800; }
.mini-soon { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--amber); background: #fef3c7; padding: 3px 8px; border-radius: 99px; }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 17px; }
.sub-title { font-size: 20px; margin: 56px 0 18px; }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.apps-grid.featured { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s; }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.featured .app-card { border-width: 2px; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head h3 { font-size: 20px; }
.app-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.app-badge.teal { background: var(--teal); } .app-badge.violet { background: var(--violet); }
.app-tag { font-size: 13px; color: var(--muted); }
.app-slogan { font-weight: 600; color: var(--ink); }
.app-list { list-style: none; display: grid; gap: 6px; font-size: 15px; }
.app-list li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.app-price { font-size: 14px; color: var(--muted); }
.app-card.small p { font-size: 15px; }
.app-link { color: var(--blue); font-weight: 600; margin-top: auto; }
.app-link:hover { text-decoration: underline; }

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px dashed #c7d2fe; border-radius: 12px; background: #f8faff; transition: border-color .2s; }
.tool:hover { border-color: var(--blue); }
.tool strong { color: var(--ink); }
.tool span { font-size: 14px; color: var(--muted); }

/* Cómo funcionan */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #e8efff; color: var(--blue); font-weight: 800; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 15px; }

/* Próximas */
.upcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.up-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.up-card h3 { font-size: 18px; }
.up-card p { font-size: 15px; }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-weight: 700; }
.faq[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; font-size: 15px; }

/* CTA */
.section-cta { background: linear-gradient(135deg, var(--blue), #1d4ed8); color: #dbe6ff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.section-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }

/* Footer */
.footer { background: var(--ink); color: #94a3b8; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-footer { color: #fff; }
.brand-footer .brand-name span { color: #93b4ff; }
.footer-text { margin-top: 8px; font-size: 14px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; align-items: center; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 28px; font-size: 13px; }

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

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .apps-grid, .upcoming { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { 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 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .hero { padding: 48px 0; }
  .section { padding: 60px 0; }
  .apps-grid, .apps-grid.featured, .upcoming, .features, .tools { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
