* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f4f6f8; color: #222; line-height: 1.6; }

/* PORTADA CON IMAGEN DE FONDO Y TEXTO ENCIMA */
.portada {
  position: relative;
  width: 100%;
  height: 420px;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}
.capa-oscura {
  background: rgba(0, 0, 0, 0.55);
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 20px;
}
.capa-oscura h1 { font-size: 2.4rem; margin-bottom: 10px; }
.capa-oscura p { font-size: 1.2rem; }

/* CONTENEDOR CENTRAL Y NOTICIAS */
.contenedor { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
h2 { margin-bottom: 20px; color: #0f172a; border-bottom: 2px solid #0284c7; padding-bottom: 6px; }

.rejilla-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.tarjeta-noticia {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 16px;
}
.tarjeta-noticia img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.tarjeta-noticia h3 { margin-bottom: 8px; color: #0284c7; }

/* FORMULARIO DE ENCUESTA */
.caja-encuesta { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 24px; }
form { display: flex; flex-direction: column; gap: 12px; }
select, textarea { width: 100%; padding: 10px; border: 1px solid #94a3b8; border-radius: 4px; font-size: 1rem; }
button {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #0369a1; }
.mensaje-ok { color: #15803d; font-weight: bold; margin-top: 8px; }

/* PIE DE PÁGINA */
.pie {
  text-align: center;
  padding: 25px;
  margin-top: 50px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.pie a { color: #38bdf8; text-decoration: none; }