/* ---- Paleta de Colores y Tipografía ---- */
:root {
    --color-celeste: #61a9de;
    --color-celeste-oscuro: #2c3e50;
    --color-blanco: #ffffff;
    --color-rojo-acento: #d9534f;
    --color-texto: #333;
    --fuente-principal: 'Montserrat', sans-serif;
}

body {
    font-family: var(--fuente-principal);
    color: var(--color-texto);
}

/* ---- Navegación ---- */
.navbar-brand span {
    color: var(--color-celeste);
}
.nav-link {
    font-weight: 600;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-celeste) !important;
}
.dropdown-item strong {
    color: var(--color-celeste);
}

/* ---- Sección Principal (Hero) ---- */
.hero-section {
    height: 80vh;
    background: linear-gradient(135deg, rgba(97, 169, 222, 0.9), rgba(208, 232, 255, 0.8)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}
.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ---- Botones ---- */
.btn-primary {
    background-color: var(--color-celeste);
    border-color: var(--color-celeste);
    padding: 12px 30px;
    font-weight: bold;
}
.btn-primary:hover {
    background-color: #4a91c8;
    border-color: #4a91c8;
}

/* ---- Secciones de Contenido ---- */
.page-section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-celeste);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Footer ---- */
.footer-section {
    background-color: var(--color-celeste-oscuro);
}

/* --- Estilos para Sección de Noticias y Eventos --- */
.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-borde);
}

/* Tarjetas de Noticias */
.news-card {
  background-color: var(--color-blanco);
  border-radius: 8px;
  box-shadow: var(--sombra-tarjeta);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  text-decoration: none;
}
.news-card a {
  text-decoration: none;
  color: inherit;
}
.news-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.news-card-body {
  padding: 1.5rem;
}
.news-card-category {
  display: inline-block;
  background-color: rgba(97, 169, 222, 0.1);
  color: var(--color-celeste);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.news-card-text {
  color: var(--color-texto-secundario);
  font-size: 0.95rem;
}

/* Lista de Eventos */
.event-list {
  list-style: none;
  padding: 0;
}
.event-list li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.event-list li a:hover {
  background-color: #e9ecef;
}
.event-date {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--color-celeste);
  color: var(--color-blanco);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.event-date span {
  font-size: 1.5rem;
}
.event-details {
  flex-grow: 1;
}
.event-title {
  font-weight: 700;
  color: var(--color-texto);
}
.event-meta {
  font-size: 0.85rem;
  color: var(--color-texto-secundario);
}