/* =================================================================
   G PLAZAS · HOJA DE ESTILOS PRINCIPAL  (CSS3 puro · Mobile-First)
   -----------------------------------------------------------------
   Autor:  Equipo de diseño G PLAZAS
   Stack:  HTML5 semántico + Vanilla CSS (sin frameworks)
   Método: Mobile-First — los estilos base son para móvil y se
           amplían con @media (min-width: …) hacia escritorio.

   ÍNDICE DE SECCIONES
   01. Variables globales (:root)
   02. Reset y estilos base
   03. Utilidades y tipografía
   04. Botones
   05. Imágenes placeholder
   06. Header / Navegación + Mega-menú
   07. Hero + Buscador
   08. Marquesina de marcas
   09. Encabezados de sección
   10. Proyectos destacados (grid + filtros)
   11. Mapa interactivo (Leaflet)
   12. Métricas
   13. Proceso (timeline)
   14. Disponibilidad (tabla)
   15. Marcas (slider)
   16. Inversión
   17. Contacto (formulario)
   18. Footer
   19. WhatsApp flotante
   20. Animaciones de aparición
   21. Media queries (escalado a escritorio)
   ================================================================= */


/* === 01. VARIABLES GLOBALES ====================================== */
:root {
  /* Marca / tinta */
  --navy:         #183880;   /* azul del logotipo */
  --navy-bright:  #6b93de;   /* azul aclarado para fondos oscuros */
  --ink-900:      #080f1f;   /* negro profundo */
  --ink-850:      #0b1428;
  --ink-800:      #0f1c39;
  --ink-700:      #15294f;

  /* Acento */
  --gold:         #c8a35b;
  --gold-bright:  #d9bd82;
  --gold-deep:    #a9833f;

  /* Neutros arquitectónicos */
  --paper:        #f5f4ef;   /* blanco cálido */
  --paper-2:      #ecebe3;
  --paper-3:      #e1e0d6;
  --gray-500:     #8a8c8f;
  --gray-600:     #6a6d72;
  --gray-700:     #4a4d54;

  /* Líneas / bordes */
  --line-dk:      rgba(255,255,255,.10);
  --line-dk-2:    rgba(255,255,255,.16);
  --line-lt:      rgba(12,20,40,.12);

  /* Estructura */
  --maxw:         1280px;

  /* Tipografía */
  --font-main:    'Archivo', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* Curva de animación */
  --ease:         cubic-bezier(.22,.61,.36,1);
}
/* === /01. VARIABLES GLOBALES ===================================== */


/* === 02. RESET Y ESTILOS BASE ==================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-main);
  background: var(--paper);
  color: var(--ink-900);
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

select,
input,
textarea { font-family: inherit; }

::selection { background: var(--gold); color: var(--ink-900); }

/* Barra de scroll (WebKit) */
::-webkit-scrollbar       { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-700); border: 3px solid var(--paper-2); border-radius: 8px; }
/* === /02. RESET Y ESTILOS BASE =================================== */


/* === 03. UTILIDADES Y TIPOGRAFÍA ================================= */
/* Contenedor centrado con padding responsivo */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* Espaciado vertical estándar de secciones */
.section { padding: clamp(56px, 9vw, 140px) 0; }

/* Antetítulo monoespaciado */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Títulos display */
.display {
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* Oculto accesible (solo lectores de pantalla) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* === /03. UTILIDADES Y TIPOGRAFÍA ================================ */


/* === 04. BOTONES ================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 2px;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn-gold  { background: var(--gold); color: var(--ink-900); font-weight: 700; }
.btn-gold:hover  { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-dk-2); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.btn-dark  { border: 1px solid var(--line-lt); color: var(--ink-900); }
.btn-dark:hover  { background: var(--ink-900); color: #fff; }
/* === /04. BOTONES ================================================ */


/* === 05. IMÁGENES PLACEHOLDER ==================================== */
/* Marcador visual donde irá fotografía real. La etiqueta se define
   con el atributo data-label="…" en el HTML. */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, var(--ink-700), var(--ink-900) 70%);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 14px; bottom: 12px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.ph-frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}
/* === /05. IMÁGENES PLACEHOLDER =================================== */


