:root {
  --brand-900: #0a2557;
  --brand-800: #0f3d8c;
  --brand-700: #14509e;
  --brand-600: #1a63ad;
  --brand-500: #2f7fc4;
  --brand-100: #dce9fb;
  --brand-50: #f0f6fe;

  --accent-700: #a06a00;
  --accent-600: #d99a00;
  --accent-500: #f2b705;
  --accent-100: #fff3d1;

  --success-700: #1f7a4d;
  --success-500: #2e9e67;

  --neutral-900: #1a2027;
  --neutral-700: #454e5a;
  --neutral-500: #737e8c;
  --neutral-300: #d4dae2;
  --neutral-200: #e6eaef;
  --neutral-100: #f1f4f7;
  --neutral-50: #fbfcfd;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 87, 0.06), 0 1px 1px rgba(10, 37, 87, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(10, 37, 87, 0.18);
  --shadow-lg: 0 20px 48px -12px rgba(10, 37, 87, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--neutral-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--neutral-700); }
a { color: var(--brand-700); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-alt { background: var(--brand-50); }
.text-center { text-align: center; }
.muted { color: var(--neutral-500); }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--brand-900); }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-500); color: var(--brand-900); }
.btn-primary:hover { background: var(--accent-600); }
.btn-outline { background: transparent; color: var(--brand-800); border: 1.5px solid var(--brand-200, var(--brand-500)); }
.btn-outline:hover { background: var(--brand-50); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 90% at 15% 0%, var(--brand-700) 0%, var(--brand-900) 55%, #050f24 100%);
  color: white;
  padding: clamp(3rem, 10vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(70deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 48px);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: white; max-width: 720px; }
.hero p.lead { color: var(--brand-100); font-size: 1.15rem; max-width: 620px; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  color: var(--accent-500);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.feature-card svg { color: var(--brand-600); margin-bottom: 0.75rem; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Como funciona (pasos) ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-left: 3rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.2rem; height: 2.2rem;
  background: var(--brand-800);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
}

/* ---------- Precios ---------- */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.pricing-card.destacado { border-color: var(--accent-500); box-shadow: var(--shadow-md); position: relative; }
.pricing-card.destacado::before {
  content: 'Más elegido';
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-500);
  color: var(--brand-900);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}
.pricing-card .precio { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--brand-900); margin: 0.5rem 0; }
.pricing-card .precio span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--neutral-500); }
.pricing-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.pricing-card li { padding: 0.35rem 0; color: var(--neutral-700); font-size: 0.92rem; }
.pricing-card li::before { content: '✓ '; color: var(--success-500); font-weight: 800; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--neutral-500); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--neutral-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); }

/* ---------- Hub listado (departamentos/personas) ---------- */
.hub-list { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hub-list a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--brand-800);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hub-list a:hover { border-color: var(--brand-500); background: var(--brand-50); }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--brand-900);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
}
.cta-final h2 { color: white; }
.cta-final p { color: var(--brand-100); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--neutral-200);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--neutral-500);
}
.footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer a { color: var(--neutral-500); }

/* ---------- Paginas legales ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 2.5rem; font-size: 1.3rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.legal p, .legal li { color: var(--neutral-700); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal .legal-updated { color: var(--neutral-500); font-size: 0.9rem; }

/* ---------- Mobile nav toggle ---------- */
.nav-mobile-toggle { display: none; }
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
