/* 
=========================================
 🌍 ESTILOS BASE
=========================================
*/
body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h1 {
  color: #2d2d49;
  margin-bottom: 10px;
  width: auto;
}

.volver-atras {
  margin-top: 40px;
}

.btn-atras {
  background-color: transparent; 
  color: #47204f;
  border: 1px solid #47204f;
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
}

.btn-atras:hover {
  background-color: #47204f;
  color: #FEF6E9;
  border-color: #FEF6E9;
}

.foto-lightbox {
  cursor: pointer;
}

/* === TÍTULOS === */
.titulo-gira,
.titulo-promo {
  display: inline-block;
  position: relative;
  color: #47204f;
  font-size: 2rem;
}

.titulo-gira::after,
.titulo-promo::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, #47204f, transparent);
  margin: 6px auto 0;
  border-radius: 2px;
}

/* === SCROLL === */
.scroll-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.scroll-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0 20px 0;
  box-sizing: border-box;
}

.scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.detalle-contenedor {
  min-height: 400px;
}

/* === CARDS === */
.card {
  min-width: 180px;
  color: #2d2d49;
  flex-shrink: 0;
  padding: 10px;
  border: 1px solid #2d2d49;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.card:hover {
  background: #2d2d49;
  color: #FEF6E9;
}

/* === BOTONES DE SCROLL === */
.scroll-btn {
  color: #47204f;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  margin-bottom: 8px;
}

.scroll-btn:hover {
  background: #2d2d49;
  color: white;
  border: none;
  border-radius: 10%;
}

/* 
=========================================
 📸 GALERÍA DE FOTOS (ACTUALIZADO)
=========================================
*/

.galeria-fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
  align-items: flex-start;
}

.galeria-fotos .thumb {
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;

}

.galeria-fotos .thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.foto-autor, .foto-fecha {
  margin-top: 2px;
  font-size: 0.9em;
  color: #777;
  font-style: italic;
  text-align: center;
  width: 100%;
}
.foto-autor, .foto-fecha p{
  margin-bottom: 2px !important;
}


/* === GALERÍA DE VIDEOS === */
.galeria-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  justify-content: center; 
  margin-top: 15px;
}

.galeria-videos .video-item {
  max-width: 930px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria-videos iframe {
  width: 100%;
  height: 525px;
  border-radius: 8px;
}

.galeria-videos .video-title {
  margin-top: 8px; 
  margin-bottom: 20px; 
  text-align: center;
  font-weight: 600;
  color: #47204f;
  word-break: break-word; 
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
  border-radius: 8px;
}

/* === MENÚ INTERNO OLDGIRA === */
#oldgira-menu {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

#oldgira-menu button {
  padding: 5px 10px;
  cursor: pointer;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  white-space: nowrap;
}

#oldgira-menu button.activo {
  background: #673ab7;
  color: #fff;
}

#oldgira-detalle img {
  max-width: 200px;
  margin: 5px;
}

/* 
=========================================
 📱 RESPONSIVIDAD
=========================================
*/

@media (max-width: 1024px) {
  .titulo-gira,
  .titulo-promo {
    font-size: 1.6rem;
  }
  .galeria-fotos .thumb {
    width: 330px;
  }
}

@media (max-width: 768px) {
  .titulo-gira,
  .titulo-promo {
    font-size: 1.4rem;
    text-align: center;
  }
  .galeria-fotos .thumb {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .titulo-gira,
  .titulo-promo {
    font-size: 1.2rem;
  }
  .galeria-fotos .thumb {
    width: 100%;
  }
}
