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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5e6ca;
  color: #003366;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 20px;
  background-color: #ffffffcc;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-weight: 600;
  margin-bottom: 10px;
}

header nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #0077b6;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Lightbox */
#lightbox {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
  position: absolute;
  color: white;
  font-size: 2.5em;
  cursor: pointer;
  user-select: none;
}

#lightbox .close {
  top: 20px;
  right: 30px;
}

#lightbox .prev {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
}

#lightbox .next {
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  header h1 { font-size: 1.5em; }
  #lightbox .close, #lightbox .prev, #lightbox .next { font-size: 2em; }
}

