@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   FUNDACIÓN GUARDIANES DE GEA - DESIGN SYSTEM
   Premium Environmental NGO Landing Page
   ========================================================================== */

/* --------------------------------------------------------------------------
   CUSTOM PROPERTIES & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --gea-forest: #1a4a2e;
  --gea-forest-rgb: 26, 74, 46;
  --gea-emerald: #2d8a4e;
  --gea-emerald-rgb: 45, 138, 78;
  --gea-sage: #6db88a;
  --gea-sage-rgb: 109, 184, 138;
  --gea-mint: #a8dfc2;
  --gea-mint-rgb: 168, 223, 194;
  --gea-sky: #b8e8d4;
  --gea-sky-rgb: 184, 232, 212;
  --gea-cream: #f0faf4;
  --gea-cream-rgb: 240, 250, 244;
  --gea-gold: #d4a843;
  --gea-gold-rgb: 212, 168, 67;
  --gea-gold-dark: #b8922e;
  --gea-white: #ffffff;
  --gea-dark: #0d2618;
  --gea-dark-rgb: 13, 38, 24;
  --gea-text: #2c3e35;
  --gea-text-light: #5a7d6a;
  --gea-whatsapp: #25D366;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Easing */
  --easing-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--gea-text);
  background-color: var(--gea-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--gea-emerald);
  color: var(--gea-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gea-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--gea-sage);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gea-emerald);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--gea-forest);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.small {
  font-size: 0.875rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }

.text-gradient {
  background: linear-gradient(135deg, var(--gea-forest), var(--gea-emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

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

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section-padding {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--easing-smooth);
}

.btn--primary {
  background-color: var(--gea-emerald);
  color: var(--gea-white);
}
.btn--primary:hover {
  background-color: var(--gea-forest);
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(var(--gea-emerald-rgb), 0.3);
}

.btn--secondary {
  background-color: transparent;
  border: 2px solid var(--gea-white);
  color: var(--gea-white);
}
.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--gold {
  background-color: var(--gea-gold);
  color: var(--gea-white);
}
.btn--gold:hover {
  background-color: var(--gea-gold-dark);
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(var(--gea-gold-rgb), 0.3);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--gea-emerald);
  color: var(--gea-emerald);
}
.btn--outline:hover {
  background-color: var(--gea-emerald);
  color: var(--gea-white);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.btn--pulse {
  animation: pulse 2s infinite;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--gea-white);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

.header--scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* BRANDING NAVBAR */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nav__brand-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.nav__brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gea-forest);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block; /* Asegura visibilidad */
}

@media (max-width: 768px) {
  .nav__brand-text {
    font-size: 0.8rem;
    max-width: 150px;
  }
}

.nav__logo-img {
  max-height: 50px;
  transition: height 0.3s ease;
}

.header--scrolled .nav__logo-img {
  height: 40px;
}

.nav__links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  text-decoration: none;
  color: var(--gea-forest);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gea-emerald);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--gea-emerald);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--gea-emerald);
}
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  display: none;
}
@media (min-width: 1024px) {
  .nav__cta {
    display: inline-flex;
  }
}

.nav__toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gea-forest);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav__toggle-bar:nth-child(1) { top: 0; }
.nav__toggle-bar:nth-child(2) { top: 9px; }
.nav__toggle-bar:nth-child(3) { top: 18px; }

.nav--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.nav__links.nav--open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--gea-white);
  justify-content: center;
  align-items: center;
  z-index: 999;
  gap: 2rem;
  padding: 2rem;
}

.nav__links.nav--open .nav__link {
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(var(--gea-dark-rgb), 0.7), rgba(var(--gea-dark-rgb), 0.3));
  z-index: 1;
}