/* === 06. HEADER / NAVEGACIÓN + MEGA-MENÚ ========================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
/* Estado con fondo sólido (al hacer scroll o abrir el mega-menú) */
.nav.is-solid {
  background: rgba(8,15,31,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dk);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo-img { height: 34px; width: auto; }

/* Enlaces principales — ocultos en móvil (se usa el menú hamburguesa) */
.nav-links { display: none; }

/* Botón hamburguesa (solo móvil) */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: #fff; transition: transform .3s, opacity .3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-right { display: none; }

/* Panel de navegación móvil desplegable */
.nav-mobile {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(8,15,31,.98);
  backdrop-filter: blur(16px);
  padding: 30px clamp(20px,5vw,56px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
  z-index: 99;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile a,
.nav-mobile .nav-mobile-sub {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dk);
}
.nav-mobile .nav-mobile-city { color: var(--gold); margin-top: 18px; }
.nav-mobile .nav-mobile-cta { margin-top: 24px; justify-content: center; }

/* --- Mega-menú (escritorio) --- */
.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
}
.nav-mega-trigger:hover,
.nav-mega-trigger.is-active { color: #fff; }
.nav-mega-trigger .caret { font-size: 10px; opacity: .7; transition: transform .3s; }
.nav-mega-trigger.is-active .caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: rgba(8,15,31,.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-dk);
  box-shadow: 0 40px 60px -20px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  gap: 38px;
  padding-top: 38px;
  padding-bottom: 42px;
}
.mega-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-dk);
}
.mega-col-head .eyebrow { color: var(--gold); }
.mega-count { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.4); }
.mega-list  { display: flex; flex-direction: column; gap: 6px; }
.mega-item  { display: flex; gap: 14px; align-items: center; padding: 9px; border-radius: 3px; transition: background .25s; }
.mega-item:hover { background: rgba(255,255,255,.05); }
.mega-thumb { width: 56px; height: 44px; flex: 0 0 auto; border-radius: 2px; }
.mega-meta  { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mega-name  { font-size: 15px; font-weight: 600; color: #fff; }
.mega-sub   { font-size: 11.5px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 5px; }

.mega-next-card {
  position: relative;
  border-radius: 3px;
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.mega-next-body p { font-size: 12.5px; color: rgba(255,255,255,.62); margin: 8px 0 12px; line-height: 1.45; }
.mega-next-link { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.mega-next-link:hover { color: var(--gold-bright); }

/* Punto de estatus (reutilizable) */
.statusdot { display: inline-flex; align-items: center; gap: 5px; font-size: inherit; white-space: nowrap; }
.statusdot i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
/* === /06. HEADER / NAVEGACIÓN + MEGA-MENÚ ======================== */


/* === 07. HERO + BUSCADOR ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink-900);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,15,31,.72) 0%, rgba(8,15,31,.45) 38%, rgba(8,15,31,.78) 78%, var(--ink-900) 100%),
    radial-gradient(120% 90% at 78% 18%, rgba(24,56,128,.5), transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding-top: 130px; }
.hero-eyebrow { margin-bottom: 22px; }
.hero-eyebrow .eyebrow { color: var(--gold); }
.hero-title {
  color: #fff;
  font-size: clamp(38px, 9vw, 92px);
  margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

/* Buscador avanzado */
.hero-search { position: relative; z-index: 2; }
.search-bar {
  display: grid;
  grid-template-columns: 1fr;          /* móvil: apilado */
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dk-2);
  backdrop-filter: blur(10px);
  border-radius: 3px;
  overflow: hidden;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-dk);
}
.search-field label  { color: rgba(255,255,255,.55); }
.search-field select {
  background: transparent; border: none; color: #fff;
  font-size: 15px; font-weight: 500; cursor: pointer; outline: none;
}
.search-field select option { color: #111; }
.search-btn { border-radius: 0; padding: 18px; justify-content: center; }
/* === /07. HERO + BUSCADOR ======================================== */


/* === 08. MARQUESINA DE MARCAS ==================================== */
.hero-marquee {
  position: relative; z-index: 2;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dk);
  overflow: hidden;
}
.hero-marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.hero-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
/* === /08. MARQUESINA DE MARCAS =================================== */


/* === 09. ENCABEZADOS DE SECCIÓN ================================== */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}
.sec-title { font-size: clamp(32px, 4.4vw, 58px); margin-top: 10px; }
.sec-lead  { max-width: 460px; color: var(--gray-600); font-size: 16px; line-height: 1.6; }
/* === /09. ENCABEZADOS DE SECCIÓN ================================= */


/* === 10. PROYECTOS DESTACADOS =================================== */
.projects { background: var(--paper); }

.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 11px 17px;
  border: 1px solid var(--line-lt);
  border-radius: 2px;
  color: var(--gray-700);
  transition: all .25s;
}
.chip:hover { border-color: var(--ink-900); }
.chip.is-on { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.filter-meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--gray-600); }
.filter-clear { font-family: var(--font-mono); font-size: 12px; color: var(--gold-deep); letter-spacing: .06em; }
.filter-clear:hover { color: var(--ink-900); }

