/* ============================================================
   GeoLotes — Landing oficial (GeoLotesBolivia.com)
   Reconstrucción de producción del handoff de diseño.
   Fidelidad alta: colores, tipografía, escalas y copys finales.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy: #1B3E63;
  --navy-dark: #0F2540;
  --bg: #F3F6F8;
  --divider: #DCE4EA;
  --card: #FFFFFF;

  --green: #3FA13B;
  --green-hover: #358F32;
  --green-light: #7BC178;
  --green-100: #E4F5E1;
  --green-700: #2C7A2A;

  --teal: #1E9E8C;
  --cta: #E02B5B;
  --cta-dark: #B81E48;
  --pink: #D6336C;
  --orange: #E08A2E;
  --blue: #0B79D0;
  --purple: #7E4FC9;
  --amber: #B5790A;

  --text: #1B3E63;
  --n700: #4C6480;
  --n600: #71889B;
  --n500: #94A8B7;

  --heading: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius-card: 14px;
  --shadow-hover: 0 16px 30px rgba(27, 62, 99, 0.12);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--body);
  color: var(--text);
  font-size: 21px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--heading); font-weight: 800; }

button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
::selection { background: var(--green-100); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: var(--navy); font-family: var(--heading); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; }

.section { padding: 88px var(--pad-x); }
.section--wide { padding: 110px var(--pad-x); }
.section > .container { max-width: var(--container); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(36.4px, 4.2vw, 50.4px); line-height: 1.12; }
.section-head p { margin: 0; font-size: 21px; line-height: 1.65; color: var(--n700); }

.eyebrow {
  font-family: var(--heading); font-weight: 700; font-size: 18.2px;
  color: var(--green-700); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.num-tag {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 25px; border: none;
  font-family: var(--heading); font-weight: 700; font-size: 21px;
  white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn svg { flex: none; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-hover); color: #fff; }
.btn--outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:hover { background: var(--cta-dark); color: #fff; }
.btn--sm { height: 44px; font-size: 18.9px; border-radius: 8px; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 16px var(--pad-x);
  background: transparent;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(27, 62, 99, 0.08);
}

.brand {
  display: flex; align-items: center; justify-content: center;
  width: 226px; height: 74px; flex: none;
  background: #fff; border-radius: 12px; padding: 0 8px; overflow: hidden;
}
.brand img { width: 210px; height: auto; flex: none; }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a {
  font-family: var(--body); font-size: 15px; font-weight: 600;
  color: #fff; white-space: nowrap; transition: color .2s;
}
.main-nav a:hover { color: var(--green-light); }
.site-header.is-scrolled .main-nav a { color: var(--navy); }
.site-header.is-scrolled .main-nav a:hover { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .link-login {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px;
  border-radius: 24px; border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff; font-family: var(--heading); font-weight: 700; font-size: 17px; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.header-actions .link-login:hover { border-color: var(--green-light); color: var(--green-light); }
.site-header.is-scrolled .link-login { border-color: rgba(27,62,99,0.35); color: var(--navy); }
.site-header.is-scrolled .link-login:hover { border-color: var(--green); color: var(--green); }

.header-actions .btn--cta { height: 48px; padding: 0 22px; font-size: 17px; border-radius: 24px; }

.nav-toggle {
  width: 44px; height: 44px; border: none; background: transparent;
  display: none; align-items: center; justify-content: center; color: #fff; cursor: pointer;
}
.site-header.is-scrolled .nav-toggle { color: var(--navy); }

/* Mobile fullscreen menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--navy);
  flex-direction: column; padding: 24px; gap: 4px;
  display: none;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__close-row { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.mobile-menu__close {
  width: 44px; height: 44px; border: none; background: transparent; color: #fff; cursor: pointer;
}
.mobile-menu a {
  color: #fff; font-family: var(--heading); font-weight: 700; font-size: 26.6px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu .btn--cta {
  margin-top: 20px; height: 54px; font-size: 21px; border-radius: 27px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 128px var(--pad-x) 80px;
  background: var(--navy-dark); overflow: hidden;
}
.hero__bg {
  position: absolute; left: 0; right: 0; top: -14%;
  width: 100%; height: 128%; object-fit: cover; will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,37,64,0.92) 0%, rgba(19,47,77,0.78) 45%, rgba(27,62,99,0.45) 100%);
}
.hero__lines { position: absolute; inset: 0; opacity: 0.10; }

.hero__inner {
  position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero__col-text { flex: 1 1 460px; min-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.hero__kicker {
  font-family: var(--heading); font-weight: 700; font-size: 16.8px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-light);
}
.hero h1 {
  margin: 0; font-weight: 800; font-size: clamp(47.6px, 6.4vw, 72.8px);
  line-height: 1.08; color: #fff;
}
.hero__lead {
  margin: 0; font-size: 22.4px; line-height: 1.6;
  color: rgba(255,255,255,0.82); max-width: 480px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero__search {
  margin-top: 18px; background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.hero__search-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span.label {
  font-size: 14.7px; color: rgba(255,255,255,0.6); font-weight: 600;
}
.field__control {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); border-radius: 6px; padding: 9px 10px;
}
.field__control span { font-size: 18.2px; color: #fff; }
.field__control svg { margin-left: auto; flex: none; }

.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.trust-row span {
  display: flex; align-items: center; gap: 6px;
  font-size: 16.8px; color: rgba(255,255,255,0.7);
}
.trust-row svg { flex: none; }

/* Hero phone mockup */
.hero__col-phone { flex: 1 1 320px; min-width: 280px; display: flex; justify-content: center; position: relative; }
.phone {
  position: relative; width: 400px; max-width: 100%; height: 816px;
  border-radius: 56px; background: #0b1a2c; border: 9px solid #05101d;
  margin-top: 54px; box-shadow: 0 30px 60px rgba(0,0,0,0.45); overflow: hidden;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 112px; height: 32px; border-radius: 16px; background: #05101d; z-index: 3;
}
.phone__screen { height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.phone__statusbar { flex: none; height: 56px; background: var(--navy); }
.phone__searchbar {
  flex: none; padding: 12px 14px; background: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.phone__searchbar span { font-size: 15.4px; color: rgba(255,255,255,0.7); }
.phone__map { flex: 1; position: relative; overflow: hidden; }
.phone__map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__map svg { position: absolute; inset: 0; }
.phone__pin {
  position: absolute; left: 34%; top: 24%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.phone__badge {
  position: absolute; top: 14px; right: 14px; background: rgba(15,37,64,0.72);
  color: #fff; border-radius: 12px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.phone__card {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: 16px 16px 0 0; padding: 14px; box-shadow: 0 -6px 16px rgba(27,62,99,0.12);
}
.phone__card-tags { display: flex; gap: 6px; margin-bottom: 6px; }
.tag {
  font-size: 12.6px; font-weight: 700; border-radius: 10px; padding: 2px 7px;
  border: 1px solid currentColor;
}
.tag--amber { color: var(--amber); }
.tag--green { color: var(--green); }
.phone__price { font-family: var(--heading); font-weight: 800; font-size: 23.8px; font-variant-numeric: tabular-nums; }
.phone__meta { font-size: 15.4px; color: var(--n600); }

.float-pill {
  position: absolute; background: rgba(255,255,255,0.94); border-radius: 12px;
  padding: 10px 14px; box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  display: flex; align-items: center; gap: 8px;
}
.float-pill span { font-size: 16.1px; font-weight: 700; color: var(--navy); }
.float-pill svg { flex: none; }
.float-pill--tl { top: 0; left: 0; }
.float-pill--br { bottom: 10%; right: 0; }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--tight { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.photo-card {
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--divider); background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.photo-card > img { width: 100%; height: 170px; object-fit: cover; display: block; }
.photo-card__body { padding: 16px; }
.photo-card__body h4 { margin: 0 0 4px; font-size: 21.7px; font-weight: 700; }
.photo-card__body p { margin: 0; font-size: 17.5px; color: var(--n600); line-height: 1.5; }

/* Departamentos */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.dept-card {
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s, border-color .2s, transform .2s;
}
.dept-card:hover { background: rgba(63,161,59,0.16); border-color: var(--green); transform: translateY(-3px); }
.dept-card strong { font-family: var(--heading); font-weight: 700; font-size: 21px; color: #fff; }
.dept-card span { font-size: 16.1px; color: rgba(255,255,255,0.6); }

/* Section on navy */
.section--navy { background: var(--navy); }
.section--navy .section-head h2 { color: #fff; }
.section--navy .section-head p { color: rgba(255,255,255,0.72); }

.section--bg { background: var(--bg); border-top: 1px solid var(--divider); }

/* Split layout */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split__col { flex: 1 1 380px; min-width: 300px; }
.split h2 { margin: 0 0 14px; font-size: clamp(36.4px, 4.2vw, 47.6px); line-height: 1.14; }
.split p.lead { margin: 0 0 20px; font-size: 21px; line-height: 1.65; color: var(--n700); }

.check-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.check-list li {
  list-style: none; font-size: 18.2px; color: var(--n700);
  display: flex; gap: 8px; align-items: flex-start;
}
.check-list svg { flex: none; margin-top: 3px; }

.pill-soft {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-100); color: var(--green-700);
  border-radius: 14px; padding: 6px 12px; font-size: 16.8px; font-weight: 700;
}

.media-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--divider); box-shadow: 0 20px 40px rgba(27,62,99,0.1);
}
.media-frame > img { display: block; width: 100%; height: 400px; object-fit: cover; }
.media-frame__tag {
  position: absolute; background: #fff; border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18); font-size: 15.4px; color: var(--n700);
}
.media-frame__tag--tl { left: 18px; top: 18px; }
.media-frame__card {
  position: absolute; right: 18px; bottom: 18px; background: #fff;
  border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 20px rgba(27,62,99,0.15);
}
.media-frame__card strong { display: block; font-family: var(--heading); font-weight: 800; font-size: 25.2px; }
.media-frame__card span { font-size: 15.4px; color: var(--n600); }

/* ---------- Seguridad documental ---------- */
.doc-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.doc-status {
  border: 1px solid var(--divider); border-radius: 10px; padding: 16px; background: #fff;
}
.doc-status svg { flex: none; }
.doc-status__label { font-family: var(--heading); font-weight: 700; font-size: 19.6px; margin-top: 8px; }
.doc-status__note { font-size: 14px; color: var(--n600); margin-top: 4px; }

.callout {
  background: var(--green-100); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px;
}
.callout p { margin: 0; font-size: 19.6px; line-height: 1.6; color: var(--green-700); }

.scope-note { margin: 0; font-size: 16.8px; line-height: 1.6; color: var(--n600); max-width: 760px; }

/* ---------- Cómo funciona ---------- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 56px; }
.step-card { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--divider); background: #fff; }
.step-card__media { position: relative; height: 170px; }
.step-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-num {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 800;
}
.step-card__body { padding: 14px 16px 16px; }
.step-card__body div { font-size: 19.6px; font-weight: 700; line-height: 1.35; }

.seller-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.seller-step { display: flex; flex-direction: column; gap: 8px; }
.seller-step__num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 800;
}
.seller-step div:last-child { font-size: 18.9px; font-weight: 700; }

.privacy-note { margin: 0; font-size: 18.2px; line-height: 1.6; color: var(--n600); max-width: 680px; }

/* ---------- Oportunidades por objetivo (parallax navy) ---------- */
.parallax-section { position: relative; padding: 110px var(--pad-x); background: var(--navy-dark); overflow: hidden; }
.parallax-section__bg {
  position: absolute; left: 0; right: 0; top: -14%; width: 100%; height: 128%;
  object-fit: cover; will-change: transform;
}
.parallax-section__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,37,64,0.72) 0%, rgba(27,62,99,0.58) 100%);
}
.parallax-section__inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; }
.parallax-section h2 { margin: 0 0 8px; font-size: clamp(36.4px, 4.2vw, 47.6px); color: #fff; }
.parallax-section > .parallax-section__inner > p {
  margin: 0 0 36px; font-size: 21px; color: rgba(255,255,255,0.8); max-width: 600px;
}
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.goal-card {
  border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--divider);
  background: #fff; transition: transform .2s;
}
.goal-card:hover { transform: translateY(-4px); }
.goal-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.goal-card div { padding: 16px; font-family: var(--heading); font-weight: 700; font-size: 21.7px; color: var(--text); }

