* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* HERO */
.events-hero {
  padding: 120px 20px;
  text-align: center;
  background: linear-gradient(135deg, #164b6f, #e36a2e);
  color: white;
}

.events-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.events-hero p {
  font-size: 18px;
}

/* CARRUSEL */
.events-carousel {
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 20px;
}

.carousel {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}

.carousel img.active {
  opacity: 1;
}

/* AGENDA */
.agenda {
  padding: 90px 20px;
  background: #f9fafb;
}

.agenda h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 50px;
  color: #0f3a5a;
}

.agenda-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.agenda-card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.agenda-card h3 {
  color: #e36a2e;
  margin-bottom: 10px;
}

.agenda-card p {
  color: #374151;
  line-height: 1.6;
}

/* HERO */
.events-hero {
  padding: 120px 20px;
  text-align: center;
  background: linear-gradient(135deg, #164b6f, #e36a2e);
  color: white;
}

/* CARRUSEL */
.events-carousel {
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 20px;
}

.carousel {
  height: 380px;
  overflow: hidden;
  border-radius: 22px;
  position: relative;
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s;
}

.carousel img.active {
  opacity: 1;
}

/* AGENDA */
.agenda {
  padding: 80px 20px;
  background: #f9fafb;
}

.agenda-grid {
  display: grid;
  gap: 25px;
  max-width: 1100px;
  margin: auto;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.agenda-card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* MEDIA */
.media-section {
  padding: 80px 20px;
  text-align: center;
}

.media-grid {
  display: grid;
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

iframe {
  width: 100%;
  height: 260px;
  border-radius: 14px;
}

/* HORARIOS */
.schedule {
  padding: 80px 20px;
  background: #0f3a5a;
  color: white;
}

.schedule-grid {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: auto;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  max-width: 500px;
  border-radius: 16px;
  text-align: center;
}

.close {
  font-size: 26px;
  cursor: pointer;
  float: right;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .events-hero h1 {
    font-size: 32px;
  }

  .carousel {
    height: 260px;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  background: linear-gradient(135deg, #e36a2e 0%, #c95a27 25%, #164b6f 65%, #0f3a5a 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.img-logo {
  width: 100px;
}

.logo-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Beige suave */
.logo-text .beige {
  color: #f2e6d8;
}

/* Naranja del logo */
.logo-text .orange {
  color: #164b6f;
}

/* Ocultar frase en móvil */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #e36a2e;
  bottom: -6px;
  left: 0;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-donar {
  background-color: #e36a2e;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-donar:hover {
  background-color: #ff8448;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #0f3a5a;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ===== FOOTER ===== */

footer {
  background-color: #1e293b;  /* Fondo oscuro pero no tan intenso */
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  font-family: 'Montserrat', sans-serif;  /* Fuente coherente */
  border-top: 4px solid #e36a2e;  /* Línea sutil naranja en el borde superior */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  padding: 10px;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.social-links li {
  display: inline-block;
  margin: 0 15px;
}

.social-links a {
  color: #f9f9f9;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e36a2e;  /* Hover en naranja suave */
}

.footer-quote {
  font-style: italic;
  font-size: 18px;
  color: #f2e6d8;
  margin: 20px 0;
}

.legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-links li {
  display: inline-block;
  margin: 0 15px;
}

.legal-links a {
  color: #f9f9f9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.legal-links a:hover {
  color: #e36a2e;
}

footer p {
  font-size: 16px;
  color: #f9f9f9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
    margin-bottom: 20px;
  }

  .social-links a {
    margin: 0 10px;
    font-size: 18px;
  }

  .legal-links a {
    font-size: 14px;
  }
}


