/* ========================================================
   CIGSA GU — Main Stylesheet
   ======================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-navy:   #0F1C32;
  --color-royal:  #1F3864;
  --color-gold:   #C8A951;
  --color-cream:  #FAF7F0;
  --color-cream2: #f0ead8;
  --color-white:  #ffffff;
  --color-text:   #0F1C32;
  --max-w: 1400px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--color-cream);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: 'Montserrat', sans-serif; }
section[id], footer[id] { scroll-margin-top: 80px; }

/* --- Typography --- */
.font-hero    { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.025em; }
.font-display { font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.font-body    { font-family: 'Montserrat', sans-serif; font-weight: 300; }
.font-mono    { font-family: 'Montserrat', sans-serif; font-weight: 500; letter-spacing: 0.18em; }

/* --- Layout helpers --- */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========================================================
   HEADER / NAV
   ======================================================== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250,247,240,0.85);
  border-bottom: 1px solid rgba(31,56,100,0.10);
}
.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img { height: 32px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: rgba(15,28,50,0.80);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--color-royal); }

.lang-switcher { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: rgba(15,28,50,0.60); }
.lang-switcher span { padding: 0 4px; opacity: 0.4; }
.lang-btn { padding: 4px 8px; border-radius: 2px; background: none; color: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; transition: background 0.2s, color 0.2s; }
.lang-btn.active { background: var(--color-navy); color: var(--color-cream); }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-navy); transition: all 0.3s; display: block; }

/* ========================================================
   HERO SECTION
   ======================================================== */
#inicio {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  padding-top: 80px;
  background: var(--color-navy);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0.6;
}
.hero-gradient-1 {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,28,50,0.20) 0%, rgba(15,28,50,0.05) 35%, rgba(15,28,50,0.45) 75%, rgba(15,28,50,0.70) 100%);
}
.hero-gradient-2 {
  position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(135deg, rgba(31,56,100,0.15) 0%, rgba(15,28,50,0.05) 50%, rgba(200,169,81,0.05) 100%);
}
/* Hero SVG overlay — same mechanics as map section, purely decorative */
.hero-svg-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}
.hero-svg-overlay svg { width: 100%; height: 100%; display: block; }

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 2.5rem 6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-inner { max-width: 56rem; }
.hero-kicker {
  font-weight: 600; font-size: 14px; letter-spacing: 0.22em;
  color: var(--color-gold); text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.hero-kicker::before { content: ""; display: block; width: 32px; height: 1px; background: var(--color-gold); }
.hero-h1 { color: var(--color-cream); margin-bottom: 2rem; line-height: 1.02; font-size: clamp(2.5rem, 5vw, 76px); }
.hero-sub { color: rgba(250,247,240,0.85); font-size: 18px; font-weight: 300; max-width: 36rem; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary {
  display: inline-block; background: var(--color-gold); color: var(--color-navy);
  padding: 1rem 2rem; font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--color-cream); }
.btn-secondary {
  display: inline-block; border: 1px solid rgba(250,247,240,0.40); color: var(--color-cream);
  padding: 1rem 2rem; font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ========================================================
   SECTION: EL PROYECTO (map section)
   ======================================================== */
#proyecto {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream) 70%, var(--color-cream2) 100%);
  padding: 5rem 2.5rem;
}
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-gold); margin-bottom: 1rem; }
.section-h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.section-subtitle { font-size: 18px; font-weight: 300; color: rgba(15,28,50,0.70); line-height: 1.7; }

.proyecto-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .proyecto-grid { grid-template-columns: 7fr 5fr; } }

.map-container {
  position: relative; background: var(--color-navy); overflow: hidden;
  aspect-ratio: 1600 / 893;
}
.map-container img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15,28,50,0.05) 0%, transparent 30%, transparent 70%, rgba(15,28,50,0.18) 100%); }

/* Animated SVG overlay */
.map-svg-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.map-svg-overlay svg { width: 100%; height: 100%; display: block; }

