/* ============================================================
   EXODO LATAM — Sistema de diseño global
   Migrado 1:1 desde el proyecto original (React/Vite/TanStack)
   Paleta corporativa: navy #01004e + verde lima #6ebb0d
   Tipografías: Space Grotesk (títulos) + DM Sans (cuerpo)
   ============================================================ */

:root {
  --navy: #01004e;
  --navy-2: #000086;
  --navy-3: #000040;
  --navy-soft: #1e1e7a;
  --green: #6ebb0d;
  --green-2: #5fa30b;
  --green-bright: #8DC63F;
  --green-light: #a9d66e;
  --lavender: #efefff;
  --lavender-2: #f7f8fb;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e6f0;
  --white: #ffffff;
  --wa: #25D366;

  --font-heading: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --header-h: 72px;
  --maxw: 80rem; /* 1280px */
  --radius: 0.5rem;
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0; line-height: 1.15; }
p { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container-max { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.page-x { padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) { .page-x { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .page-x { padding-left: 2.5rem; padding-right: 2.5rem; } }

.section-padding {
  padding: 2.75rem 1.25rem;
}
@media (min-width: 640px) { .section-padding { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .section-padding { padding: 4rem 2.5rem; } }

.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .section { padding-top: 5.5rem; padding-bottom: 5.5rem; } }

.bg-white { background: var(--white); }
.bg-lavender { background: var(--lavender); }
.bg-lavender-soft { background: rgba(239,239,255,0.4); }
.bg-light { background: var(--lavender-2); }
.bg-navy { background: var(--navy); }
.text-center { text-align: center; }
.maxw-2xl { max-width: 42rem; }
.maxw-3xl { max-width: 48rem; }
.maxw-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

.h2-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}
@media (min-width: 1024px) { .lead { font-size: 1.0625rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  line-height: 1.2;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 30px -10px rgba(110,187,13,.4); }
.btn-green:hover { background: var(--green-2); }
.btn-greenbright { background: var(--green-bright); color: #fff; }
.btn-greenbright:hover { background: #7ab535; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: rgba(255,255,255,.9); }
.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-outline-navy { border-color: rgba(1,0,78,.2); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: rgba(1,0,78,.05); }
.btn-pill { border-radius: 999px; padding: 0.75rem 1.5rem; }
.btn-lg { padding: 1rem 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: 13px; color: var(--green);
  transition: gap .2s;
}
.link-arrow:hover { gap: .6rem; }
.link-arrow svg { width: 1rem; height: 1rem; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.pill-light { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.pill-green-glass { background: rgba(181,220,22,.2); border: 1px solid rgba(181,220,22,.4); color: #d9f08a; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green-light); display: inline-block; }

/* svg icon default sizing inside text */
.ico { display: inline-block; vertical-align: middle; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226,230,240,.6);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.header-inner {
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .header-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .header-inner { padding: 0 2.5rem; } }
.header-logo img { height: 44px; width: auto; object-fit: contain; }
@media (min-width: 640px) { .header-logo img { height: 52px; } }
@media (min-width: 1024px) { .header-logo img { height: 60px; } }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1rem; font-size: 13.5px; font-weight: 600;
  letter-spacing: .01em; color: rgba(1,0,78,.8);
  transition: color .2s;
}
.nav-link:hover { color: var(--navy); }
.nav-caret {
  background: none; border: none; padding: .6rem .5rem;
  color: rgba(1,0,78,.8); display: inline-flex; align-items: center;
  transition: color .2s;
}
.nav-caret:hover { color: var(--navy); }
.nav-caret svg { width: 14px; height: 14px; transition: transform .25s; }
.nav-item.open .nav-caret svg { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: .75rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-item:hover .mega, .nav-item.open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  animation: fade-in-up .22s ease-out both;
}
.mega-panel {
  width: 620px; max-width: 90vw;
  background: #fff; border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.18);
  border: 1px solid rgba(226,230,240,.6);
  overflow: hidden; padding: 1.25rem;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mega-col h4 {
  font-size: 10.5px; font-weight: 700; color: rgba(1,0,78,.55);
  text-transform: uppercase; letter-spacing: .18em; margin: 0 0 .5rem; padding: 0 .5rem;
}
.mega-link {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .5rem; border-radius: .6rem; transition: background .2s;
}
.mega-link:hover { background: var(--lavender); }
.mega-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: .4rem; flex-shrink: 0;
  background: rgba(110,187,13,.12); color: var(--green);
  transition: background .2s, color .2s;
}
.mega-link:hover .mega-ico { background: var(--green); color: #fff; }
.mega-ico svg { width: 14px; height: 14px; }
.mega-link b { display: block; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.mega-link span { display: block; font-size: 11.5px; color: var(--muted-2); line-height: 1.35; margin-top: .15rem; }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.burger {
  margin-left: auto; background: none; border: none; padding: .5rem;
  color: var(--navy); display: inline-flex;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger svg { width: 24px; height: 24px; }

/* Mobile nav */
.nav-mobile {
  display: none;
  background: #fff; border-top: 1px solid var(--border);
  max-height: 80vh; overflow-y: auto;
}
.nav-mobile.open { display: block; }
.m-item { border-bottom: 1px solid rgba(226,230,240,.6); }
.m-row { display: flex; align-items: stretch; }
.m-link { flex: 1; padding: 1rem 1.5rem; font-size: 14px; font-weight: 600; color: var(--navy); }
.m-caret { padding: 1rem 1.25rem; background: none; border: none; color: var(--muted); }
.m-caret svg { width: 16px; height: 16px; transition: transform .2s; }
.m-item.open .m-caret svg { transform: rotate(180deg); }
.m-sub { display: none; background: rgba(239,239,255,.5); padding-bottom: .75rem; }
.m-item.open .m-sub { display: block; }
.m-sub h4 { padding: .75rem 1.5rem 0; font-size: 11px; font-weight: 700; color: rgba(1,0,78,.55); text-transform: uppercase; letter-spacing: .18em; margin: 0 0 .25rem; }
.m-sublink { display: flex; gap: .75rem; padding: .75rem 1.5rem; align-items: flex-start; }
.m-sublink:hover { background: var(--lavender); }
.m-sublink b { display: block; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.m-sublink span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: .15rem; }

main { padding-top: var(--header-h); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; background: var(--navy); color: #fff; }
.footer-bgwrap { background: radial-gradient(ellipse at top left, #05006b 0%, #01004e 50%, #08003f 100%); }
.footer-inner { position: relative; max-width: 1880px; margin: 0 auto; padding: .75rem 1rem .5rem; }
@media (min-width: 1024px) { .footer-inner { padding-top: 1rem; } }
.footer-card {
  border-radius: 22px; background: rgba(255,255,255,.03); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem 1rem;
}
@media (min-width: 1024px) { .footer-card { padding: 1.5rem 2.5rem 1rem; } }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1fr auto; gap: 1.5rem; } }
.footer-top h2 { font-size: clamp(22px, 4vw, 34px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.footer-top p { margin-top: .5rem; font-size: 14px; color: rgba(255,255,255,.7); max-width: 48rem; line-height: 1.45; }
.footer-logo img { width: 260px; max-width: 80vw; height: auto; filter: brightness(0) invert(1); opacity: .95; }
@media (min-width: 1024px) { .footer-logo { display: flex; justify-content: flex-end; } .footer-logo img { width: 300px; } }
.footer-social { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.footer-social .label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .2em; }
.soc {
  width: 32px; height: 32px; border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.soc:hover { background: #10b981; border-color: #10b981; }
.soc svg { width: 14px; height: 14px; color: rgba(255,255,255,.85); }
.footer-cols { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: repeat(5,1fr); gap: 2rem; } }
.footer-cols h3 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .18em; margin-bottom: .5rem; }
.footer-cols li { margin-bottom: .25rem; }
.footer-cols a, .footer-cols .fc-text {
  font-size: 13px; color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; gap: .5rem; line-height: 1.4;
  transition: color .2s;
}
.footer-cols a:hover { color: #fff; }
.footer-cols svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-bottom { margin-top: .5rem; display: flex; flex-direction: column; gap: .25rem; align-items: center; padding: 0 .5rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom span { font-size: 11px; color: rgba(255,255,255,.45); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Colombia/LATAM banner ---------- */
.latam-banner { position: relative; overflow: hidden; }
.latam-banner .wrap { position: relative; height: 340px; }
@media (min-width: 1024px) { .latam-banner .wrap { height: 420px; } }
.latam-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.latam-banner .tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,0,78,.78) 0%, rgba(1,0,78,.55) 50%, rgba(1,0,78,.25) 100%); }
.latam-banner .content { position: relative; height: 100%; display: flex; align-items: center; }
.latam-banner .inner { max-width: 34rem; padding: 2.5rem 0; }
.latam-banner .kicker { font-size: 11px; font-weight: 700; color: var(--green-light); text-transform: uppercase; letter-spacing: .22em; }
.latam-banner h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; margin: 1.25rem 0; letter-spacing: -0.01em; }
.latam-banner p { font-size: 14.5px; color: rgba(255,255,255,.85); line-height: 1.6; max-width: 32rem; }
@media (min-width: 1024px) { .latam-banner h2 { font-size: 2.4rem; } .latam-banner p { font-size: 16px; } }