/* Grid de tarjetas — móvil: 1 columna */
.pgrid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.pgrid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--gray-600);
  display: none;                 /* se muestra vía JS cuando no hay resultados */
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pgrid-empty.is-visible { display: flex; }

/* Tarjeta de proyecto */
.pcard {
  background: #fff;
  border: 1px solid var(--line-lt);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pcard.is-hidden { display: none; }       /* filtrado por JS */
.pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(8,15,31,.35); }
.pcard-img { position: relative; aspect-ratio: 4/3; display: block; }
.pcard:hover .pcard-img.ph { filter: brightness(1.08); }
.pcard-badges {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2;
}
.pcard-type {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; background: rgba(8,15,31,.7); color: #fff;
  padding: 6px 10px; border-radius: 2px; backdrop-filter: blur(4px);
}
.pcard-status { background: rgba(255,255,255,.92); color: var(--ink-900); padding: 6px 10px; border-radius: 2px; font-size: 11px; font-weight: 600; }
.pcard-region {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: rgba(255,255,255,.85); text-transform: uppercase;
}
.pcard-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard-head { display: flex; flex-direction: column; gap: 3px; }
.pcard-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pcard-name a:hover { color: var(--navy); }
.pcard-anchor { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--gold-deep); text-transform: uppercase; }
.pcard-blurb { font-size: 14px; color: var(--gray-600); line-height: 1.55; flex: 1; }
.pcard-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line-lt); border-bottom: 1px solid var(--line-lt);
}
.pcard-specs > div { display: flex; flex-direction: column; gap: 3px; }
.pcard-specs .eyebrow { font-size: 9.5px; color: var(--gray-500); letter-spacing: .18em; }
.pcard-specs b { font-size: 16px; font-weight: 700; }
.pcard-specs i { font-style: normal; font-size: 10px; color: var(--gray-500); font-family: var(--font-mono); }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; }
.pcard-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.pcard-link span { transition: transform .3s; }
.pcard-link:hover span { transform: translateX(5px); }
.pcard-map { font-size: 12.5px; color: var(--gray-500); }
.pcard-map:hover { color: var(--navy); }
/* === /10. PROYECTOS DESTACADOS ================================== */


/* === 11. MAPA INTERACTIVO (Leaflet) ============================= */
.mapa { background: var(--ink-850); color: #fff; }
.mapa-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.mapa-title { font-size: clamp(32px, 4vw, 54px); color: #fff; margin: 12px 0 16px; }
.mapa-lead  { color: rgba(255,255,255,.65); font-size: 16px; line-height: 1.6; max-width: 380px; margin-bottom: 22px; }

.mapa-cities { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.mapa-citybtn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 9px 15px;
  border: 1px solid var(--line-dk-2); border-radius: 2px;
  color: rgba(255,255,255,.65); transition: all .25s;
}
.mapa-citybtn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.mapa-citybtn.is-on { background: var(--gold); color: var(--ink-900); border-color: var(--gold); font-weight: 700; }

.mapa-card { background: rgba(255,255,255,.05); border: 1px solid var(--line-dk-2); border-radius: 4px; padding: 22px; }
.mapa-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.6); }
.mapa-card-region { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.mapa-card-name { font-size: 24px; font-weight: 700; margin: 10px 0 6px; }
.mapa-card-addr { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; margin-bottom: 16px; }
.mapa-card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.mapa-card-specs > div { display: flex; flex-direction: column; gap: 4px; }
.mapa-card-specs .eyebrow { color: rgba(255,255,255,.45); font-size: 9.5px; }
.mapa-card-specs b { font-size: 16px; }
.mapa-card-actions { display: flex; gap: 10px; }
.mapa-card-focus { flex: 0 0 auto; border-color: var(--line-dk-2); color: #fff; white-space: nowrap; }
.mapa-card-focus:hover { background: rgba(255,255,255,.08); }
.mapa-card-cta { flex: 1; justify-content: center; }

.mapa-panel-wrap { position: relative; }
.mapa-leaflet {
  width: 100%; height: 380px;
  border-radius: 5px;
  background: var(--ink-900);
  border: 1px solid var(--line-dk-2);
  z-index: 1;
}
.mapa-legend-float {
  position: absolute; left: 14px; bottom: 14px; z-index: 400;
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(8,15,31,.86); backdrop-filter: blur(8px);
  border: 1px solid var(--line-dk); border-radius: 4px; padding: 12px 14px;
}
.mapa-legend-float span { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.mapa-legend-float i { width: 10px; height: 10px; border-radius: 50%; }

/* Pines personalizados de Leaflet (inyectados como divIcon) */
.gp-pin-wrap { background: none; border: none; }
.gp-pin { position: relative; display: block; width: 22px; height: 22px; }
.gp-pin-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--pc); border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .2s; z-index: 2;
}
.gp-pin-pulse {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 15px; height: 15px; border-radius: 50%; background: var(--pc);
  animation: gp-pulse 2.4s ease-out infinite;
}
@keyframes gp-pulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: .55; }
  100% { transform: translate(-50%,-50%) scale(3.4); opacity: 0; }
}
.gp-pin.is-on .gp-pin-dot { transform: translate(-50%,-50%) scale(1.5); box-shadow: 0 0 0 4px rgba(200,163,91,.45), 0 2px 6px rgba(0,0,0,.5); }

