/* ============================================
   ISA — Industrialização Sustentável de Angola
   Design System v3.0 — Inspirado Genspark
   Branco puro · Tipografia limpa · Cards minimalistas
   ============================================ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Cores base */
  --white:           #FFFFFF;
  --bg:              #FAFAF8;
  --bg-alt:          #F4F4F1;
  --bg-card:         #FFFFFF;
  --bg-sidebar:      #F7F7F5;

  /* Verdes ISA */
  --green:           #3A6B22;
  --green-mid:       #4A7C2F;
  --green-light:     #5A8F3C;
  --green-pale:      #EBF5E0;
  --green-ultra:     #F4FAF0;

  /* Dourados ISA */
  --gold:            #B8911A;
  --gold-mid:        #C9A227;
  --gold-light:      #D9B535;
  --gold-pale:       #FBF4D8;
  --gold-ultra:      #FFFDF0;

  /* Bordeaux */
  --burgundy:        #6B0F2A;

  /* Textos */
  --text-900:        #111111;
  --text-700:        #2A2A2A;
  --text-500:        #555555;
  --text-400:        #777777;
  --text-300:        #999999;
  --text-200:        #BBBBBB;

  /* Bordas */
  --border:          #E8E8E5;
  --border-md:       #D8D8D4;
  --border-gold:     rgba(185,145,26,0.30);

  /* Sombras */
  --shadow-xs:       0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:       0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:       0 16px 48px rgba(0,0,0,0.12);

  /* Raios */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  /* Transição */
  --t:     all 0.18s cubic-bezier(0.4,0,0.2,1);
  --t-md:  all 0.28s cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --navbar-h: 68px;
  --max-w:    1360px;
  --sidebar-w: 224px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-700);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-300); }

/* ── Tipografia ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-900);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p   { color: var(--text-500); line-height: 1.7; }
a   { color: var(--green); text-decoration: none; transition: var(--t); }
a:hover { color: var(--gold); }

/* ── Utilitários ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.text-muted { color: var(--text-400); }
.text-sm    { font-size: 0.85rem; }
.text-xs    { font-size: 0.75rem; }
.fw-600     { font-weight: 600; }
.fw-700     { font-weight: 700; }
.fw-800     { font-weight: 800; }

/* ═══════════════════════════════════════════
   NAVBAR — branco, borda bottom sutil
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--t-md);
}

.navbar-inner {
  max-width: var(--max-w);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-md);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.nav-logo-text {
  display: block;
  text-align: left;
  line-height: 1;
  padding-left: 1px;
}

.nav-logo-text .brand {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.04em;
  font-family: 'Montserrat', sans-serif;
}

.nav-logo-text .tagline {
  font-size: 0.42rem;
  color: var(--gold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  display: block;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-500);
  transition: var(--t);
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--text-900);
  background: var(--bg-alt);
}

.nav-menu a.active {
  color: var(--green);
  background: var(--green-pale);
  font-weight: 600;
}

.nav-menu a i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Botão Investir dentro do nav-menu */
.nav-menu .btn-nav-invest {
  margin-left: 8px;
  padding: 8px 16px;
  color: #fff !important;
  background: var(--text-900) !important;
  border-radius: var(--r-full) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-menu .btn-nav-invest:hover {
  background: #333 !important;
  color: #fff !important;
}

.nav-menu .btn-nav-invest i {
  opacity: 1;
  font-size: 0.78rem;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-nav-invest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--text-900);
  color: #fff !important;
  border-radius: var(--r-full);
  font-size: 0.83rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-nav-invest:hover {
  background: #333;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--r-xs);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-700);
  border-radius: 1px;
  transition: var(--t);
}

/* ═══════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: var(--green);
  letter-spacing: 0.1em;
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gold-mid);
  border-radius: 2px;
  animation: loader-fill 1.2s ease forwards;
}

@keyframes loader-fill { to { width: 100%; } }

/* ═══════════════════════════════════════════
   HERO — fundo branco com elementos visuais suaves
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  padding-top: var(--navbar-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 70% 50%, rgba(58,107,34,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 20% 30%, rgba(185,145,26,0.04) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--green-ultra);
  border: 1px solid rgba(58,107,34,0.20);
  border-radius: var(--r-full);
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 1.5rem;
}

.hero-badge i { font-size: 0.65rem; color: var(--gold-mid); }

/* Hero title */
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-900);
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--green);
  display: block;
}

.hero-title .highlight-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero description */
.hero-description {
  font-size: 1rem;
  color: var(--text-500);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.8;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  min-width: 90px;
}

.hero-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-900);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.65rem;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 500;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Hero map preview */
.hero-map-preview {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--white);
  min-height: 460px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-300);
  font-size: 0.72rem;
  z-index: 5;
  animation: float 2.5s ease-in-out infinite;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-indicator i { font-size: 0.85rem; }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  background: var(--text-900);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #333;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--white);
  color: var(--text-700);
  border: 1px solid var(--border-md);
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--border-md);
  color: var(--text-900);
  transform: translateY(-1px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--gold-mid);
  color: #fff;
  border-color: var(--gold-mid);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   DATA STRIP — KPIs compactos, fundo claro
   ═══════════════════════════════════════════ */
.data-strip {
  background: var(--isa-800);
  border-top: none;
  border-bottom: none;
  padding: 0;
  overflow: hidden;
}

.data-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
}

