/* ---------- ESTILOS GENERALES ---------- */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #222;
}

/* ---------- ENCABEZADO ---------- */
header.encabezado {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-bottom: 2px solid #ccc;
  height: 110px;
  padding: 0 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.logo {
  height: 160px;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- MENÚ FIJO ---------- */
nav.menu-fijo {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background-color: #eaf1f8;
  padding: 10px;
  position: sticky;
  top: 110px;
  z-index: 999;
  border-bottom: 1px solid #ccc;
}

nav.menu-fijo a {
  text-decoration: none;
  color: #004c97;
  font-weight: bold;
  background-color: white;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.3s, transform 0.2s;
}

nav.menu-fijo a:hover {
  background-color: #d7e3f1;
  transform: scale(1.05);
}

/* ---------- HERO (SECCIÓN PRINCIPAL DESTACADA) ---------- */
.hero {
  background: linear-gradient(to right, #004080, #007acc);
  text-align: center;
  padding: 180px 20px 60px;
  color: white;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero span {
  color: #ffcc00;
}

.hero p {
  font-size: 1.2rem;
  color: #e6f0ff;
}

/* ---------- NOTICIAS DESTACADAS ---------- */
.noticias-destacadas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.noticia {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.noticia:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.noticia img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.noticia h3 {
  margin: 10px 10px 0;
  font-size: 1.2rem;
  color: #004080;
}

.noticia p {
  margin: 0 10px 10px;
  font-size: 0.95rem;
  color: #333;
}

/* ---------- NOTICIAS INDIVIDUALES ---------- */
main.contenido-noticia {
  margin-top: 220px;
  padding: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

main.noticia-completa {
  padding: 180px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.titulo-noticia {
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
}

.imagen-noticia {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: contain;
}

.contenido-noticia p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}
/* ---------- PIE DE PÁGINA ---------- */
footer.pie-pagina {
  background-color: #004080;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 40px;
  font-size: 0.95rem;
}

footer .contenedor-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  gap: 20px;
}

footer .info-contacto,
footer .redes-sociales {
  flex: 1;
  min-width: 250px;
}

footer h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffcc00;
}

footer a {
  display: block;
  color: #e0e0e0;
  text-decoration: none;
  margin-bottom: 5px;
  transition: color 0.3s;
}

footer a:hover {
  color: #ffffff;
}

footer .copyright {
  text-align: center;
  border-top: 1px solid #ccc;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #ddd;
}