.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  background-color: var(--gea-mint);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 10s infinite ease-in-out;
}
/* Example particles, real implementation might use JS or more specific nth-childs */
.hero__particle:nth-child(1) { width: 10px; height: 10px; left: 10%; bottom: -10px; animation-delay: 0s; }
.hero__particle:nth-child(2) { width: 15px; height: 15px; left: 30%; bottom: -15px; animation-delay: 2s; }
.hero__particle:nth-child(3) { width: 8px; height: 8px; left: 60%; bottom: -8px; animation-delay: 4s; }
.hero__particle:nth-child(4) { width: 20px; height: 20px; left: 80%; bottom: -20px; animation-delay: 1s; }

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--gea-white);
  max-width: 800px;
  padding: 0 1.5rem;
  margin-top: 80px; /* Offset for header */
}

.hero__badge {
  display: inline-block;
  background-color: var(--gea-mint);
  color: var(--gea-forest);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero__title {
  color: var(--gea-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  word-spacing: 2px;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero__ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--gea-white);
  opacity: 0.7;
  animation: bounce 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about {
  background-color: var(--gea-cream);
}

.about__header {
  text-align: center;
  margin-bottom: 4rem;
}

.about__subtitle {
  color: var(--gea-text-light);
  max-width: 700px;
  margin: 1rem auto 0;
}

.about__story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about__story {
    grid-template-columns: 1fr 1fr;
  }
}

.about__story-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__story-text p:first-of-type {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gea-forest);
}

.about__name-origin {
  background-color: var(--gea-mint);
  border-left: 4px solid var(--gea-emerald);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gea-forest);
  margin-top: 1rem;
}

.about__story-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
}
.about__story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.about__card {
  background-color: var(--gea-white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--gea-emerald);
  transition: all 0.3s var(--easing-smooth);
}

.about__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about__card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--gea-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gea-forest);
  margin-bottom: 1.5rem;
}

.about__card-title {
  color: var(--gea-forest);
  margin-bottom: 0.75rem;
}

.about__card-text {
  color: var(--gea-text-light);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   IMPACT SECTION
   -------------------------------------------------------------------------- */
.impact {
  background: linear-gradient(135deg, var(--gea-forest), var(--gea-dark));
  color: var(--gea-white);
  position: relative;
  overflow: hidden;
}

.impact__bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.impact__container {
  position: relative;
  z-index: 1;
}

.impact__title {
  color: var(--gea-white);
  text-align: center;
}

.impact__subtitle {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 1rem auto 4rem;
  max-width: 600px;
}

.impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 480px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .impact__grid { grid-template-columns: repeat(4, 1fr); }
}

.impact__item {
  text-align: center;
  padding: 2.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.impact__item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
}

.impact__icon {
  font-size: 2.5rem;
  color: var(--gea-mint);
  margin-bottom: 1rem;
}

.impact__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--gea-gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.impact__label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   PROJECT SECTION (Faro Ecológico)
   -------------------------------------------------------------------------- */
.project {
  background-color: var(--gea-white);
}

.project__header {
  text-align: center;
  margin-bottom: 4rem;
}

.project__badge {
  display: inline-block;
  background-color: var(--gea-emerald);
  color: var(--gea-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project__subtitle {
  color: var(--gea-text-light);
  max-width: 700px;
  margin: 1rem auto 0;
}

.project__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gea-sage);
  margin-top: 1rem;
  font-weight: 500;
}

.project__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .project__content {
    grid-template-columns: 1fr 1fr;
  }
}

.project__image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}

.project__image {
  width: 100%;
  height: auto;
  display: block;
}

.project__image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project__image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(var(--gea-dark-rgb), 0.9), transparent);
  color: var(--gea-white);
  padding: 2rem 1.5rem 1.5rem;
  font-weight: 500;
}

