body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #0d1117;
  color: #e6edf3;
}

/* ===== HEADER ===== */
header {
  background-color: #010409;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  border-bottom: 2px solid #0a84ff;
}

header h1 {
  color: #0a84ff;
  margin: 0.5rem 0;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(10, 132, 255, 0.6);
}

.descripcion-album {
  max-width: 800px;
  margin: 1rem auto 2rem auto;
  color: #c9d1d9;
  font-size: 1.1rem;
  line-height: 1.6;
  background-color: #161b22;
  border-left: 4px solid #0a84ff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.2);
}

.descripcion-album strong {
  color: #58a6ff;
}

/* ===== ÁLBUM ===== */
.album-title {
  text-align: center;
  margin-top: 2rem;
  color: #58a6ff;
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
}

.album {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0d1117 0%, #0a0f15 100%);
  border-radius: 12px;
  box-shadow: inset 0 0 25px rgba(10, 132, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* efecto visual de red tecnológica animada */
.album::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(10, 132, 255, 0.05) 50px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(10, 132, 255, 0.05) 50px
    );
  animation: moveGrid 20s linear infinite;
  z-index: 0;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Tarjetas del álbum */
.card {
  background: radial-gradient(circle at top left, #161b22, #0e1218);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  transition: 0.5s;
  opacity: 0;
}

.card:hover::before {
  top: 50%;
  left: 50%;
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 25px rgba(10, 132, 255, 0.3);
  border-color: #0a84ff;
}

.card img {
  width: 100%;
  border-radius: 15px 15px 0 0;
  height: 170px;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
  transition: all 0.4s ease;
}

.card:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.card h3 {
  padding: 1rem;
  color: #58a6ff;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(10, 132, 255, 0.05);
  border-top: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 0 0 15px 15px;
}

/* ===== MODALES (desde abajo) ===== */
.modal {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(13, 17, 23, 0.95);
  animation: slideUp 0.4s ease;
  z-index: 1000;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background-color: #161b22;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.3);
  position: relative;
  color: #e6edf3;
}

.modal-content h2 {
  color: #58a6ff;
  border-bottom: 1px solid #0a84ff;
  padding-bottom: 0.5rem;
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Galería original (no modificar) */
.img-gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* NUEVA galería con scroll horizontal para muchas imágenes */
.img-gallery-horizontal {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.img-gallery-horizontal img {
  flex: 0 0 auto;
  width: 140px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(10,132,255,0.3);
  cursor: pointer;
  transition: transform 0.3s;
}

.img-gallery-horizontal img:hover {
  transform: scale(1.05);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #58a6ff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ff4757;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #010409;
  border-top: 2px solid #0a84ff;
  color: #8b949e;
}

/* Modal de imagen grande */
#img-en-grande {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13,17,23,0.95);
  justify-content: center;
  align-items: center;
}

#img-en-grande img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(10,132,255,0.5);
}

#img-en-grande .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  font-weight: bold;
  color: #58a6ff;
  cursor: pointer;
  z-index: 10;
}



.btn-scroll-info {
  background-color: transparent;
  border: 2px solid #58a6ff;
  color: #58a6ff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  cursor: default;
  user-select: none;
  font-size: 0.9rem;
  width: fit-content;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-scroll-info:hover {
  background-color: #58a6ff;
  color: #0d1117;
}