.strip-kpi {
  text-align: center;
  padding: 1.4rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.strip-kpi:hover {
  background: rgba(255,255,255,0.06);
}

.strip-kpi .kpi-num {
  font-size: 1.65rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}

.strip-kpi .kpi-lbl {
  font-size: 0.60rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}

.strip-divider {
  width: 1px;
  background: rgba(255,255,255,0.10);
  align-self: stretch;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  padding: 5rem 2rem;
  background: var(--white);
}

.section-alt {
  background: var(--bg);
}

.section-green {
  background: var(--green-ultra);
  border-top: 1px solid rgba(58,107,34,0.10);
  border-bottom: 1px solid rgba(58,107,34,0.10);
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 0.8rem;
}

.section-badge i { font-size: 0.65rem; color: var(--gold-mid); }

.section-badge.green {
  background: var(--green-ultra);
  border-color: rgba(58,107,34,0.18);
  color: var(--green);
}

.section-badge.green i { color: var(--green); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-900);
  letter-spacing: -0.025em;
}

.section-title span { color: var(--green); }
.section-title .gold { color: var(--gold-mid); }

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-500);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ═══════════════════════════════════════════
   CARDS — branco, borda sutil, sombra mínima
   ═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  transition: var(--t-md);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Card icon */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.card-icon.green   { background: var(--green-ultra); color: var(--green); border-color: rgba(58,107,34,0.15); }
.card-icon.gold    { background: var(--gold-ultra);  color: var(--gold);  border-color: var(--border-gold); }
.card-icon.blue    { background: rgba(30,90,200,0.06); color: #2060B8; border-color: rgba(30,90,200,0.15); }
.card-icon.burgundy{ background: rgba(107,15,42,0.06); color: var(--burgundy); border-color: rgba(107,15,42,0.15); }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 0.4rem;
  font-family: 'Montserrat', sans-serif;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-500);
  line-height: 1.6;
}

/* Grid helpers */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

/* ═══════════════════════════════════════════
   BADGES & CHIPS
   ═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg-alt);
  color: var(--text-500);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.badge-green {
  background: var(--green-ultra);
  color: var(--green);
  border-color: rgba(58,107,34,0.18);
}

.badge-gold {
  background: var(--gold-ultra);
  color: var(--gold);
  border-color: var(--border-gold);
}

.badge-red {
  background: #FFF0F0;
  color: #CC2222;
  border-color: rgba(204,34,34,0.20);
}

.badge-blue {
  background: rgba(30,90,200,0.06);
  color: #1E5AC8;
  border-color: rgba(30,90,200,0.18);
}

/* Filter chips */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-500);
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}

.filter-chip:hover {
  background: var(--bg-alt);
  color: var(--text-900);
  border-color: var(--border-md);
}

.filter-chip.active {
  background: var(--text-900);
  color: #fff;
  border-color: var(--text-900);
}

/* ═══════════════════════════════════════════
   PROGRESS BARS
   ═══════════════════════════════════════════ */
.progress-bar {
  height: 5px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 1s ease;
  width: 0;
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-700);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-900);
  background: var(--white);
  transition: var(--t);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58,107,34,0.08);
}

.form-textarea { resize: vertical; min-height: 100px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border-md);
  border-radius: var(--r-full);
  transition: var(--t);
}

.search-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58,107,34,0.06);
}

.search-bar i { color: var(--text-300); font-size: 0.85rem; }

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--text-900);
  flex: 1;
  font-family: inherit;
}

.search-bar input::placeholder { color: var(--text-300); }

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.tab-container {}

.tab-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-xs);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-500);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--t);
}

.tab-btn:hover { color: var(--text-900); background: rgba(0,0,0,0.04); }

.tab-btn.active {
  background: var(--white);
  color: var(--text-900);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══════════════════════════════════════════
   PAGE HERO (páginas internas)
   ═══════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--navbar-h) + 3rem) 2rem 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero-content { max-width: 680px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--text-400);
}

.breadcrumb a { color: var(--text-400); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb i { font-size: 0.55rem; color: var(--text-300); }
.breadcrumb span { color: var(--text-700); font-weight: 500; }

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--t-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body { padding: 1.8rem; }
.modal-footer { padding: 1.2rem 1.8rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; justify-content: flex-end; }

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--text-700);
  min-width: 240px;
  max-width: 360px;
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border-md);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--t);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  color: var(--text-700);
  font-size: 0.8rem;
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--text-900);
  color: #fff;
  border-color: var(--text-900);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATION
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════
   INFRA / PROVINCE BADGES
   ═══════════════════════════════════════════ */
.infra-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.infra-badge.port     { background: rgba(30,100,200,0.07); color: #1E64C8; border-color: rgba(30,100,200,0.15); }
.infra-badge.airport  { background: var(--gold-ultra);     color: var(--gold); border-color: var(--border-gold); }
.infra-badge.railway  { background: rgba(200,60,100,0.07); color: #C83C64; border-color: rgba(200,60,100,0.15); }
.infra-badge.zes      { background: var(--green-ultra);    color: var(--green); border-color: rgba(58,107,34,0.18); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: var(--text-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
  border-top: 3px solid var(--gold-mid);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: var(--t);
}

.footer-social a:hover {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
  color: #fff;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: var(--t);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-map-preview { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: fixed; top: var(--navbar-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 10px 14px; width: 100%; }
  .nav-toggle { display: flex; }
  .btn-nav-invest { display: none; }
  .hero-content { padding: 3rem 1.5rem 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .data-strip-inner { gap: 0; flex-wrap: wrap; }
  .strip-divider { display: none; }
  .strip-kpi { min-width: 33%; padding: 1rem 0.5rem; }
}

@media (max-width: 480px) {
  :root { --navbar-h: 60px; }
  .container { padding: 0 1rem; }
  .section { padding: 3rem 1rem; }
  .card { padding: 1.2rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}
