/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Encabezado */
header {
  background: #004080;
  color: rgb(245, 245, 245);
  padding: 20px;
}

header h1 {
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Sección principal */
.muestra {
  background:linear-gradient(
    0deg,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.5)
  ) 
  ,url("media/escuela.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  color: white;
  text-align: center;
  padding: 150px 30px;
}

.contenido {
  padding: 20px;
}

.contenido h2 {
  color: #004080;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 10px;
}
/* Estilos para la sección de noticias */
.noticias {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.noticias h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #004080;
}

/* Grid para las tarjetas */
.grid-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Estilo de cada tarjeta */
.noticia-card {
  background: #ffffff;
  border: 1px solid #747474;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Imagen dentro de la tarjeta */
.imagen-noticia img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Contenido de la tarjeta */
.contenido-noticia {
  padding: 15px;
  flex: 1; /* para que empuje el “Leer más” al final si lo necesitas */
}

.contenido-noticia h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #333;
}

.contenido-noticia p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.contenido-noticia a {
  color: #004080;
  text-decoration: none;
  font-weight: bold;
}


.contenido-noticia a:hover {
  text-decoration: underline;
}
/* ===== HISTORIA Y MISIÓN ===== */
.historia-mision {
  background-color: #ffffff;
  padding: 60px 20px;
}

.contenedor-info {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cuadro {
  background: rgba(250, 248, 248, 0.85);
  flex: 1 1 45%;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border: 1px solid #747474; /* 👈 borde negro/gris igual que las noticias */
}

.cuadro h2 {
  color: #004080;
  margin-top: 0;
}

/* ===== EVENTOS ===== */
.eventos {
  padding: 50px 20px;
  text-align: center;
}

.eventos h2 {
  color: #004080;
  margin-bottom: 30px;
}

.lista-eventos {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.evento {
  background: rgba(250, 248, 248, 0.85);
  border-left: 6px solid #004080;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  
}

.evento h3 {
  margin: 0 0 8px;
  color: #004080;
}
/* ===== MINI GALERÍA EN INICIO ===== */
.galeria-inicio {
  background-color: #f5f7fa;
  padding: 60px 20px;
  text-align: center;
}

.galeria-inicio h2 {
  color: #004080;
  margin-bottom: 30px;
}

.grid-galeria-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto 30px;
}

.grid-galeria-mini img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.grid-galeria-mini img:hover {
  transform: scale(1.05);
}

.boton-vermas {
  background-color: #004080;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.boton-vermas:hover {
  background-color: #002a5c;
}
/* ===== GALERÍA COMPLETA ===== */
.galeria-seccion {
  padding: 50px 20px;
  text-align: center;
  background-color: #fdfdfd;
}

.galeria-seccion:nth-child(even) {
  background-color: #f5f7fa; /* alterna el color de fondo */
}

.galeria-seccion h2 {
  color: #004080;
  margin-bottom: 20px;
}

.grid-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.grid-fotos img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.grid-fotos img:hover {
  transform: scale(1.03);
}