* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Rubik', sans-serif;
      background-color: #f8f9fa;
      color: #333;
      line-height: 1.6;
    }
    
    /* Contenedor principal */
    .noticias-container {
      max-width: 1400px;
      margin: 40px auto;
      padding: 0 20px;
    }
    
    /* Encabezado de noticias */
    .noticias-header {
      text-align: center;
      margin-bottom: 60px;
      position: relative;
    }
    
    .noticias-header h2 {
      color: #1e3c72;
      font-size: 2.8rem;
      margin-bottom: 20px;
      font-family: 'Merriweather', serif;
      position: relative;
      display: inline-block;
    }
    
    .noticias-header h2::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 4px;
      background: linear-gradient(to right, #1e3c72, #2a5298);
      border-radius: 2px;
    }
    
    .header-line {
      height: 1px;
      background: linear-gradient(to right, transparent, #ddd, transparent);
      margin-top: 30px;
    }
    
    /* Filtros de noticias */
    .noticias-filtros {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 15px;
      margin-bottom: 40px;
      padding: 20px;
      background-color: white;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .filtro-btn {
      padding: 12px 25px;
      background-color: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 50px;
      color: #555;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .filtro-btn:hover {
      background-color: #e9ecef;
    }
    
    .filtro-btn.active {
      background: linear-gradient(135deg, #1e3c72, #2a5298);
      color: white;
      border-color: #1e3c72;
    }
    
    /* Grid de noticias */
    .noticias-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
    }
    
    .noticia-card {
      background-color: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    
    .noticia-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    .noticia-img {
      position: relative;
      height: 220px;
      overflow: hidden;
    }
    
    .noticia-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    
    .noticia-card:hover .noticia-img img {
      transform: scale(1.05);
    }
    
    .noticia-date {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(30, 60, 114, 0.9);
      color: white;
      padding: 8px 15px;
      border-radius: 5px;
      font-weight: 600;
      font-size: 0.9rem;
    }
    
    .noticia-categoria {
      position: absolute;
      top: 20px;
      left: 20px;
      background: #ffc107;
      color: #333;
      padding: 6px 15px;
      border-radius: 5px;
      font-weight: 600;
      font-size: 0.8rem;
    }
    
    .noticia-content {
      padding: 25px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }
    
    .noticia-content h3 {
      color: #1e3c72;
      font-size: 1.4rem;
      margin-bottom: 15px;
      line-height: 1.4;
      min-height: 60px;
    }
    
    .noticia-content p {
      color: #555;
      margin-bottom: 20px;
      flex-grow: 1;
    }
    
    .noticia-meta {
      display: flex;
      justify-content: space-between;
      color: #6c757d;
      font-size: 0.9rem;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .noticia-meta span {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .noticia-link {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #1e3c72;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      margin-top: auto;
    }
    
    .noticia-link:hover {
      color: #2a5298;
      gap: 15px;
    }
    
    /* Noticia destacada */
    .noticia-destacada {
      grid-column: span 2;
      display: flex;
      flex-direction: row;
      height: auto;
    }
    
    .noticia-destacada .noticia-img {
      flex: 1;
      min-height: 300px;
    }
    
    .noticia-destacada .noticia-content {
      flex: 1;
      padding: 35px;
    }
    
    .noticia-destacada .noticia-content h3 {
      font-size: 1.8rem;
      min-height: auto;
    }
    
    .destacada-badge {
      position: absolute;
      top: 20px;
      left: 20px;
      background: #dc3545;
      color: white;
      padding: 8px 20px;
      border-radius: 5px;
      font-weight: 700;
      font-size: 0.9rem;
      z-index: 2;
    }
    
    /* Próximos Eventos - Versión Simplificada */
    .eventos-section {
      margin-top: 80px;
      padding-top: 50px;
      border-top: 2px solid #eee;
    }
    
    .eventos-section h3 {
      text-align: center;
      color: #1e3c72;
      font-size: 2.2rem;
      margin-bottom: 40px;
      font-family: 'Merriweather', serif;
    }
    
    .eventos-lista {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 25px;
    }
    
    .evento-card {
      background: white;
      border-radius: 15px;
      padding: 25px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      border-left: 5px solid #1e3c72;
      transition: transform 0.3s ease;
    }
    
    .evento-card:hover {
      transform: translateY(-5px);
    }
    
    .evento-fecha {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #1e3c72;
      font-weight: 600;
      margin-bottom: 15px;
    }
    
    .evento-fecha i {
      font-size: 1.2rem;
    }
    
    .evento-card h4 {
      color: #333;
      margin-bottom: 10px;
      font-size: 1.2rem;
    }
    
    .evento-card p {
      color: #666;
      margin-bottom: 15px;
      font-size: 0.95rem;
    }
    
    .evento-hora {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #f8f9fa;
      padding: 5px 15px;
      border-radius: 50px;
      font-size: 0.9rem;
      color: #555;
    }
    
    .evento-lugar {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #e9f7ef;
      padding: 5px 15px;
      border-radius: 50px;
      font-size: 0.9rem;
      color: #155724;
      margin-left: 10px;
    }
    
    /* Botón ver todas */
    .noticias-footer {
      text-align: center;
      margin-top: 60px;
      padding-top: 40px;
      border-top: 1px solid #eee;
    }
    
    .ver-todas-btn {
      display: inline-block;
      background: linear-gradient(135deg, #1e3c72, #2a5298);
      color: white;
      padding: 15px 40px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      box-shadow: 0 10px 20px rgba(30, 60, 114, 0.2);
    }
    
    .ver-todas-btn:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(30, 60, 114, 0.3);
      color: white;
    }
    
    /* Responsividad */
    @media (max-width: 1100px) {
      .noticia-destacada {
        grid-column: span 1;
        flex-direction: column;
      }
    }
    
    @media (max-width: 768px) {
      .noticias-header h2 {
        font-size: 2.2rem;
      }
      
      .noticias-grid {
        grid-template-columns: 1fr;
      }
      
      .noticias-filtros {
        flex-direction: column;
        align-items: center;
      }
      
      .filtro-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
      }
    }
    /* Reset y fuente */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, none 0%, #0074D9 100%);
  color: none;
  font-family: 'Lora', serif;
}

/* Header y navegación */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:  #107eeb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgb(7, 16, 31);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 2rem;
}
header img {
  background: transparent;
  border-radius: 50%;
  border: 2px solid #002fff9a;
  padding: 2px;
}
header strong {
  color:  #ffffff;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Menú */
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2rem;
}
nav .fa-solid {
  color: #ffffff;
  font-size: 1.7rem;
  cursor: pointer;
  display: none;
}
nav .nav-link {
  color: #ffffff;
  background: transparent;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav .nav-link:hover {
  background: #0074D9;
  color: #ffffff;
}

/* Responsive menú */
@media (max-width: 768px) {
  header > div {

    padding-left: 1rem;
  }
  nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding-right: 1rem;
  }
  nav .fa-solid {
    display: inline-block;
    margin-bottom: 0.5rem;
  }
  nav .nav-link {
    display: none;
    width: 160px;
    text-align: right;
    background: #ff8000;
    color: #ffffff;
    margin: 0;
    border-bottom: 1px solid #0074D9;
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
  nav.show-menu .nav-link {
    display: block;
  }
}
/* Contenedor principal */
.contenedor-principal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Secciones */
.seccion {
  margin-bottom: 4rem;
}

.seccion-header {
  text-align: center;
  margin-bottom: 3rem;
}

.seccion-header h2 {
  color: #003366;
  font-size: 2.2rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.header-line {
  height: 3px;
  background: linear-gradient(to right, transparent, #003366, transparent);
  margin: 1rem 0;
}

/* Grid Noticias */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.noticia-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.noticia-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.noticia-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.noticia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.noticia-card:hover .noticia-img img {
  transform: scale(1.08);
}

.noticia-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 51, 102, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.noticia-categoria {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ffc107;
  color: #333;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.noticia-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.noticia-content h3 {
  color: #003366;
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
}

.noticia-content p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.noticia-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #003366;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  align-self: flex-start;
}

.noticia-link:hover {
  color: #0056b3;
  gap: 12px;
}

/* Circulares */
.circulares-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.circular-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #003366;
  transition: all 0.3s ease;
}

.circular-item:hover {
  background: #f0f7ff;
  transform: translateX(8px);
}

.circular-icono {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #003366, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.circular-info {
  flex-grow: 1;
}

.circular-info h4 {
  color: #003366;
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
}

.circular-fecha {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.circular-desc {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.circular-descarga {
  margin-left: 1rem;
  flex-shrink: 0;
}

.btn-descargar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #28a745;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.btn-descargar:hover {
  background: #218838;
  transform: translateY(-2px);
}

/* Eventos */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.evento-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.evento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.evento-img {
  height: 180px;
  overflow: hidden;
}

.evento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.evento-card:hover .evento-img img {
  transform: scale(1.08);
}

.evento-content {
  padding: 1.5rem;
}

.evento-fecha {
  color: #003366;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.evento-content h3 {
  color: #333;
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
}

.evento-content p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}

.evento-detalles {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.evento-hora, .evento-lugar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #555;
}

/* Contacto */
.contacto-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-contacto, .formulario-contacto {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-contacto h3, .formulario-contacto h3 {
  color: #003366;
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
}

.contacto-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.contacto-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contacto-icono {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #003366, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contacto-texto h4 {
  color: #333;
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
}

.contacto-texto p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.horario-atencion {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f0f7ff;
  border-radius: 8px;
}

.horario-atencion h4 {
  color: #003366;
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
}

.horario-atencion p {
  color: #666;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

/* Formulario */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

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

.btn-enviar {
  background: linear-gradient(135deg, #003366, #0056b3);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-enviar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 51, 102, 0.25);
}

/* Botón volver arriba */
.btn-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #003366, #0056b3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 998;
  transition: all 0.3s ease;
}

.btn-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-principal {
    padding: 1.5rem 1rem;
  }

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

  .noticias-grid, .eventos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .circular-item {
    flex-direction: column;
    text-align: center;
  }

  .circular-icono {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .circular-descarga {
    margin-left: 0;
    margin-top: 1rem;
  }

  .contacto-container {
    grid-template-columns: 1fr;
  }

  .btn-top {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .seccion-header h2 {
    font-size: 1.5rem;
  }

  .noticia-content h3, .evento-content h3 {
    font-size: 1rem;
  }
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  padding: 10px;
  border-radius: 5px;
}
/* Asegura que los dropdowns se muestren cuando el padre tenga la clase 'show' o 'active' */
.dropdown.show .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}