/* Interactive map pins (ATLANTIC / PACIFIC) */
.map-pin-group {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}
.map-pin-group rect { transition: fill 0.25s ease, opacity 0.25s ease; }
.map-pin-group text { transition: fill 0.25s ease; }
.map-pin-group:focus-visible rect { stroke-width: 2.5; }
.map-pin-group.active rect { fill: #C8A951 !important; opacity: 0.95 !important; }
.map-pin-group.active text { fill: #0F1C32 !important; }

.region-panel {
  background: var(--color-navy); color: var(--color-cream);
  padding: 1.75rem; display: flex; flex-direction: column;
}
.region-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(200,169,81,0.30); }
.region-panel-live { font-size: 11px; letter-spacing: 0.18em; font-weight: 500; color: rgba(250,247,240,0.40); }
.region-panel h3 { font-size: 1.875rem; font-weight: 600; line-height: 1.1; margin-bottom: 0.75rem; }
.region-panel p { font-size: 14px; font-weight: 300; color: rgba(250,247,240,0.75); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }
.region-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.region-stat { border: 1px solid rgba(200,169,81,0.20); background: rgba(31,56,100,0.20); padding: 0.75rem; }
.region-stat-k { font-size: 1.25rem; font-weight: 600; color: var(--color-gold); }
.region-stat-v { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: rgba(250,247,240,0.60); text-transform: uppercase; }
.region-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.region-tab {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; padding: 4px 10px;
  border: 1px solid rgba(250,247,240,0.20); color: rgba(250,247,240,0.60);
  transition: all 0.2s; background: none; text-transform: uppercase;
}
.region-tab.active, .region-tab:hover { border-color: var(--color-gold); color: var(--color-gold); background: rgba(200,169,81,0.10); }

/* ========================================================
   SECTION: STATS BAR
   ======================================================== */
.stats-bar {
  background: var(--color-navy); color: var(--color-cream);
  padding: 3rem 2.5rem; border-top: 1px solid rgba(200,169,81,0.20); border-bottom: 1px solid rgba(200,169,81,0.20);
}
.stats-bar-inner { max-width: var(--max-w); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.stats-label { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; display: flex; align-items: center; gap: 0.75rem; }
.stats-label::before { content: ""; display: block; width: 6px; height: 6px; background: var(--color-gold); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
.stats-items { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.stat-item { display: flex; align-items: center; gap: 0.75rem; }
.stat-item-k { font-size: 12px; font-weight: 600; color: var(--color-cream); letter-spacing: 0.05em; }
.stat-item-v { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; color: rgba(250,247,240,0.50); text-transform: uppercase; }
@keyframes pulse-dot { 0%,100%{opacity:0.4;} 50%{opacity:1;} }

/* ========================================================
   SECTION: INFRASTRUCTURE PILLARS
   ======================================================== */
#pilares { padding: 6rem 2.5rem 2.5rem; }
.pillars-header { display: grid; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .pillars-header { grid-template-columns: 4fr 8fr; } }
.pillars-title { font-size: clamp(2.5rem, 4vw, 3.125rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pillars-subtitle { font-size: 1.25rem; font-weight: 300; color: rgba(15,28,50,0.70); line-height: 1.7; display: flex; align-items: flex-end; }

.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 640px)  { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(5, 1fr); } }

.pillar-card {
  background: var(--color-white); border: 1px solid rgba(15,28,50,0.10);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.pillar-card:hover { border-color: var(--color-gold); box-shadow: 0 20px 40px rgba(0,0,0,0.10); }
.pillar-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-navy); }
.pillar-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.pillar-card:hover .pillar-img img { transform: scale(1.05); }
.pillar-img-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15,28,50,0.05) 0%, transparent 50%, rgba(15,28,50,0.4) 100%); }
.pillar-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.pillar-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.pillar-k { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-gold); }
.pillar-arrow { color: var(--color-gold); font-size: 1.125rem; }
.pillar-t { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 0.75rem; color: var(--color-navy); }
.pillar-d { font-size: 13px; font-weight: 400; color: rgba(15,28,50,0.70); line-height: 1.6; flex: 1; }

