/* ===== TOKENS ===== */
:root {
  --navy:    #0C1A3A;
  --navy-2:  #16295A;
  --cobalt:  #2563EB;
  --cobalt-d:#1D4ED8;
  --orange:  #F97316;
  --white:   #FAFBFD;
  --surface: #F0F4FF;
  --border:  #DDE4F0;
  --muted:   #5A6A85;
  --text:    #1A2033;
  --footer-bg:#0A1428;

  --radius: 10px;
  --shadow: 0 4px 24px rgba(12,26,58,.10);
  --shadow-lg: 0 8px 48px rgba(12,26,58,.15);

  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --white:   #0F1B30;
    --surface: #162040;
    --border:  #243055;
    --muted:   #8A9BB8;
    --text:    #E8EDF8;
    --shadow:  0 4px 24px rgba(0,0,0,.3);
    --shadow-lg:0 8px 48px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --white:   #0F1B30;
  --surface: #162040;
  --border:  #243055;
  --muted:   #8A9BB8;
  --text:    #E8EDF8;
  --shadow:  0 4px 24px rgba(0,0,0,.3);
  --shadow-lg:0 8px 48px rgba(0,0,0,.4);
}
:root[data-theme="light"] {
  --white:   #FAFBFD;
  --surface: #F0F4FF;
  --border:  #DDE4F0;
  --muted:   #5A6A85;
  --text:    #1A2033;
  --shadow:  0 4px 24px rgba(12,26,58,.10);
  --shadow-lg:0 8px 48px rgba(12,26,58,.15);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
}
.nav-logo span { color: var(--orange); }
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--cobalt); color: #fff !important;
  padding: 8px 20px; border-radius: 6px; font-weight: 600 !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--cobalt-d) !important; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger svg { stroke: #fff; }
.nav-mobile { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; align-items: center; }
  .nav-mobile.open {
    display: flex; flex-direction: column; gap: 0;
    background: var(--navy-2); padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-mobile a {
    color: rgba(255,255,255,.85); padding: 14px 24px;
    font-weight: 500; display: block;
  }
  .nav-mobile a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  padding: 100px 0 96px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(37,99,235,.22) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 70%, rgba(249,115,22,.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  color: #fff; text-wrap: balance;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero p {
  font-size: 1.125rem; color: rgba(255,255,255,.72);
  max-width: 520px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  font-size: 1rem; transition: all .2s; cursor: pointer; border: none;
  font-family: var(--font-body);
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-d); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.18); text-decoration: none; }

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cobalt); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text); text-wrap: balance;
  margin-bottom: 16px;
}
.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 560px; }

/* ===== SERVICES ===== */
#servicios { background: var(--surface); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 56px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--cobalt) 0%, #7C3AED 100%);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { stroke: #fff; fill: none; }
.service-card h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.service-card p { font-size: .93rem; color: var(--muted); line-height: 1.6; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-top: 0;
}
.about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1E3A7A 100%);
  border-radius: 16px; padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,.3) 0%, transparent 70%);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num span { color: var(--orange); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.about-text .section-lead { margin-bottom: 24px; }
.about-text ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.about-text li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .95rem; color: var(--muted);
}
.about-text li::before {
  content: '';
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--cobalt); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; margin-top: 2px;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== PROCESS ===== */
#proceso { background: var(--surface); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0; margin-top: 56px; position: relative;
}
.process-steps::before {
  content: '';
  position: absolute; top: 28px; left: 10%; right: 10%;
  height: 2px; background: var(--border);
}
.step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 16px; position: relative; z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--white); border: 2px solid var(--cobalt);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  color: var(--cobalt); margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.step.active .step-num { background: var(--cobalt); color: #fff; }
.step h4 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step p { font-size: .82rem; color: var(--muted); }

@media (max-width: 640px) {
  .process-steps::before { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--navy);
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff; margin-bottom: 16px; text-wrap: balance;
}
.cta-inner p { color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 36px; }
.cta-inner .btn-primary { font-size: 1.05rem; padding: 16px 36px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.55); }
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding: 64px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-legal {
  padding: 24px 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start;
}
.footer-legal-info { font-size: .78rem; line-height: 1.8; }
.footer-legal-links { display: flex; gap: 20px; flex-shrink: 0; }
.footer-legal-links a { font-size: .78rem; color: rgba(255,255,255,.45); }
.footer-legal-links a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy); padding: 64px 0 56px;
}
.page-hero h1 {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff; margin-bottom: 10px;
}
.page-hero p { color: rgba(255,255,255,.65); }

/* ===== PROSE (legal, contact) ===== */
.prose-section { padding: 72px 0; }
.prose-wrap { max-width: 760px; }
.prose-wrap h2 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--text); margin: 40px 0 12px;
}
.prose-wrap h2:first-child { margin-top: 0; }
.prose-wrap p, .prose-wrap li { font-size: .975rem; color: var(--muted); margin-bottom: 14px; }
.prose-wrap ul { padding-left: 20px; }
.prose-wrap a { color: var(--cobalt); }
.prose-wrap strong { color: var(--text); }
.prose-date { font-size: .82rem; color: var(--muted); margin-bottom: 36px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: var(--text); margin-bottom: 14px;
}
.contact-info p { color: var(--muted); margin-bottom: 32px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { stroke: var(--cobalt); fill: none; }
.contact-item-body { font-size: .9rem; }
.contact-item-body strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.contact-item-body span, .contact-item-body a { color: var(--muted); }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
}
.contact-form h3 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .83rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== FOCUS / MOTION ===== */
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
