/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f4f4f9;
  color: #333;
}

/* Contenedor */
.container {
  width: 95%;
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  background: #2c3e50;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  font-size: 1rem;
  margin-top: 10px;
}

/* Secciones */
section {
  margin: 30px 0;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Listas */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 8px 0;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 30px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.95);
}

.lightbox-img {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 35px;
  user-select: none;
  transition: 0.3s;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover, .close:hover {
  color: #f1f1f1;
}

/* Footer */
footer {
  text-align: center;
  background: #2c3e50;
  color: #fff;
  padding: 15px 0;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Media queries para móviles */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .gallery img {
    height: 120px;
  }

  .prev, .next {
    font-size: 30px;
    padding: 12px;
  }

  .close {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}