.pillars-banner {
  position: relative; height: 480px; overflow: hidden; background: var(--color-navy); margin-top: 4rem;
}
.pillars-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillars-banner-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,50,0.15) 0%, rgba(15,28,50,0) 40%, rgba(15,28,50,0.6) 100%); }
.pillars-banner-text { position: absolute; bottom: 2rem; left: 2rem; right: 2rem; display: flex; align-items: flex-end; justify-content: space-between; }
.pillars-banner-label { font-size: 14px; font-weight: 600; letter-spacing: 0.18em; color: var(--color-gold); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.pillars-banner-tag { font-size: 13px; font-weight: 500; letter-spacing: 0.15em; color: rgba(250,247,240,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

/* ========================================================
   SECTION: ECOSISTEMA
   ======================================================== */
#ecosistema {
  background: var(--color-cream); border-top: 1px solid rgba(15,28,50,0.10);
  padding: 3rem 2.5rem 5rem;
}
.ecosystem-header { display: grid; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .ecosystem-header { grid-template-columns: 5fr 7fr; } }

.ecosystem-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .ecosystem-grid.has-detail { grid-template-columns: 7fr 5fr; } }

.stakes-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .stakes-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .stakes-grid.compact { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stakes-grid.full { grid-template-columns: repeat(5, 1fr); } }

.stake-card {
  background: var(--color-white); border: 1px solid rgba(15,28,50,0.08);
  padding: 1.25rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.stake-card:hover, .stake-card.active { border-color: var(--color-gold); background: rgba(200,169,81,0.04); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.stake-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.stake-card-num { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-gold); }
.stake-card-plus { color: var(--color-gold); font-size: 1.125rem; transition: transform 0.2s; }
.stake-card.active .stake-card-plus { transform: rotate(45deg); }
.stake-card h4 { font-size: 17px; font-weight: 600; line-height: 1.2; color: var(--color-navy); }

.stake-detail {
  background: var(--color-white); border-left: 4px solid var(--color-gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10); padding: 1.75rem;
  animation: slideIn 0.25s ease-out;
}
@media (min-width: 1024px) { .stake-detail { position: sticky; top: 6rem; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.stake-detail-label { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-gold); margin-bottom: 0.25rem; }
.stake-detail-close { font-size: 1.5rem; color: rgba(15,28,50,0.40); transition: color 0.2s; background: none; border: none; line-height: 1; cursor: pointer; margin-top: -4px; margin-right: -4px; }
.stake-detail-close:hover { color: var(--color-navy); }
.stake-detail h3 { font-size: 1.625rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--color-navy); }
.stake-detail-desc { font-size: 14px; font-weight: 400; color: rgba(15,28,50,0.70); line-height: 1.7; margin-bottom: 1.25rem; }
.stake-entities-label { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-royal); margin-bottom: 0.75rem; }
.stake-entity {
  font-size: 13px; font-weight: 400; color: var(--color-navy);
  padding: 0.4rem 0; border-bottom: 1px solid rgba(15,28,50,0.07);
  display: flex; align-items: center; gap: 0.5rem;
}
.stake-entity:last-child { border-bottom: none; }
.stake-entity a { color: inherit; transition: color 0.2s; }
.stake-entity a:hover { color: var(--color-royal); }
.stake-entity-arrow { color: var(--color-gold); font-size: 11px; flex-shrink: 0; }

/* ========================================================
   SECTION: INVERSIONISTAS
   ======================================================== */
#inversionistas {
  background: var(--color-navy); color: var(--color-cream);
  padding: 6rem 2.5rem; border-top: 1px solid rgba(200,169,81,0.20); border-bottom: 1px solid rgba(200,169,81,0.20);
}
.invest-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .invest-grid { grid-template-columns: 5fr 7fr; } }
.invest-section-label { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-gold); margin-bottom: 1.5rem; }
.invest-h2 { font-size: clamp(2.5rem, 4vw, 3.125rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 2rem; }
.invest-lead { font-size: 18px; font-weight: 300; color: rgba(250,247,240,0.75); line-height: 1.7; margin-bottom: 2.5rem; }
.btn-cta {
  display: inline-block; background: var(--color-gold); color: var(--color-navy);
  padding: 1rem 2rem; font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s; border: none; cursor: pointer;
}
.btn-cta:hover { background: var(--color-cream); }

.invest-points { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.invest-point { display: flex; align-items: flex-start; gap: 0.75rem; }
.invest-point-num { font-size: 14px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-gold); padding-top: 3px; flex-shrink: 0; }
.invest-point-text { font-size: 20px; font-weight: 500; line-height: 1.3; }
.invest-disclaimer {
  margin-top: 2.5rem; font-size: 12px; font-weight: 400;
  color: rgba(250,247,240,0.50); line-height: 1.7;
  border-left: 2px solid var(--color-gold); padding-left: 1rem;
}

/* ========================================================
   MODAL FORM
   ======================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(15,28,50,0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--color-cream); max-width: 32rem; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  background: var(--color-navy); color: var(--color-cream);
  padding: 1.25rem 1.75rem; display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-header-text { flex: 1; padding-right: 1rem; }
.modal-kicker { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; color: var(--color-gold); margin-bottom: 0.5rem; }
.modal-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.modal-close { font-size: 1.5rem; color: rgba(250,247,240,0.60); transition: color 0.2s; background: none; border: none; cursor: pointer; line-height: 1; margin-top: -4px; }
.modal-close:hover { color: var(--color-gold); }
.modal-body { padding: 1.5rem 1.75rem; }
.modal-subtitle { font-size: 14px; font-weight: 400; color: rgba(15,28,50,0.70); line-height: 1.7; margin-bottom: 1.5rem; }

/* Form Fields */
.form-fields { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-label { font-size: 10px; font-weight: 500; letter-spacing: 0.15em; color: var(--color-royal); margin-bottom: 6px; text-transform: uppercase; }
.form-input, .form-textarea {
  width: 100%; border: 1px solid rgba(15,28,50,0.20); background: var(--color-white);
  padding: 0.625rem 0.75rem; font-size: 14px; font-weight: 400; color: var(--color-navy);
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--color-gold); }
.form-textarea { resize: none; }
.form-privacy {
  font-size: 11px; font-weight: 400; color: rgba(15,28,50,0.50); line-height: 1.7;
  margin-top: 1.25rem; border-left: 2px solid var(--color-gold); padding-left: 0.75rem;
}
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn-cancel {
  flex: 1; border: 1px solid rgba(15,28,50,0.30); color: var(--color-navy);
  padding: 0.75rem; font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  transition: border-color 0.2s; background: none; cursor: pointer;
}
.btn-cancel:hover { border-color: var(--color-navy); }
.btn-send {
  flex: 1; background: var(--color-gold); color: var(--color-navy);
  padding: 0.75rem; font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s; border: none; cursor: pointer;
}
.btn-send:hover { background: var(--color-navy); color: var(--color-cream); }
.btn-send:disabled { opacity: 0.7; cursor: not-allowed; }

/* Form feedback messages */
.form-msg { display: none; margin-top: 0.75rem; padding: 0.75rem 1rem; font-size: 13px; font-weight: 500; }
.form-msg.success { display: block; background: rgba(16,185,129,0.10); color: #065f46; border-left: 3px solid #10b981; }
.form-msg.error   { display: block; background: rgba(239,68,68,0.10); color: #7f1d1d; border-left: 3px solid #ef4444; }
.form-msg.loading { display: block; background: rgba(200,169,81,0.10); color: var(--color-navy); border-left: 3px solid var(--color-gold); }

/* ========================================================
   FOOTER
   ======================================================== */
#contacto {
  background: var(--color-navy); color: var(--color-cream);
  padding: 5rem 2.5rem 2.5rem; border-top: 1px solid rgba(200,169,81,0.20);
}
.footer-grid { display: grid; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo img { height: 36px; width: auto; }
.footer-tagline { margin-top: 1.5rem; font-size: 14px; color: rgba(250,247,240,0.60); line-height: 1.6; }
.footer-addr { margin-top: 0.5rem; font-size: 12px; color: rgba(250,247,240,0.40); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.footer-col-title { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--color-gold); margin-bottom: 1.25rem; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a, .footer-links span {
  font-size: 14px; color: rgba(250,247,240,0.70);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-gold); }
.footer-links a::after { content: " ↗"; font-size: 11px; }
.footer-bottom { border-top: 1px solid rgba(250,247,240,0.10); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.footer-copy { font-size: 12px; font-weight: 500; letter-spacing: 0.15em; color: rgba(250,247,240,0.40); }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: 12px; color: rgba(250,247,240,0.40); transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--color-cream); }
.footer-legal-links a::after { content: none; }

/* ========================================================
   RESPONSIVE — Mobile
   ======================================================== */
@media (max-width: 767px) {
  .container { padding-inline: 1.25rem; }
  .header-inner { padding: 0.875rem 1.25rem; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(250,247,240,0.97); backdrop-filter: blur(12px);
    padding: 1.5rem 1.25rem; gap: 1.25rem; border-bottom: 1px solid rgba(31,56,100,0.10);
    z-index: 39;
  }
  .nav-toggle { display: flex; }
  .hero-h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-sub { font-size: 15px; }
  #inicio { padding-top: 60px; }
  #proyecto, #pilares, #ecosistema, #inversionistas, #contacto { padding-left: 1.25rem; padding-right: 1.25rem; }
  .stats-bar { padding-left: 1.25rem; padding-right: 1.25rem; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .pillars-banner-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================================
   UTILITIES
   ======================================================== */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .hero-svg-overlay,
  .map-svg-overlay {
    opacity: 0.35;
  }
}
