body {
  margin: 0;
  background: #0f0f0f;
  color: #eaeaea;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

#wrapper {
  width: 100%;
}

/* HEADER */
#header {
  text-align: center;
  padding: 20px 20px 10px;
}

#header h1 {
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 28px;
  color: white;
}

/* 🔥 ICONOS (ARREGLADO) */
#social-icons {
  margin: 25px
}

#social-icons a {
  display: inline-block;
  margin: 0 10px;
}

#social-icons img {
  width: 34px;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#social-icons img:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* MENU */
#header-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#header-menu li {
  display: inline;
  margin: 0 15px;
}

#header-menu a,
#header-menu a:visited,
#header-menu a:link,
#header-menu a:active {
  color: white;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
}

#header-menu a:hover {
  opacity: 0.6;
}

/* PAGES */
#pages {
  width: 100%;
}

.page {
  display: none;
  width: min(1500px, calc(100% - 30px));
  margin: 0 auto;
  padding: 40px 15px 60px;
}

.page.active {
  display: block;
}

.page-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0;
}

.page-content h2 {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

/* GALERÍA */
.gallery {
  width: 100%;
  column-count: 5;
  column-gap: 8px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 8px;
}

.gallery-item img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-item img:hover {
  opacity: 0.7;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2000;
  flex-direction: column;
}

#lightbox-img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

#lightbox-caption {
  margin-top: 12px;
  color: #ccc;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  font-size: 14px;
  text-align: center;
}

/* CONTROLES */
#close-btn,
#prev-btn,
#next-btn {
  position: absolute;
  color: white;
  cursor: pointer;
  z-index: 2100;
  user-select: none;
  line-height: 1;
}

#close-btn {
  top: 20px;
  right: 30px;
  font-size: 34px;
  font-weight: bold;
}

#prev-btn,
#next-btn {
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  padding: 10px;
}

#prev-btn {
  left: 25px;
}

#next-btn {
  right: 25px;
}

#close-btn:hover,
#prev-btn:hover,
#next-btn:hover {
  opacity: 0.6;
}

/* FOOTER */
#footer {
  text-align: center;
  padding: 20px;
  color: rgba(234, 234, 234, 0.7);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .gallery {
    column-count: 4;
  }
}

@media (max-width: 900px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 2;
  }

  #header h1 {
    font-size: 22px;
  }

  #header-menu li {
    margin: 0 10px;
  }
}