.project__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project__feature {
  display: flex;
  gap: 1.5rem;
  background-color: var(--gea-cream);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project__feature:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.project__feature:nth-child(1) { border-color: #3b82f6; }
.project__feature:nth-child(2) { border-color: #ef4444; }
.project__feature:nth-child(3) { border-color: #22c55e; }
.project__feature:nth-child(4) { border-color: #f59e0b; }

.project__feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gea-white);
  font-size: 1.25rem;
}

.project__feature:nth-child(1) .project__feature-icon { background-color: #3b82f6; }
.project__feature:nth-child(2) .project__feature-icon { background-color: #ef4444; }
.project__feature:nth-child(3) .project__feature-icon { background-color: #22c55e; }
.project__feature:nth-child(4) .project__feature-icon { background-color: #f59e0b; }

.project__feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project__feature-text {
  color: var(--gea-text);
  font-size: 0.95rem;
  margin: 0;
}

.project__innovation {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--gea-emerald), var(--gea-forest));
  color: var(--gea-white);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 15px 30px rgba(var(--gea-emerald-rgb), 0.2);
}
.project__innovation h3 {
  color: var(--gea-white);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   GALLERY SECTION
   -------------------------------------------------------------------------- */
.gallery {
  background-color: var(--gea-cream);
}

.gallery__title {
  text-align: center;
}

.gallery__subtitle {
  text-align: center;
  color: var(--gea-text-light);
  margin: 1rem auto 2rem;
  max-width: 600px;
}

.gallery__tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery__tab {
  background-color: var(--gea-white);
  border: 2px solid var(--gea-white);
  color: var(--gea-forest);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.gallery__tab:hover {
  border-color: var(--gea-emerald);
  color: var(--gea-emerald);
}

.gallery__tab--active {
  background-color: var(--gea-emerald);
  color: var(--gea-white);
  border-color: var(--gea-emerald);
}
.gallery__tab--active:hover {
  color: var(--gea-white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background-color: var(--gea-mint); /* placeholder bg */
}

.gallery__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.gallery__item:hover .gallery__item-img {
  transform: scale(1.04);
}

.gallery__item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(var(--gea-dark-rgb), 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-caption {
  color: var(--gea-white);
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__item-caption {
  transform: translateY(0);
}

.gallery__item--hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: var(--gea-white);
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.lightbox__close:hover {
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: var(--gea-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.lightbox__nav:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact {
  background: linear-gradient(135deg, var(--gea-emerald), var(--gea-forest));
  color: var(--gea-white);
  position: relative;
}

.contact__title {
  color: var(--gea-white);
  text-align: center;
}

.contact__subtitle {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 1rem auto 4rem;
  max-width: 600px;
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact__content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__form {
  background-color: var(--gea-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  color: var(--gea-text);
}

.contact__form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.contact__label {
  display: block;
  font-weight: 500;
  color: var(--gea-forest);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact__input,
.contact__textarea,
.contact__select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0efe6;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9fdfa;
}

.contact__input:focus,
.contact__textarea:focus,
.contact__select:focus {
  border-color: var(--gea-emerald);
  outline: none;
  background-color: var(--gea-white);
  box-shadow: 0 0 0 3px rgba(var(--gea-emerald-rgb), 0.1);
}

.contact__textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__submit {
  width: 100%;
  margin-top: 1rem;
}

.contact__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.contact__info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--gea-white);
}

.contact__info-title {
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact__info-text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact__whatsapp {
  margin-top: 2rem;
  background-color: var(--gea-whatsapp);
  color: var(--gea-white);
  width: 100%;
}
.contact__whatsapp:hover {
  background-color: #20b858;
  transform: scale(1.02);
}

.contact__whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--gea-dark);
  color: var(--gea-white);
  padding-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: var(--gea-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer__logo-img {
  height: 50px;
  filter: brightness(0) invert(1); /* Ensure it's white on dark bg */
}

.footer__description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--gea-white);
  position: relative;
  display: inline-block;
}

.footer__col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--gea-emerald);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer__link:hover {
  color: var(--gea-white);
  transform: translateX(4px);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gea-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--gea-emerald);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   FLOATING ELEMENTS
   -------------------------------------------------------------------------- */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.floating-cta--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta__btn {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
}

.floating-whatsapp__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--gea-whatsapp);
  color: var(--gea-white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.floating-whatsapp__btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.floating-whatsapp__btn:hover {
  transform: scale(1.1);
  animation: none;
}

@media (max-width: 767px) {
  .floating-cta {
    bottom: 1rem;
    right: 1rem;
  }
  .floating-whatsapp {
    bottom: 1rem;
    left: 1rem;
  }
  .floating-whatsapp__btn {
    width: 50px;
    height: 50px;
  }
  .floating-whatsapp__btn svg {
    width: 28px;
    height: 28px;
  }
}

/* --------------------------------------------------------------------------
   ANIMATIONS & EFFECTS
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--easing-smooth), transform 0.6s var(--easing-smooth);
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up { transform: translateY(30px); }
.fade-up.animate-visible { transform: translateY(0); }

.fade-left { transform: translateX(-30px); }
.fade-left.animate-visible { transform: translateX(0); }

.fade-right { transform: translateX(30px); }
.fade-right.animate-visible { transform: translateX(0); }

.scale-in { transform: scale(0.9); }
.scale-in.animate-visible { transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes float {
  0% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(-20px); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 0.2; }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--gea-gold-rgb), 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(var(--gea-gold-rgb), 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--gea-gold-rgb), 0); }
}

.floating-whatsapp__btn.pulse {
  animation: pulse-whatsapp 2s infinite;
}
@keyframes pulse-whatsapp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* --------------------------------------------------------------------------
   BRIDGING STYLES (Compatibility between HTML and CSS class names)
   -------------------------------------------------------------------------- */

/* Section base class - used on all main sections */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Section header pattern used across all sections */
.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__subtitle {
  color: var(--gea-text-light);
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

/* About section uses about__text / about__image instead of about__story-text / about__story-image */
.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__text p:first-of-type {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gea-forest);
  line-height: 1.8;
}

.about__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Impact section overrides for dark background */
.impact {
  background: linear-gradient(135deg, var(--gea-forest) 0%, var(--gea-dark) 100%);
  color: var(--gea-white);
  position: relative;
  overflow: hidden;
}

.impact .section__header {
  margin-bottom: 4rem;
}

.impact .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.impact__title {
  color: var(--gea-white);
}

.impact__number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.125rem;
  margin-bottom: 0.5rem;
}

.impact__suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--gea-gold);
}

/* Contact section grid (HTML uses contact__grid, CSS has contact__content) */
.contact {
  background: linear-gradient(135deg, var(--gea-emerald) 0%, var(--gea-forest) 100%);
  color: var(--gea-white);
  position: relative;
}

.contact .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__form-wrapper {
  /* Wrapper for the form card */
}

/* Form groups (HTML uses form__group instead of contact__form-group) */
.form__group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form__group label {
  display: block;
  font-weight: 500;
  color: var(--gea-forest);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-family: var(--font-heading);
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0efe6;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9fdfa;
  color: var(--gea-text);
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--gea-emerald);
  outline: none;
  background-color: var(--gea-white);
  box-shadow: 0 0 0 3px rgba(var(--gea-emerald-rgb), 0.1);
}

.form__group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Button block (full-width) */
.btn--block {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Contact info items wrapper */
.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__info h4 {
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--gea-white);
}

.contact__info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Project section captions */
.project__caption {
  padding: 1rem 1.5rem;
  background: linear-gradient(transparent, rgba(var(--gea-dark-rgb), 0.7));
  color: var(--gea-white);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  margin-top: -3rem;
  position: relative;
  z-index: 1;
  border-radius: 0 0 16px 16px;
}

.project__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project__image img {
  width: 100%;
  height: auto;
  display: block;
}

.project__feature-text h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gea-forest);
  margin-bottom: 0.5rem;
}

.project__feature-text p {
  color: var(--gea-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Footer variants used in HTML */
.footer__desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer__title {
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--gea-white);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--gea-emerald);
  border-radius: 2px;
}

.footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gea-white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer__social a:hover {
  background-color: var(--gea-emerald);
  transform: translateY(-3px);
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* Contact section text-gradient override (white text on gradient bg) */
.contact__title.text-gradient {
  background: linear-gradient(135deg, var(--gea-white) 0%, var(--gea-sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Badge used in project section header */
.badge {
  display: inline-block;
  background-color: var(--gea-emerald);
  color: var(--gea-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
