/* Estilos base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  line-height: 1.5;
  color: #333a5b;
  background-color: #f8f8f8;
}

/* CONTENEDOR GLOBAL */
.contenedor {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

/* HEADER */
.header {
  background-color: #1e3a5b;
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* MENÚ */
.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #819fe4;
}

.menu li {
  margin: 10px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 1.3s;
}

.menu a:link,
.menu a:visited {
  background-color: #819fe4;
}

.menu a:hover,
.menu a:active {
  background-color: #1e3a5b;
}

/* IMAGEN PRINCIPAL (no escalable) */
.imagen-principal img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* CONTENIDO PRINCIPAL */
.contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
  padding: 0 20px;
}

.contenido article {
  background-color: #e9f1fb;
  flex: 1 1 300px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* GALERÍA (imagenes que escalan) */
.galeria {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 20px;
}

.galeria img {
  width: 48%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.9s;
}

.galeria img:hover {
  transform: scale(1.03);
}

/* FOOTER */
.footer {
  background-color: #333a5b;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.7rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu ul {
    flex-direction: column;
    align-items: center;
  }

  .galeria img {
    width: 90%;
  }
}