body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* --- Navbar --- */
.navbar {
  background-color: #FFFFFF;
  /* Sombra más suave y extendida para un look más moderno */
  box-shadow: 0 3px 15px rgba(0,0,0,0.03); 
  padding-top: 1.25rem; /* Un poco más de padding vertical */
  padding-bottom: 1.25rem;
  transition: padding 0.3s ease-in-out; /* Transición suave si la altura cambia con el scroll (no implementado aquí) */
}

.navbar-brand {
  font-weight: 700;
  color: #0D6EFD !important; /* Color de acento principal */
  font-size: 1.5rem; /* Un poco más grande para destacar */
  transition: opacity 0.2s ease-in-out;
}
.navbar-brand:hover {
  opacity: 0.85;
}

.nav-link {
  color: #343a40 !important; /* Un gris oscuro para mejor contraste y legibilidad */
  font-weight: 500;
  padding-left: 1rem !important; /* Más padding horizontal para los enlaces */
  padding-right: 1rem !important;
  border-radius: 0.375rem; /* Bordes redondeados sutiles para el hover/active */
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  position: relative; /* Para el pseudo-elemento del active */
}

.nav-link:hover {
  color: #0D6EFD !important; /* Color de acento al pasar el mouse */
  background-color: rgba(13, 110, 253, 0.05); /* Fondo muy sutil al pasar el mouse */
}

.nav-link.active {
  color: #0D6EFD !important; /* Color de acento para el enlace activo */
  font-weight: 600; /* Un poco más de peso para el activo */
}

/* Indicador visual para el enlace activo (opcional, línea inferior) */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px; /* Ajusta esta distancia según el padding de la navbar */
  left: 1rem; /* Coincide con el padding-left del nav-link */
  right: 1rem; /* Coincide con el padding-right del nav-link */
  height: 3px;
  background-color: #0D6EFD;
  border-radius: 2px;
}

/* Ajuste para el toggler en pantallas pequeñas */
.navbar-toggler {
    border-color: rgba(0,0,0,0.08);
}
/*.navbar-toggler-icon {
    /* Puedes personalizar el ícono del toggler aquí si lo deseas */
/*}


/* --- Hero Banner (Banner Principal Fijo) --- */
#heroBanner {
  position: relative; 
  overflow: hidden; 
  height: 85vh; 
  min-height: 300px; 
  max-height: 700px; 
  width: 100%;
  background-image: url('../assets/img/escuela_frente.png'); /* Asegúrate que la ruta sea correcta desde la ubicación del CSS */
  background-size: cover; 
  background-position: center center; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
}

#heroBanner::before { 
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: 1; 
}

.hero-banner-content {
  position: relative; 
  z-index: 2; 
  color: #FFFFFF; 
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2); 
  border-radius: 0.375rem;
  max-width: 800px; 
}

.hero-banner-content h1 { 
  font-size: 2rem; 
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-banner-content p {
  font-size: 1rem; 
  margin-bottom: 0;
}


/* --- Sección de Noticias --- */
.news-section {
  position: relative;
  padding: 4rem 0;
  background-color: #F8F9FA;
}

.news-section .section-title {
  color: #343A40;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 600;
  font-size: 2.25rem;
}

/* Carrusel de Noticias (2/3) */
#newsCarousel {
  height: 450px;
}

#newsCarousel .carousel-item {
  height: 100%;
}

#newsCarousel .carousel-item img {
  height: 100%;
  object-fit: cover;
  border-radius: 0.375rem;
  filter: brightness(0.8);
}
#newsCarousel .carousel-caption {
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 0 0 0.375rem 0.375rem;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: left;
}
#newsCarousel .carousel-caption h5 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Panel de Noticias Importantes (1/3) */
.important-news-panel {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.important-news-panel .panel-title {
  color: #0D6EFD;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.5rem;
  border-bottom: 2px solid #0D6EFD;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.important-news-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E9ECEF;
}
.important-news-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.important-news-item h6 {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.important-news-item a {
  text-decoration: none;
  color: #212529;
  transition: color 0.2s ease-in-out;
}
.important-news-item a:hover h6 {
  color: #0D6EFD;
}
.important-news-item p {
  font-size: 0.875rem;
  color: #6C757D;
  margin-bottom: 0;
}

/* --- Footer --- */
.footer {
  background-color: #212529;
  color: #DEE2E6;
  padding: 2.5rem 0;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #0D6EFD;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.footer a:hover {
  color: #FFFFFF;
}

/* --- Media Queries para Responsividad --- */
/* Dispositivos pequeños (teléfonos en horizontal, 576px y más) */
@media (min-width: 576px) {
  .hero-banner-content h1 {
      font-size: 2.5rem; 
  }
  .hero-banner-content p {
      font-size: 1.1rem; 
  }
}

/* Dispositivos medianos (tablets, 768px y más) */
@media (min-width: 768px) {
  #heroBanner {
      height: 70vh; 
  }
  .hero-banner-content h1 {
      font-size: 3rem; 
  }
  .hero-banner-content p {
      font-size: 1.25rem; 
  }
}

/* Dispositivos grandes (desktops, 992px y más) */
@media (min-width: 992px) {
  #heroBanner {
      height: 85vh; 
  }
   .hero-banner-content h1 {
      font-size: 3.5rem; 
  }
  .hero-banner-content p {
      font-size: 1.4rem; 
  }
}


/* Ajustes específicos para pantallas muy pequeñas (menores a 576px) */
@media (max-width: 575.98px) {
  #heroBanner {
      height: 55vh; 
      min-height: 280px; 
  }
   .hero-banner-content {
      padding: 1rem;
      max-width: 90%;
  }
  .hero-banner-content h1 {
      font-size: 1.75rem; 
  }
  .hero-banner-content p {
      font-size: 0.9rem; 
  }
  .news-section .section-title {
      font-size: 1.75rem; 
  }
  #newsCarousel {
      height: 300px; 
  }
  .important-news-panel {
      padding: 1.5rem; 
  }
  .nav-link.active::after { /* Ocultar la línea inferior en móviles si es muy intrusiva */
    display: none;
  }
}

/* En css/style.css */
.map-responsive {
  overflow: hidden;
  padding-bottom: 50%; /* Ajusta este porcentaje para la proporción deseada (ej. 56.25% para 16:9, 75% para 4:3, 50% para un mapa más ancho) */
  position: relative;
  height: 0;
  border-radius: 0.375rem; /* Para que coincida con el redondeo de otras tarjetas */
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075); /* Sombra sutil */
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}
