:root {
  /* Color Palette - Real Corporate Identity (Extracted from Logos) */
  --primary: #051D3B;       /* Navy Blue from logo */
  --primary-hover: #0a2e5c;
  --secondary: #3E7FB8;     /* Medium Blue from logo */
  --accent: #6AB4D6;        /* Light Blue from logo */
  
  --text-main: #051D3B;     /* High contrast navy */
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  
  --bg-main: #FFFFFF;
  --bg-alt: #F1F5F9;
  --bg-gradient: linear-gradient(135deg, #E0F2FE 0%, #FFFFFF 100%);

  /* Typography */
  --font-serif: 'Outfit', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgba(5, 29, 59, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(5, 29, 59, 0.1), 0 10px 10px -5px rgba(5, 29, 59, 0.04);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Spacing */
  --section-padding: 8rem 2rem;
  --container-max: 1300px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: var(--section-padding);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Premium Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(62, 127, 184, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -10px rgba(5, 29, 59, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #1E293B;
  transform: translateY(-2px);
}

/* Animations (Classes to be applied via Script/Intersection Observer) */
/* Header Styles - Consolidated */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(5, 29, 59, 0.08);
  box-shadow: 0 2px 12px rgba(5, 29, 59, 0.08);
}

#main-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#main-header.scrolled .nav-links a {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent) !important;
}

#main-header .logo img {
  height: 65px;
  width: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: none;
}

#main-header.scrolled .logo img {
  height: 55px;
  filter: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  margin-top: 0;
  padding-top: 90px;
  overflow: hidden;
  background-color: var(--primary); /* Deep blue fallback */
}

/* Split Layout Option - Elite */
.hero.split-layout {
  height: 100vh;
  min-height: 700px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-container-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
}

