/* ===================== TALLERES.CSS ===================== */

/* ====== Estilos Generales ====== */
body {
  background: #f9f9f9;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
}

/* ====== Encabezado ====== */
h1 {
  font-size: 2.5rem;
  text-align: center;
  margin: 30px 0 10px;
  color: #2c3e50;
}

.descripcion-principal {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #555;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== Foto Principal ====== */
.foto-principal {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.foto-principal .foto-box {
  overflow: hidden;
  border-radius: 10px;
  max-width: 600px; /* Limita ancho */
  width: 90%;
  height: 400px; /* Altura fija */
}

.foto-principal .foto-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporción y rellena */
  border-radius: 10px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.foto-principal .foto-box img:hover {
  transform: scale(1.02);
}

/* ====== Galería ====== */
.set-fotografico {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.set-fotografico h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  justify-items: center;
}

.galeria img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

/* ====== Lightbox ====== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ====== Videos ====== */
.videos {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.videos h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; /* separación entre videos */
  justify-items: center;
}

/* Aplica estilo tanto a videos locales como iframes de YouTube */
.video-container video,
.video-container iframe {
  width: 100%;
  max-width: 500px;
  height: 250px;
  border-radius: 8px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Videos/iframes horizontales */
.video-container video.horizontal,
.video-container iframe.horizontal {
  width: 100%;
  max-width: 600px;
  height: 250px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ====== Responsive ====== */
@media screen and (max-width: 768px) {
  .galeria {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .video-container {
    grid-template-columns: 1fr;
  }

  .video-container video,
  .video-container iframe {
    height: 200px;
  }

  .foto-principal .foto-box {
    height: 250px; /* Ajuste móvil */
  }
}

/* ===================== FONDO COMPLETO ===================== */
body {
  background-color: #f0f8ff; /* igual que admision */
}
