/* ============================================================
   SLEP Valparaíso - Estilos Personalizados
   Basado en el Framework Kit Digital del Gobierno de Chile
   ============================================================ */

/* ====== BARRA ROJA SUPERIOR ====== */
.barra-gob-cl {
  background-color: #DA1212;
  color: #fff;
  width: 100%;
  padding: 6px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.barra-gob-cl .contenedor-barra {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.barra-gob-cl img {
  height: 28px;
  margin-right: 8px;
}

.barra-gob-cl a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: opacity 0.2s;
}

.barra-gob-cl a:hover {
  opacity: 0.8;
}

/* ====== HEADER ====== */
.site-header {
  background-color: #00274D;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.site-logo img {
  height: 65px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.main-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav ul li a:hover {
  color: #FFD100;
}

/* ====== MENÚ RESPONSIVE ====== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    width: 100%;
    background-color: #00274D;
    text-align: center;
  }

  .main-nav.active {
    display: block;
    padding: 15px 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
  }
}

/* ====== FOOTER ====== */
.site-footer {
  background-color: #00274D;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.footer-left img {
  width: 140px;
  margin-bottom: 10px;
}

.footer-right {
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid #004D94;
  margin-top: 30px;
  padding-top: 10px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

/* ====== ELEMENTOS GLOBALES ====== */
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #fff;
}

a {
  color: #004D94;
}

a:hover {
  color: #DA1212;
}

h1, h2, h3 {
  font-family: 'Roboto Slab', serif;
  color: #00274D;
}

.wp-block-latest-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}