/* Overrides de controles Leaflet para el tema oscuro */
.gp-tip {
  font-family: var(--font-mono) !important; font-size: 11px !important;
  font-weight: 700; letter-spacing: .04em;
  background: #fff !important; color: var(--ink-900) !important;
  border: none !important; border-radius: 2px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.3) !important;
}
.gp-tip::before { border-top-color: #fff !important; }
.leaflet-container { font-family: var(--font-main); }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(8,15,31,.7) !important; color: rgba(255,255,255,.5) !important; }
.leaflet-control-attribution a { color: rgba(255,255,255,.7) !important; }
.leaflet-bar a { background: var(--ink-800) !important; color: #fff !important; border-color: var(--line-dk) !important; }
.leaflet-bar a:hover { background: var(--ink-700) !important; }
/* === /11. MAPA INTERACTIVO ====================================== */


/* === 12. MÉTRICAS =============================================== */
.metrics { background: var(--paper); }
.metrics-head { max-width: 760px; margin-bottom: 44px; }
.metrics-head .eyebrow { color: var(--gold-deep); }
.metrics-title { font-size: clamp(26px, 3.2vw, 42px); margin-top: 16px; line-height: 1.12; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.metric { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--ink-900); }
.metric-num { font-size: clamp(40px, 9vw, 80px); font-weight: 800; line-height: .9; letter-spacing: -.03em; color: var(--navy); display: flex; align-items: flex-start; }
.metric-num i { font-style: normal; color: var(--gold); font-size: .45em; margin-left: 4px; }
.metric-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--gray-600); text-transform: uppercase; line-height: 1.4; }
/* === /12. MÉTRICAS ============================================== */


/* === 13. PROCESO (timeline) ===================================== */
.proceso { background: var(--ink-900); color: #fff; }
.proceso .sec-title { color: #fff; }
.proceso .sec-head .eyebrow { color: var(--gold); }
.proceso .sec-lead { color: rgba(255,255,255,.6); }
.timeline { list-style: none; display: grid; grid-template-columns: 1fr; gap: 30px; }
.tl-step { position: relative; }
.tl-num { font-family: var(--font-mono); font-size: 14px; color: var(--gold); letter-spacing: .1em; }
.tl-line { display: block; height: 1px; background: var(--line-dk-2); margin: 16px 0 18px; position: relative; }
.tl-line::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tl-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.tl-desc { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.55; }
/* === /13. PROCESO ============================================== */


/* === 14. DISPONIBILIDAD (tabla) ================================ */
.dispo { background: var(--paper); }
.dispo-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.dispo-filters select {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; padding: 13px 18px; border: 1px solid var(--line-lt);
  background: #fff; border-radius: 2px; cursor: pointer; color: var(--ink-900);
}
/* Contenedor con scroll horizontal en móvil */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-lt); border-radius: 4px; }
.table { min-width: 760px; background: #fff; }
.trow {
  display: grid;
  grid-template-columns: 1.4fr .9fr 1.3fr .8fr 1.2fr 1.1fr .9fr;
  align-items: center; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--line-lt); font-size: 14px;
}
.trow:last-child { border-bottom: none; }
.trow.is-hidden { display: none; }
.thead {
  background: var(--ink-900); color: rgba(255,255,255,.7);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; padding: 16px 24px;
}
.trow:not(.thead):hover { background: var(--paper-2); }
.t-name { font-weight: 700; font-size: 15px; }
.t-dim  { color: var(--gray-600); }
.trow b { font-weight: 700; }
.t-unit { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--gray-500); display: block; }
.pill   { display: inline-flex; margin-right: 7px; vertical-align: middle; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 22%, transparent); }
.t-cta  { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--navy); }
.t-cta:hover { color: var(--gold-deep); }
.dispo-legend { display: flex; gap: 24px; margin-top: 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-600); flex-wrap: wrap; }
.dispo-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dispo-legend i { width: 9px; height: 9px; border-radius: 50%; }
/* === /14. DISPONIBILIDAD ======================================= */