/* ---------- Funciones ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature {
  border: 1px solid var(--divider); border-radius: 10px; padding: 18px; background: #fff; position: relative;
}
.feature svg { flex: none; }
.feature__label { font-weight: 700; font-size: 19.6px; margin-top: 10px; }
.badge-soon {
  position: absolute; top: 12px; right: 12px; font-size: 12.6px; font-weight: 700;
  background: var(--divider); color: var(--n700); border-radius: 8px; padding: 2px 7px;
}

/* ---------- Recursos ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.resource {
  border: 1px solid var(--divider); border-radius: 12px; padding: 20px; background: #fff;
  font-family: var(--heading); font-weight: 700; font-size: 20.3px; line-height: 1.4;
}

/* ---------- Confianza pilares ---------- */
.pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; }
.pillar svg { flex: none; margin-top: 2px; }
.pillar strong { display: block; font-weight: 700; font-size: 20.3px; }
.pillar span { font-size: 17.5px; color: var(--n600); }

/* ============================================================
   DESCARGA
   ============================================================ */
.download {
  position: relative; padding: 96px var(--pad-x);
  background: linear-gradient(135deg, #1B3E63 0%, #0F2540 100%); overflow: hidden;
}
.download__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between;
}
.download__col { flex: 1 1 420px; min-width: 300px; }
.download h2 { margin: 0 0 14px; font-size: clamp(36.4px, 4.8vw, 53.2px); color: #fff; }
.download p { margin: 0 0 26px; font-size: 21px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 460px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.store-btn {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
  font-family: inherit; text-align: left;
}
.store-btn small { display: block; font-size: 13.3px; color: rgba(255,255,255,0.7); }
.store-btn strong { display: block; font-family: var(--heading); font-weight: 700; font-size: 19.6px; color: #fff; }
.store-btn[data-active="true"] { background: var(--green); opacity: 1; }
.store-btn[data-active="false"] { opacity: 0.7; }
.download__pub { font-size: 18.9px; font-weight: 700; color: var(--green-light); }

/* Download phone (Home screen) */
.phone--home {
  flex: none; position: relative; width: 334px; max-width: 100%; height: 684px;
  border-radius: 54px; background: #0b1a2c; border: 9px solid #05101d;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5); overflow: hidden;
}
.phone--home .phone__notch { width: 106px; height: 31px; }
.home-screen { height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.home-top {
  flex: none; padding: 56px 16px 16px;
  background: linear-gradient(180deg, #1B3E63 0%, #122E4E 100%);
  display: flex; flex-direction: column; gap: 12px;
}
.home-top__row { display: flex; align-items: center; justify-content: space-between; }
.home-chip {
  display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.16);
  border-radius: 20px; padding: 5px 11px; font-family: var(--heading); font-weight: 700; font-size: 12px; color: #fff;
}
.home-icon-btn {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
}
.home-greet strong { font-family: var(--heading); font-weight: 800; font-size: 19px; color: #fff; display: block; }
.home-greet span { font-size: 11.5px; color: rgba(255,255,255,0.8); }
.home-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 5px 5px 5px 12px;
}
.home-search span { flex: 1; font-size: 11px; color: var(--n500); }
.home-search i {
  width: 30px; height: 30px; border-radius: 7px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.home-cats { flex: none; display: flex; gap: 10px; padding: 14px 16px 4px; }
.home-cat { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 56px; flex: none; }
.home-cat i { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.home-cat span { font-size: 9.5px; text-align: center; font-weight: 600; color: var(--navy); line-height: 1.2; }
.home-map { flex: 1; position: relative; margin: 10px 16px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--divider); }
.home-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-map .mtag {
  position: absolute; background: #fff; border-radius: 14px; padding: 3px 9px;
  font-family: var(--heading); font-weight: 700; font-size: 11px; border: 1.5px solid currentColor;
}
.home-map .mtag--sale { top: 12px; left: 12px; color: var(--green); }
.home-map .mtag--rent { top: 52px; right: 14px; color: var(--teal); }
.home-listing {
  flex: none; margin: 10px 16px 12px; border: 1px solid var(--divider); border-radius: 12px;
  background: #fff; padding: 10px 12px; display: flex; gap: 10px; align-items: center;
}
.home-listing img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.home-listing__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.home-listing__tags { display: flex; gap: 5px; }
.home-listing__tags span { font-size: 9px; font-weight: 700; border-radius: 9px; padding: 1px 6px; border: 1px solid currentColor; }
.home-listing__title { font-family: var(--heading); font-weight: 700; font-size: 13px; color: var(--navy); }
.home-listing__price { font-size: 10.5px; color: var(--n600); }
.home-tabs {
  flex: none; display: flex; align-items: center; justify-content: space-around;
  padding: 8px 8px 12px; background: linear-gradient(180deg, #1B3E63 0%, #0F2540 100%);
}
.home-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,0.6); }
.home-tab span { font-size: 9.5px; }
.home-tab--active { color: var(--green); }
.home-tab--active span { font-weight: 700; }
.home-tab--fab { transform: translateY(-8px); }
.home-tab--fab i {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 88px var(--pad-x); max-width: 840px; margin: 0 auto; }
.faq h2 { margin: 0 0 32px; font-size: clamp(36.4px, 4.2vw, 47.6px); }
.faq__item { border-bottom: 1px solid var(--divider); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; background: transparent; border: none; text-align: left; cursor: pointer;
}
.faq__q span { font-family: var(--heading); font-weight: 700; font-size: 21px; color: var(--text); }
.faq__q svg { flex: none; transition: transform .2s; }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__a { margin: 0; overflow: hidden; max-height: 0; transition: max-height .25s ease, padding .25s ease; }
.faq__a p { margin: 0 0 18px; font-size: 18.9px; line-height: 1.6; color: var(--n700); }
.faq__item.is-open .faq__a { max-height: 600px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); padding: 56px var(--pad-x) 28px; }
.site-footer__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand img { width: 220px; height: auto; margin-bottom: 10px; }
.site-footer__brand p { margin: 0; font-size: 16.8px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col > span {
  font-size: 15.4px; font-weight: 700; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col a { font-size: 18.2px; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-row a:hover { background: rgba(255,255,255,0.16); }
.disclaimer {
  max-width: var(--container); margin: 24px auto 0;
  font-size: 16.1px; line-height: 1.6; color: rgba(255,255,255,0.4);
}
.disclaimer + .disclaimer { margin-top: 8px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,37,64,0.6);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__dialog {
  background: #fff; border-radius: 20px; max-width: 420px; width: 100%;
  padding: 32px 28px; text-align: center; position: relative;
}
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: none;
  background: var(--bg); border-radius: 50%; color: var(--n600); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--green-100);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.modal__dialog h3 { margin: 0 0 8px; font-weight: 800; font-size: 26.6px; }
.modal__dialog p { margin: 0 0 22px; font-size: 18.9px; line-height: 1.55; color: var(--n700); }
.modal__stores { display: flex; flex-direction: column; gap: 10px; }
.modal__store {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px;
  border-radius: 10px; background: rgba(15,37,64,0.12); color: var(--navy);
}
.modal__store span { font-family: var(--heading); font-weight: 700; font-size: 18.9px; }
.modal__store[data-active="true"] { background: var(--green); color: #fff; }
.modal__store[data-active="true"] span { color: #fff; }
.modal__store[data-active="false"] { opacity: 0.8; }

/* ============================================================
   FIXED MOBILE CTA BAR
   ============================================================ */
.mobile-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: none;
  background: #fff; border-top: 1px solid var(--divider);
  padding: 10px 16px; box-shadow: 0 -6px 16px rgba(0,0,0,0.08);
}
.mobile-cta .btn--cta { width: 100%; height: 52px; border-radius: 26px; font-size: 20.3px; }

/* ============================================================
   BANDA DE CIUDADES  (franja bajo el hero)
   ============================================================ */
.cities-band {
  position: relative; height: clamp(200px, 24vw, 300px);
  overflow: hidden; background: var(--navy-dark);
}
.cities-band__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease-in-out;
}
.cities-band__img.is-active { opacity: 1; }
.cities-band__veil { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.78); }
.cities-band__logo {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--pad-x);
}
.cities-band__logo img {
  width: clamp(260px, 42vw, 520px); height: auto;
  filter: drop-shadow(0 6px 18px rgba(15, 62, 99, 0.18));
}
.cities-band__name {
  position: absolute; right: clamp(14px, 3vw, 28px); bottom: 14px; z-index: 1;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: rgba(255, 255, 255, 0.7); border-radius: 12px; padding: 4px 12px;
}

/* ============================================================
   CÓMO FUNCIONA  (compradores / vendedores sobre plomo)
   ============================================================ */
.hiw {
  padding: 104px var(--pad-x);
  background: linear-gradient(180deg, #5B6773 0%, #4A5560 34%, #333D46 62%, #2A343D 100%);
}
.hiw__inner { max-width: 1320px; margin: 0 auto; }

.hiw__tag {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 16px 28px; margin-bottom: 26px;
}
.hiw__tag svg { flex: none; }
.hiw__tag span {
  font-family: var(--heading); font-weight: 800; font-size: 29.4px;
  color: #fff; letter-spacing: 0.01em;
}
.hiw__tag--buyers { background: var(--green); }
.hiw__tag--sellers { background: var(--cta); }

.hiw h2 {
  margin: 0 0 12px; font-weight: 800;
  font-size: clamp(36.4px, 4.2vw, 50.4px); color: #fff;
}
.hiw__intro {
  margin: 0 0 52px; font-size: 21px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.75); max-width: 820px;
}

.hiw__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.hiw-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}
.hiw-card--buyers { background: #5F6C79; border: 1px solid rgba(255, 255, 255, 0.16); }
.hiw-card--sellers { background: #2E3A46; border: 1px solid rgba(255, 255, 255, 0.10); }

.hiw-card__media {
  position: relative; aspect-ratio: 1; overflow: hidden; background: #4E5A66;
}
.hiw-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hiw-card__media--shot {
  background: radial-gradient(circle at 50% 42%, #06110D 0%, #0D2A24 42%, #16402F 72%, #1E5A2B 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hiw-card__media--shot img {
  object-fit: contain;
  transform: scale(1.06);
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.24, 1);
  will-change: transform;
}
.hiw-card__media--shot:hover img,
.hiw-card__media--shot:focus-within img { transform: scale(1); }
@media (hover: none) {
  .hiw-card__media--shot img { transform: none; }
}

.hiw-card__body { display: flex; gap: 16px; padding: 22px 22px 26px; align-items: flex-start; }
.hiw-card__num {
  flex: none; width: 56px; height: 56px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 800; font-size: 26px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.hiw-card--buyers .hiw-card__num { background: var(--green); }
.hiw-card--sellers .hiw-card__num { background: var(--cta); }
.hiw-card__text { display: flex; flex-direction: column; gap: 6px; }
.hiw-card__text strong {
  font-family: var(--heading); font-weight: 800; font-size: 22.4px;
  color: #fff; line-height: 1.25;
}
.hiw-card__text span { font-size: 17.5px; line-height: 1.55; }
.hiw-card--buyers .hiw-card__text span { color: #F2F5F7; }
.hiw-card--sellers .hiw-card__text span { color: rgba(255, 255, 255, 0.72); }

.hiw-card__arrow {
  position: absolute; top: 44%; right: -30px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hiw-card--buyers .hiw-card__arrow { background: #43505C; border: 1px solid rgba(255, 255, 255, 0.22); }
.hiw-card--sellers .hiw-card__arrow { background: #1E2831; border: 1px solid rgba(255, 255, 255, 0.16); }

.hiw__cta-row { display: flex; justify-content: center; }
.hiw__cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 0 34px; border-radius: 31px; border: none;
  font-family: var(--heading); font-weight: 800; font-size: 22.4px;
  color: #fff; cursor: pointer;
}
.hiw__cta svg { flex: none; }
.hiw__cta--buyers { background: var(--green); box-shadow: 0 12px 28px rgba(63, 161, 59, 0.35); }
.hiw__cta--buyers:hover { background: var(--green-hover); color: #fff; }
.hiw__cta--sellers { background: var(--cta); box-shadow: 0 12px 28px rgba(224, 43, 91, 0.35); }
.hiw__cta--sellers:hover { background: var(--cta-dark); color: #fff; }

.hiw__states { display: flex; flex-wrap: wrap; gap: 12px; margin: 44px 0 36px; }
.hiw__state {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 12px 18px;
  font-size: 17.5px; font-weight: 600; color: #fff;
}
.hiw__state i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cta);
  display: flex; align-items: center; justify-content: center;
}
.hiw__note {
  margin: 0; font-size: 18.2px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.62); max-width: 820px;
}
.hiw__divider { height: 100px; }

/* ============================================================
   NUESTRO FUNDADOR
   ============================================================ */
.founder {
  position: relative; padding: 96px var(--pad-x); overflow: hidden;
  background: linear-gradient(245deg, #08170A 0%, #123A16 34%, #256E24 68%, #3B8E36 100%);
}
.founder__texture {
  position: absolute; inset: -14%; width: 128%; height: 128%;
  object-fit: cover; opacity: 0.30; mix-blend-mode: soft-light; pointer-events: none;
}
.founder__inner {
  position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.founder__portrait {
  flex: 1 1 320px; min-width: 280px;
  display: flex; justify-content: center; position: relative;
}
.founder__halo {
  position: absolute; width: min(420px, 86%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 55%, rgba(255,255,255,0) 72%);
}
.founder__lines { position: absolute; width: min(460px, 94%); opacity: 0.28; }
.founder__portrait img {
  position: relative; width: min(400px, 100%); height: auto; aspect-ratio: 1;
  object-fit: contain; background: #fff; border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 26px 54px rgba(8, 32, 10, 0.4);
}
.founder__body { flex: 1 1 420px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.founder__eyebrow {
  font-family: var(--heading); font-weight: 700; font-size: 15.4px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #C8EFC1;
}
.founder__body h2 {
  margin: 0; font-weight: 800; font-size: clamp(36.4px, 4.2vw, 50.4px);
  line-height: 1.12; color: #fff;
}
.founder__name { font-family: var(--heading); font-weight: 700; font-size: 25.2px; color: #fff; }
.founder__role { font-size: 17.5px; color: rgba(255, 255, 255, 0.75); }
.founder__body p {
  margin: 0; font-size: 19.6px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.88); max-width: 620px;
}
.founder__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.founder__chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.12);
  border-radius: 20px; padding: 8px 16px;
  font-size: 15.4px; font-weight: 600; color: #fff;
}
.founder__chip svg { flex: none; }

/* ============================================================
   SCROLL REVEAL  (contenedores que entran desde abajo / de los lados)
   ============================================================ */
/* Sólo se ocultan si JS está activo (evita página en blanco sin JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity .7s cubic-bezier(0.22, 0.61, 0.24, 1),
              transform .7s cubic-bezier(0.22, 0.61, 0.24, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translate3d(-56px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(56px, 0, 0); }
.js [data-reveal="up"]    { transform: translate3d(0, 56px, 0); }
.js [data-reveal="zoom"]  { transform: scale(0.92); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Escalonado de hijos dentro de una grilla/fila revelada */
.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity .6s cubic-bezier(0.22, 0.61, 0.24, 1),
              transform .6s cubic-bezier(0.22, 0.61, 0.24, 1);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 210ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 280ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 350ms; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 420ms; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 490ms; }
[data-reveal-stagger].is-visible > *:nth-child(9) { transition-delay: 560ms; }

/* ============================================================
   RESPONSIVE  (breakpoint principal de navegación: 1480px)
   ============================================================ */
@media (max-width: 1480px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-cta { display: block; }
  body { padding-bottom: 96px; }
  .site-footer { padding-bottom: 28px; }
}

@media (max-width: 1100px) {
  .hiw-card__arrow { display: none; }
}

@media (max-width: 900px) {
  .hero { padding-top: 108px; }
  .phone { height: 720px; width: 340px; }
  .section, .parallax-section { padding-top: 64px; padding-bottom: 64px; }
  .section--wide { padding-top: 80px; padding-bottom: 80px; }
  .hiw { padding-top: 72px; padding-bottom: 72px; }
  .hiw__intro { margin-bottom: 36px; }
  .hiw__divider { height: 56px; }
  .founder { padding-top: 72px; padding-bottom: 72px; }
  .founder__inner { flex-direction: column; }
  .founder__portrait { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 19px; }
  .hero__lead { font-size: 20px; }
  .btn { font-size: 19px; height: 48px; }
  .phone { height: 640px; width: 300px; margin-top: 24px; }
  .float-pill { display: none; }
  .section-head p { font-size: 19px; }
  .hiw__tag span { font-size: 24px; }
  .hiw__tag { padding: 12px 20px; }
  .hiw__cta { font-size: 20px; min-height: 56px; padding: 0 26px; }
}

/* ---------- Animaciones ---------- */
@keyframes flDraw { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
.gl-poly { stroke-dasharray: 340; animation: flDraw 2.6s ease-out forwards; }
@keyframes flFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.gl-float { animation: flFloat 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .gl-poly, .gl-float { animation: none; }
  .hero__bg, .parallax-section__bg,
  .founder__texture, [data-parallax], [data-parallax-soft] { transform: none !important; }
  .photo-card, .goal-card, .dept-card { transition: none; }
  .hiw-card__media--shot img { transform: none; }

  /* Sin animación de entrada: todo visible desde el inicio */
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