.hero.split-layout .video-container {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.hero.split-layout .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero.split-layout .hero-content {
  padding: 6rem 5% 3rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #051D3B 0%, #08244a 100%);
  position: relative;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 20px 0 50px rgba(0,0,0,0.3);
  z-index: 2;
}

/* Premium Background Pattern */
.hero.split-layout .hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero.split-layout h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 950;
  line-height: 0.95;
  margin-bottom: 2rem;
  letter-spacing: -3px;
  text-transform: none;
  background: linear-gradient(to right, #ffffff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero.split-layout h1 span {
  color: var(--accent);
  display: inline;
  font-weight: 800;
  letter-spacing: -1.5px;
  -webkit-text-fill-color: var(--accent);
}

.hero.split-layout p {
  font-size: 1.35rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  max-width: 650px;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

.hero.split-layout .badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
  align-self: flex-start;
}

/* Refined Stats */
.hero.split-layout .hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero.split-layout .stat-item {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.6rem;
}

.hero.split-layout .stat-number {
  font-size: 2.2rem;
  color: white;
  white-space: nowrap;
}

.hero.split-layout .stat-label {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.hero-content .badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(62, 127, 184, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 2rem;
}

.hero h1 span {
  color: var(--secondary);
  display: block;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
}

/* Footer Section */
#main-footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between; /* Logo left, Icons right */
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.social-links-footer {
  display: flex;
  gap: 1rem;
}

.social-links-footer a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px; /* Rounded squares */
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links-footer a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  color: white;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  padding-top: 1rem;
  padding-bottom: 2rem; /* Added margin at the very bottom */
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Reality Section */
.reality {
  background-color: var(--bg-main);
}

.section-badge {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1rem;
}

.reality h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

.reality h2 span {
  color: var(--secondary);
}

.reality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.reality-content .lead {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 2rem;
}

.reality-details p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.impact-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

.reality-image-container .image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.reality-image-container img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.quote-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 300px;
  box-shadow: var(--shadow-lg);
}

.quote-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* Projects Section */
.projects {
  background-color: var(--bg-alt);
}

.section-desc {
  max-width: 600px;
  margin: 0 auto 4rem;
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(5, 29, 59, 0.05);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.btn-link {
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link:hover {
  gap: 0.75rem;
}

/* Contact Section */
/* Contact Section — WhatsApp */
.contact {
  background: var(--bg-alt);
}

.contact-wa-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-wa-content h2 {
  font-size: 2.8rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.15;
}

.contact-wa-content h2 span {
  color: var(--secondary);
}

.contact-wa-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-list li i {
  color: var(--secondary);
  width: 18px;
  text-align: center;
}

.contact-list li a {
  color: var(--secondary);
  font-weight: 600;
}

.contact-list li a:hover {
  text-decoration: underline;
}

.wa-lead {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wa-btn i {
  font-size: 2rem;
  flex-shrink: 0;
}

.wa-btn div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wa-btn strong {
  font-size: 1rem;
  font-weight: 700;
}

.wa-btn span {
  font-size: 0.82rem;
  opacity: 0.85;
}

.wa-btn-primary {
  background: #25D366;
  color: white;
  box-shadow: 0 8px 20px -5px rgba(37, 211, 102, 0.45);
}

.wa-btn-primary:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -8px rgba(37, 211, 102, 0.5);
  color: white;
}

.wa-btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
}

.wa-btn-secondary i {
  color: #25D366;
}

.wa-btn-secondary:hover {
  border-color: #25D366;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.wa-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa-note i {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .contact-wa-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Impact Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.h-stretch { grid-column: span 2; }
.v-stretch { grid-row: span 2; }

/* Testimonials */
.testimonials {
  background: var(--bg-gradient);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 3.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid rgba(62, 127, 184, 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.quote-icon {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--accent);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  opacity: 0.2;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Elite Animations */
.pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(62, 127, 184, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(62, 127, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 127, 184, 0); }
}

/* Transparency Section */
.transparency {
  background: white;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

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

.bar-item {
  width: 100%;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.bar-bg {
  height: 10px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 99px;
  transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero.split-layout {
    height: auto;
    min-height: auto;
  }

  .hero-container-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero.split-layout .hero-content {
    padding: 8rem 2rem 4rem;
    order: 1;
  }

  .hero.split-layout .video-container {
    height: 60vh; /* More prominent video height */
    min-height: 350px;
    order: 2;
  }

  .hero.split-layout h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: 1.2;
    margin-bottom: 2rem;
  }

  .hero.split-layout p {
    font-size: 1.1rem;
    padding-right: 0;
  }

  .reality-grid, .transparency-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info, .contact-form {
    padding: 3.5rem 2rem;
  }

  .hero.split-layout {
    margin-top: 3.5rem; /* Breathing room for header on mobile devices */
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Header en móvil: logo a la izquierda, hamburger a la derecha */
  .nav-container {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  /* Ocultar botón Donar Ahora en móvil (está en el menú overlay) */
  .header-actions .btn {
    display: none;
  }

  /* Asegurar que el hamburger sea visible */
  .hamburger {
    display: flex !important;
    order: 2;
  }

  /* ── CENTRADO PREMIUM EN MÓVIL ── */
  .section-badge,
  .section-header,
  .section-header h2,
  .section-header p,
  .section-desc,
  .reality h2,
  .reality p,
  .transparency h2,
  .transparency p,
  .donar h2,
  .donar .section-desc,
  .donar-label,
  .testimonials h2,
  .testimonials .section-desc,
  .hero.split-layout .badge,
  .hero.split-layout p {
    text-align: center;
  }

  .section-header {
    align-items: center;
  }

  .section-badge {
    display: block;
  }

  /* Centrar botones de acción del hero */
  .hero-btns {
    display: flex;
    justify-content: center;
  }

  /* Stats centradas */
  .hero.split-layout .hero-stats {
    align-items: stretch;
  }

  .hero.split-layout .stat-item {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .hero.split-layout .hero-content {
    padding: 6rem 1.5rem 3rem;
  }

  .hero.split-layout .hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  .hero.split-layout .stat-item {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
  }

  .hero.split-layout .stat-number {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .stat-item {
    min-width: 120px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
    width: 100%;
    border-radius: 16px;
  }

  .testimonials {
    padding: 4rem 1rem;
  }

  /* Mostrar hamburger en móvil */
  .hamburger {
    display: flex;
  }

  /* Reducir padding vertical en secciones */
  section:not(.hero) {
    padding: 4rem 1.5rem;
  }

  /* Fix tarjetas de proyectos en móvil */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Fix quote-card absolute overflow */
  .quote-card {
    position: static;
    margin-top: 1.5rem;
    max-width: 100%;
  }

  /* Stats: columna única en móvil */
  .hero.split-layout .hero-stats {
    flex-direction: column;
  }

  /* Donar section en móvil: columna única */
  .donar-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .donar-form-wrap {
    padding: 2rem 1.5rem;
  }
}

/* ==============================================
   480PX — Pantallas muy pequeñas (iPhone SE)
============================================== */
@media (max-width: 480px) {
  .hero.split-layout h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
    letter-spacing: -1px;
  }

  .hero.split-layout .hero-stats {
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .project-card {
    padding: 2rem 1.5rem;
  }

  .amount-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .contact-info,
  .contact-form {
    padding: 2.5rem 1.5rem;
  }
}

/* ==============================================
   ANIMATIONS — Reveal & Fade
============================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.9s ease 0.1s forwards;
}

.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.9s ease 0.25s forwards;
}

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.15s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   CLASES UTILITARIAS
============================================== */
.w-full { width: 100%; }
.mt-2 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* ==============================================
   HAMBURGER MENU
============================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  border-radius: 6px;
}

.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

.nav-mobile-overlay.open {
  transform: translateX(0);
}

.nav-mobile-link {
  color: white;
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.2s ease;
}

.nav-mobile-link:hover {
  color: var(--accent);
}

/* ==============================================
   SECCIÓN DONAR
============================================== */
.donar {
  background: var(--bg-gradient);
}

.donar h2 span {
  color: var(--secondary);
}

.donar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.donar-label {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

.amount-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 0.9rem 1.8rem;
  border: 2px solid var(--secondary);
  border-radius: 9999px;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--secondary);
  color: white;
}

.amount-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.amount-custom:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(62, 127, 184, 0.1);
}

.amount-custom > span {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.amount-custom input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1.1rem;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--text-main);
}

.donar-impact {
  margin-top: 0.5rem;
}

.impact-item {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}

.impact-item.active {
  display: flex;
}

.impact-item > span {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.impact-item p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.donar-form-wrap {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(5, 29, 59, 0.05);
}

.donar-form .form-group,
.contact-form .form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.donar-form .form-group label,
.contact-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.donar-form .form-group input,
.donar-form .form-group textarea,
.donar-form .form-group select,
.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.donar-form .form-group input::placeholder,
.donar-form .form-group textarea::placeholder,
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: #a0aec0;
}

.donar-form .form-group input:focus,
.donar-form .form-group textarea:focus,
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--secondary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(62, 127, 184, 0.15);
}

.btn-donar {
  font-size: 1.1rem;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.donar-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.donar-note i {
  color: var(--secondary);
  margin-right: 0.2rem;
}

/* ==============================================
   WHATSAPP FLOATING BUTTON
============================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 997;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-float:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

/* ==============================================
   FOCUS-VISIBLE — ACCESIBILIDAD GLOBAL
============================================== */
.btn:focus-visible,
.btn-link:focus-visible,
.nav-links a:focus-visible,
.amount-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==============================================
   SECCIÓN EQUIPO
============================================== */
.team {
  background: var(--bg-alt);
}

.team h2 span {
  color: var(--secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(5, 29, 59, 0.05);
  transition: all 0.35s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--avatar-color, var(--secondary));
  color: white;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  letter-spacing: 1px;
}

.team-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.team-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================
   PROJECT CARDS — PROGRESO Y CTA
============================================== */
.project-meta {
  margin: 1.5rem 0;
  border-top: 1px solid #E2E8F0;
  padding-top: 1.25rem;
}

.project-goal {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.goal-raised {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--primary);
}

.goal-target {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-bar-bg {
  height: 8px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.project-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.goal-percent {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.goal-percent.urgent {
  color: #e05252;
}

.btn-project {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px -3px rgba(62, 127, 184, 0.35);
}

.btn-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(5, 29, 59, 0.4);
  color: white;
}

/* ==============================================
   TESTIMONIOS — AVATAR
============================================== */
@media (min-width: 769px) {
  .testimonials-slider {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--av-color, var(--secondary));
  color: white;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* ==============================================
   MOBILE OVERRIDES — Final (highest cascade priority)
============================================== */
@media (max-width: 768px) {
  /* Donar section: stacked single column */
  .donar-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .donar-amounts {
    width: 100%;
  }

  .donar-form-wrap {
    width: 100%;
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .amount-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .amount-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .amount-custom {
    margin-bottom: 1.5rem;
  }

  .btn-donar {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  /* Testimonials: full width cards */
  .testimonials-slider {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}
