/* --- Variables --- */
:root {
  --color-primary: #2A9DFF; /* Azul Esperanza */
  --color-secondary: #6A3093; /* Morado Unión */
  --color-accent: #E74C3C; /* Rojo Corazón */
  --color-bg: #F9F9F9;
  --color-text: #333333;
  --color-light: #ffffff;
  --color-gray: #555555;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
a {
  text-decoration: none;
  color: var(--color-primary);
}
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #c0392b;
}

/* --- Header --- */
.header {
  background: var(--color-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secondary);
}
.logo-img { 
  height: 80px; 
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}
.nav-list a {
  font-weight: 600;
  color: var(--color-text);
}
.lang-switch {
  display: flex;
  gap: 6px;
}
.lang-btn {
  padding: 4px 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}
.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 24px;
}

/* --- Sections --- */
.section {
  padding: 60px 0;
}
.bg-light {
  background-color: white;
}
.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--color-secondary);
}
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.mission-vision h3 {
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* --- Programs --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.program-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-primary);
}
.program-card h4 {
  color: var(--color-secondary);
  margin-bottom: 12px;
}

/* --- Stats --- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 20px;
}
.stat-item strong {
  font-size: 1.8rem;
  color: var(--color-primary);
  display: block;
}

/* --- Testimonials --- */
.testimonials blockquote {
  font-style: italic;
  margin: 20px 0;
  padding: 0 20px;
  border-left: 3px solid var(--color-secondary);
}

/* --- Help List --- */
.help-list {
  list-style: none;
  max-width: 700px;
  margin: 20px auto;
}
.help-list li {
  padding: 10px 0;
  position: relative;
  padding-left: 24px;
}
.help-list li:before {
  content: "❤️";
  position: absolute;
  left: 0;
}

/* --- Footer --- */
.footer {
  background: var(--color-secondary);
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 15px;
    box-shadow: var(--shadow);
  }
  .nav-list.active {
    display: flex;
  }
  .mission-vision {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
/* --- Hero Video --- */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* --- About Us Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image img {
    max-width: 100%;
    height: auto;
  }
}
/* --- Testimonial Cards --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
}
.testimonial-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 400px;
  text-align: center;
}
.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--color-primary);
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 0.95rem;
}

/* --- Programs Grid with Images --- */
.program-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-primary);
  transition: transform 0.3s;
}
.program-card:hover {
  transform: translateY(-5px);
}
.program-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 12px;
}
/* --- Galería de Impacto --- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-item:hover {
  transform: scale(1.03);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-align: center;
}
.gallery-item[data-category] {
  display: none;
}
.gallery-item[data-category].show {
  display: block;
}
/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
}
#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  background: rgba(0,0,0,0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}
#lightbox-caption {
  color: white;
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 80%;
}