@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* ---------- ESTRUCTURA PRINCIPAL ---------- */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #fff;
  color: #222;
}

/* ---------- CABECERA ---------- */
header {
  text-align: center;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

.cabeza {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
}

.logoytitle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logoytitle img {
  width: 70px;
}

.titulo h1 {
  font-size: 1rem;
  color: #132f5e;
  font-weight: 800;
  text-align: left;
}

/* redes */
.redes {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
}

.redes img {
  width: 22px;
  filter: invert(50%);
}

/* menú */
menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem 0 1rem;
}

menu a {
  color: #132f5e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- NOTICIAS ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.noticias {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.noticias article img {
  display: block;           /* permite aplicar márgenes automáticos */
  margin: 0 auto;           /* centra la imagen horizontalmente */
  width: 100%;
  max-width: 700px;
  height: auto;             /* mantiene la proporción */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


.texto-noticia {
  width: 100%;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.texto-noticia p {
  margin-bottom: 1rem;
  text-align: justify;
}
.fotodecla {
align-items: center;

} 
/* ---------- FOOTER ---------- */
footer {
  flex-shrink: 0;
  text-align: center;
  background-color: #fafafa;
  border-top: 1px solid #ccc;
  padding: 1rem 0;
}

footer img.whypala-footer {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 0.5rem;
}

.piefinal img {
  width: 60px;
  filter: invert(50%);
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 768px) {
  .titulo h1 {
    font-size: 0.9rem;
    text-align: center;
  }

  .logoytitle {
    flex-direction: column;
    text-align: center;
  }

  menu {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .noticias article img {
    max-width: 100%;
  }

  .texto-noticia {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .redes img {
    width: 20px;
  }

  menu a {
    font-size: 0.8rem;
  }

  .titulo h1 {
    font-size: 0.85rem;
  }

  .texto-noticia {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}