:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --blue-600: #1d4ed8;
  --blue-700: #1e40af;
  --green-500: #22c55e;
  --yellow-500: #eab308;
  --red-500: #ef4444;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Navegación ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(6px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; }
.brand-logo { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 1rem; letter-spacing: 0.2px; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-link-verify { color: #93c5fd; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ─── Botones ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: all .2s; cursor: pointer;
}
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: #e2e8f0; border-color: #334155; }
.btn-ghost:hover { border-color: #94a3b8; color: #fff; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff; padding: 96px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem;
  color: #93c5fd; font-weight: 600; margin-bottom: 16px;
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; font-weight: 800; margin-bottom: 18px; }
.hero .lead { font-size: 1.08rem; color: #cbd5e1; margin-bottom: 30px; max-width: 620px; }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: #fff; }

/* ─── Mockup del producto ────────────────────────────────────────────── */
.hero-media { position: relative; }
.mock-browser {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.55);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f1f5f9; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #eab308; }
.dot:nth-child(3) { background: #22c55e; }
.mock-url { margin-left: 12px; flex: 1; max-width: 300px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; font-size: 0.72rem; color: #64748b; padding: 4px 12px; }
.mock-body { padding: 16px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-title { font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.mock-logout { width: 26px; height: 26px; display: grid; place-items: center; background: #1e293b; color: #fff; border-radius: 8px; font-size: 0.7rem; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.mock-stat { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.mock-stat b { display: block; font-size: 1.1rem; color: #0f172a; }
.mock-stat .t-green { color: #16a34a; }
.mock-stat .t-yellow { color: #ca8a04; }
.mock-stat .t-red { color: #dc2626; }
.mock-stat span { font-size: 0.62rem; color: #64748b; }
.mock-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-map { position: relative; background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: 12px; height: 168px; }
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(2, 6, 23, 0.35); }
.pin-green { background: #16a34a; }
.pin-yellow { background: #ca8a04; }
.pin-red { background: #dc2626; }
.mock-list { display: flex; flex-direction: column; gap: 6px; }
.mock-list li { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: #334155; padding: 8px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.pindot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pindot-green { background: #22c55e; }
.pindot-yellow { background: #eab308; }
.pindot-red { background: #ef4444; }
.badge { margin-left: auto; font-size: 0.58rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge-verde { background: #dcfce7; color: #166534; }
.badge-amarillo { background: #fef9c3; color: #854d0e; }
.badge-rojo { background: #fee2e2; color: #991b1b; }

.mock-phone {
  position: absolute; bottom: -34px; right: -14px; width: 186px; background: #0f172a;
  border: 3px solid #334155; border-radius: 24px; padding: 10px;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.5);
}
.phone-notch { width: 56px; height: 5px; background: #334155; border-radius: 999px; margin: 0 auto 10px; }
.phone-head { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 0.74rem; font-weight: 700; padding: 0 4px; }
.sync { font-size: 0.9rem; }
.sync.online { color: #4ade80; }
.phone-body { background: #fff; border-radius: 14px; padding: 12px; margin-top: 8px; }
.phone-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 8px; }
.phone-field { height: 10px; background: #e2e8f0; border-radius: 4px; margin-bottom: 7px; }
.phone-photo { height: 58px; background: #0f172a; border-radius: 10px; display: grid; place-items: center; color: #94a3b8; margin-bottom: 9px; }
.phone-photo svg { width: 22px; height: 22px; }
.phone-triage { display: flex; gap: 5px; justify-content: center; }
.phone-triage .chip { font-size: 0.62rem; padding: 4px 8px; }

.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.chip-verde { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.chip-amarillo { background: rgba(234, 179, 8, 0.18); color: #facc15; }
.chip-rojo { background: rgba(239, 68, 68, 0.18); color: #f87171; }

/* ─── Secciones ──────────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 44px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ─── Stats ──────────────────────────────────────────────────────────── */
.stat {
  text-align: center; background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 20px;
}
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--blue-600); }
.stat p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* ─── Features ───────────────────────────────────────────────────────── */
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 22px; transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1); transform: translateY(-3px); }
.feature-icon { width: 30px; height: 30px; color: var(--blue-600); display: block; margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* ─── Norma ──────────────────────────────────────────────────────────── */
.norm-block { max-width: 880px; margin: 0 auto 44px; }
.norm-block h3 { font-size: 1.25rem; margin-bottom: 14px; color: var(--blue-700); }
.norm-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.norm-list li {
  background: var(--bg-alt); border-left: 4px solid var(--blue-600);
  border-radius: 8px; padding: 14px 18px; font-size: 0.95rem; color: #334155;
}
.norm-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px;
}
.norm-card p { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.titles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.title-tag {
  background: #e0e7ff; color: #3730a3; font-size: 0.82rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}
.norm-note { font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* ─── Timeline ───────────────────────────────────────────────────────── */
.timeline { max-width: 820px; margin: 0 auto 36px; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--blue-600), var(--border));
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 6px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue-600);
}
.tl-highlight::before { background: var(--blue-600); box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.2); }
.tl-year { font-size: 0.8rem; font-weight: 800; color: var(--blue-600); letter-spacing: 0.5px; }
.tl-body { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-top: 6px; }
.tl-body h3 { font-size: 1rem; margin-bottom: 4px; }
.tl-body p { font-size: 0.9rem; color: var(--muted); }
.disclaimer {
  max-width: 820px; margin: 0 auto; font-size: 0.8rem; color: var(--muted);
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 16px;
}

/* ─── Pasos / CTA ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.step { text-align: center; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px;
  background: var(--blue-600); color: #fff; font-weight: 800; border-radius: 50%; font-size: 1.1rem;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--muted); }
.cta-box {
  background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff;
  border-radius: 16px; padding: 44px; text-align: center;
}
.cta-box h3 { font-size: 1.5rem; margin-bottom: 8px; }
.cta-box p { color: #cbd5e1; margin-bottom: 22px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn-ghost { color: #fff; }
.cta-contact { margin-top: 18px; font-size: 0.9rem; color: #cbd5e1; }
.cta-contact a { color: #93c5fd; }

/* ─── Animación de aparición ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: #94a3b8; padding: 48px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 32px; margin-bottom: 28px; }
.footer-brand { font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-head { font-weight: 700; color: #e2e8f0; margin-bottom: 10px; }
.footer-grid a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 6px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 16px; font-size: 0.8rem; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 620px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--navy-900); padding: 16px 24px; gap: 14px;
    border-bottom: 1px solid var(--navy-700);
  }
  .nav-links.open { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 64px 0; }
  .section { padding: 56px 0; }
  .mock-phone { width: 150px; bottom: -26px; right: -6px; }
  .mock-main { grid-template-columns: 1fr; }
  .mock-map { height: 140px; }
}