/* === 15. MARCAS (slider) ======================================= */
.marcas { background: var(--ink-900); padding: 40px 0; overflow: hidden; }
.marcas-head { text-align: center; margin-bottom: 26px; }
.marcas-head .eyebrow { color: rgba(255,255,255,.5); }
.marcas-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marcas-track { display: flex; gap: 18px; width: max-content; animation: marquee 40s linear infinite; }
.marca-chip {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
  border: 1px solid var(--line-dk-2); padding: 18px 30px; border-radius: 3px; white-space: nowrap;
}
/* === /15. MARCAS =============================================== */


/* === 16. INVERSIÓN ============================================= */
.inversion { background: var(--ink-850); color: #fff; }
.inv-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.inv-media { position: relative; aspect-ratio: 16/10; border-radius: 5px; }
.inv-media-stat { position: absolute; left: 22px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.inv-media-stat .metric-num { display: flex; align-items: flex-start; color: #fff; font-size: 40px; }
.inv-media-stat .metric-num i { color: var(--gold); }
.inv-title { font-size: clamp(30px, 3.6vw, 50px); color: #fff; margin: 14px 0 16px; }
.inv-lead { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.6; margin-bottom: 30px; }
.inv-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.inv-item { display: flex; gap: 18px; }
.inv-bar { width: 2px; flex: 0 0 auto; background: var(--gold); }
.inv-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.inv-item p { font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.5; }
/* === /16. INVERSIÓN ============================================ */


/* === 17. CONTACTO (formulario) ================================= */
.contacto { background: var(--paper); }
.cont-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.cont-title { font-size: clamp(30px, 3.6vw, 50px); margin: 14px 0 16px; }
.cont-lead { color: var(--gray-600); font-size: 16px; line-height: 1.6; max-width: 400px; margin-bottom: 30px; }
.cont-details { display: flex; flex-direction: column; }
.cont-row { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-lt); }
.cont-row:last-child { border-bottom: 1px solid var(--line-lt); }
.cont-row .eyebrow { color: var(--gray-500); }
.cont-row b { font-size: 18px; font-weight: 600; }
a.cont-row:hover b { color: var(--navy); }

.cont-form-wrap { background: #fff; border: 1px solid var(--line-lt); border-radius: 5px; padding: 28px; }
.cont-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: var(--gray-600); }
.field input, .field select, .field textarea {
  font-size: 15px; padding: 14px 16px; border: 1px solid var(--line-lt);
  border-radius: 3px; background: var(--paper); color: var(--ink-900);
  outline: none; transition: border-color .25s; resize: vertical; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field input.is-bad { border-color: #c0492f; background: #fdf3f1; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cont-submit { justify-content: center; margin-top: 6px; }
.cont-fine { font-size: 12px; color: var(--gray-500); text-align: center; }

/* Estado de éxito (mostrado vía JS) */
.cont-success { text-align: center; padding: 40px 10px; display: none; flex-direction: column; align-items: center; gap: 14px; }
.cont-success.is-visible { display: flex; }
.cont-check { width: 62px; height: 62px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.cont-success h3 { font-size: 24px; font-weight: 700; }
.cont-success p { color: var(--gray-600); max-width: 340px; }
/* === /17. CONTACTO ============================================= */


/* === 18. FOOTER =============================================== */
.footer { background: var(--ink-900); color: #fff; padding: 64px 0 30px; }
.foot-top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dk); }
.foot-logo { height: 42px; width: auto; margin-bottom: 18px; }
.foot-tag { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; max-width: 320px; margin-bottom: 22px; }
.foot-social { display: flex; gap: 18px; }
.foot-social a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.foot-social a:hover { color: var(--gold); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.foot-col .eyebrow { color: var(--gold); display: block; margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; color: rgba(255,255,255,.62); }
.foot-col a:hover { color: #fff; }
.foot-contact { display: flex; gap: 22px; flex-wrap: wrap; padding: 26px 0; border-bottom: 1px solid var(--line-dk); }
.foot-contact a, .foot-contact span { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.foot-contact a:hover { color: var(--gold); }
.foot-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,.4); }
.foot-credit { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
/* === /18. FOOTER ============================================== */


/* === 19. WHATSAPP FLOTANTE ==================================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #1f8a4c; color: #fff;
  padding: 14px 18px 14px 16px; border-radius: 50px;
  box-shadow: 0 16px 34px -10px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #23a058; }
.wa-text { display: none; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; font-weight: 700; }
/* === /19. WHATSAPP FLOTANTE =================================== */


/* === 20. ANIMACIONES DE APARICIÓN ============================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-marquee-track, .marcas-track, .gp-pin-pulse { animation: none; }
  html { scroll-behavior: auto; }
}
/* === /20. ANIMACIONES DE APARICIÓN ============================ */


/* =================================================================
   === 21. MEDIA QUERIES — escalado progresivo hacia escritorio ===
   Mobile-First: a partir de cada breakpoint se mejora el layout.
   ================================================================= */

/* --- ≥ 620px : tablets pequeñas --- */
@media (min-width: 620px) {
  .pgrid          { grid-template-columns: repeat(2, 1fr); }
  .search-bar     { grid-template-columns: 1fr 1fr; }
  .search-field   { border-right: 1px solid var(--line-dk); }
  .field-row      { grid-template-columns: 1fr 1fr; }
  .foot-cols      { grid-template-columns: repeat(3, 1fr); }
  .foot-bottom    { flex-direction: row; justify-content: space-between; }
  .wa-text        { display: block; }
  .wa-float       { right: 26px; bottom: 26px; }
  .timeline       { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .metrics-grid   { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
}

/* --- ≥ 880px : tablets grandes / laptops --- */
@media (min-width: 880px) {
  .nav-inner      { height: 78px; }
  .nav-logo-img   { height: 38px; }
  .nav-burger     { display: none; }                 /* se oculta la hamburguesa */
  .nav-mobile     { display: none; }
  .nav-links      { display: flex; align-items: center; gap: 30px; }
  .nav-links a    { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); transition: color .25s; }
  .nav-links a:hover { color: #fff; }
  .nav-right      { display: flex; align-items: center; gap: 22px; }
  .nav-phone      { font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: .04em; }
  .nav-phone:hover{ color: var(--gold-bright); }
  .nav-cta        { padding: 12px 20px; }
  .mega, .nav-mega-trigger .caret { display: block; }
  .nav-mega-trigger { display: inline-flex; }

  .hero-content   { padding-top: 160px; }
  .search-bar     { grid-template-columns: repeat(3, 1fr) auto; }
  .search-field   { padding: 18px 22px; }
  .search-field:last-of-type { } /* mantiene borde */
  .search-btn     { border-radius: 0; height: 100%; padding: 0 32px; }

  .sec-head       { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .sec-title      { margin-top: 14px; }
  .filters        { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }

  .pgrid          { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .mapa-grid      { grid-template-columns: .85fr 1.15fr; gap: 54px; }
  .mapa-leaflet   { height: 520px; }
  .metrics-grid   { grid-template-columns: repeat(4, 1fr); }
  .timeline       { grid-template-columns: repeat(5, 1fr); }
  .inv-grid       { grid-template-columns: 1fr 1fr; gap: 60px; }
  .inv-media      { aspect-ratio: 4/4.6; }
  .inv-media-stat .metric-num { font-size: 44px; }
  .cont-grid      { grid-template-columns: 1fr 1.05fr; gap: 60px; }
  .cont-form-wrap { padding: 34px; }
  .foot-top       { grid-template-columns: 1fr 2fr; gap: 56px; }
  .foot-cols      { grid-template-columns: repeat(4, 1fr); }
  .footer         { padding: 80px 0 34px; }
}

/* --- ≥ 1080px : escritorio amplio --- */
@media (min-width: 1080px) {
  .hero-title     { font-size: clamp(40px, 7vw, 92px); }
  .mapa-leaflet   { height: 540px; }
}
/* === /21. MEDIA QUERIES ======================================== */

/* =================================================================
   FIN DE LA HOJA DE ESTILOS · G PLAZAS
   ================================================================= */
