/* ═══════════════════════════════════════════
   ZUHE ENERGY — Design System
   Inspired by Stripe.com
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --brand:        #1a237e;
  --brand-mid:    #283593;
  --brand-glow:   rgba(26, 35, 126, 0.4);
  --gold:         #DAA520;
  --gold-dim:     rgba(218, 165, 32, 0.15);
  --gold-border:  rgba(218, 165, 32, 0.35);

  /* Dark surfaces */
  --bg-dark:      #07080f;
  --bg-section:   #0c0e1f;
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-hover:rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-gold:  rgba(218, 165, 32, 0.3);

  /* Light surfaces */
  --bg-light:     #ffffff;
  --bg-light-alt: #f5f7ff;

  /* Text */
  --text-light:   #eef0ff;
  --text-muted:   rgba(238, 240, 255, 0.55);
  --text-dark:    #0d1117;
  --text-dark-2:  #4b5563;

  /* Fonts */
  --font-head:    'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing & shape */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  100px;
  --shadow:       0 4px 24px rgba(0,0,0,0.18);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.28);
  --shadow-gold:  0 0 32px rgba(218,165,32,0.15);

  /* Transitions */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --dur:          0.28s;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

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

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur), background var(--dur);
}

.nav-links a:hover { color: #fff; background: var(--surface-hover); }

.nav-cta {
  background: var(--gold) !important;
  color: #07080f !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.45rem 1.2rem !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  transition: opacity var(--dur) !important;
}
.nav-cta:hover { opacity: 0.88; background: var(--gold) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.4rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem; right: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 14, 31, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    gap: 0.2rem;
  }

  .nav-links.active { display: flex; }

  .nav-links a {
    text-align: center;
    padding: 0.7rem 1rem;
  }

  .nav-cta { margin-left: 0 !important; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  overflow: hidden;
  background: var(--bg-dark);
}

/* Animated gradient orbs (Stripe-style) */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,35,126,0.55) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: orbDrift 14s ease-in-out infinite alternate;
}

.hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(218,165,32,0.12) 0%, transparent 70%);
  bottom: -100px; right: -50px;
  animation: orbDrift 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-gold);
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.25rem;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-stat i { color: var(--gold); }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #07080f;
}
.btn-primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(218,165,32,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover {
  background: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  padding: 6rem 2rem;
}

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

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title-light { color: #fff; }
.section-title-dark  { color: var(--text-dark); }

.section-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}
.section-sub-light { color: var(--text-muted); }
.section-sub-dark  { color: var(--text-dark-2); }

.section-header { margin-bottom: 3.5rem; }

/* ═══════════════════════════════════════════
   BENEFITS GRID
   ═══════════════════════════════════════════ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #e8eaf6;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.benefit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.benefit-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--text-dark-2);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   IMPACT METRICS (dark section)
   ═══════════════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--dur);
}

.metric-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.metric-card:hover::before { opacity: 1; }

.metric-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.metric-value {
  font-family: var(--font-head);
  font-size: clamp(0.8rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  /* word-break: break-word;
  overflow-wrap: break-word; */
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* Larger variant for impacto page */
.metric-card-lg .metric-value {
  font-size: clamp(1rem, 2vw, 1.9rem);
  white-space: nowrap;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   MINI MAP (index)
   ═══════════════════════════════════════════ */
.mini-map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 340px;
  margin-bottom: 2rem;
}

#mini-map { width: 100%; height: 100%; }

.map-cta {
  text-align: center;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(26,35,126,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ═══════════════════════════════════════════
   GLASS CARDS (dark sections)
   ═══════════════════════════════════════════ */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: background var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

.glass-card h2, .glass-card h3 {
  font-family: var(--font-head);
  color: #fff;
  margin-bottom: 1rem;
}

.glass-card p, .glass-card li {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   LIGHT CARDS (light sections)
   ═══════════════════════════════════════════ */
.light-card {
  background: var(--bg-light);
  border: 1px solid #e5e7f0;
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}

.light-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.light-card h2, .light-card h3 {
  font-family: var(--font-head);
  color: var(--brand);
  margin-bottom: 1rem;
}

.light-card p, .light-card li {
  color: var(--text-dark-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-light);
  border: 1px solid #e5e7f0;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  font-size: 2.2rem;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-dark-2);
  line-height: 1.7;
}

.service-tag {
  display: inline-block;
  background: #e8eaf6;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   NOSOTROS PAGE
   ═══════════════════════════════════════════ */
.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.nosotros-values ul {
  list-style: none;
  padding: 0;
}

.nosotros-values li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.7;
}

.nosotros-values li:last-child { border-bottom: none; }

.nosotros-values li strong {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ═══════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════ */
.page-hero {
  padding: 9rem 2rem 5rem;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,35,126,0.4) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-detail span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-detail a { color: var(--text-muted); transition: color var(--dur); }
.contact-detail a:hover { color: var(--gold); }

.contact-form-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid #e5e7f0;
}

.contact-form-card h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.contact-form-card .form-sub {
  color: var(--text-dark-2);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--bg-light-alt);
  color: var(--text-dark);
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
  background: #fff;
}

.submit-button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-button:hover {
  background: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }

/* ═══════════════════════════════════════════
   GALERÍA — Masonry Grid
   ═══════════════════════════════════════════ */
.galeria-masonry {
  columns: 3 260px;
  column-gap: 1rem;
  padding: 0 var(--page-pad) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.galeria-item:hover {
  box-shadow: 0 0 0 1px var(--border-gold), 0 8px 32px rgba(218,165,32,0.18);
  transform: translateY(-3px);
}

.galeria-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.galeria-item:hover img {
  transform: scale(1.07);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(7,8,15,0.8) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  color: rgba(255,255,255,0.9);
  font-size: 1.5rem;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 8, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: calc(100vw - 150px);
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.92);
  opacity: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
              opacity 0.18s ease;
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: rgba(238,240,255,0.45);
  font-size: 0.82rem;
  gap: 1rem;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: rgba(218,165,32,0.18);
  border-color: var(--border-gold);
}

.lightbox-nav:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ═══════════════════════════════════════════
   IMPACTO PAGE — FULL MAP
   ═══════════════════════════════════════════ */
.map-section { padding: 0 2rem 5rem; }
.map-section .section-inner { max-width: 1200px; }

.map-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.map-date-display {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 120px;
}

#impact-map {
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.station-card {
  background: var(--bg-light);
  border: 1px solid #e5e7f0;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}

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

.station-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.station-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.station-badge {
  background: #e8eaf6;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.station-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.station-stat-item { font-size: 0.85rem; }
.station-stat-label {
  color: var(--text-dark-2);
  display: block;
  margin-bottom: 0.15rem;
}
.station-stat-value {
  font-weight: 700;
  color: var(--text-dark);
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.fade-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: #050610;
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-location i { color: var(--gold); }

.footer h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--dur);
}

.footer-links a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--dur);
}

.footer-contact-item:hover { color: var(--gold); }
.footer-contact-item i { color: var(--gold); font-size: 0.95rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */
.gold-divider {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
  .page-hero { padding: 7.5rem 1.25rem 3.5rem; }
  .hero { padding: 7rem 1.25rem 4rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; align-items: center; gap: 0.75rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer { padding-top: 3rem; }

  #impact-map { height: 340px; }
  .galeria-masonry { columns: 2 200px; }
  .lightbox-content { max-width: calc(100vw - 90px); }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
