/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FONDO NEGRO Y TIPOGRAFÍA */
body {
  background-color: #000;
  color: #fff;
  font-family: Helvetica, sans-serif;
  font-weight: 300;
  line-height: 1.5;
}

/* CONTENEDOR CENTRAL */
.container {
  width: 95%;
  max-width: 1920px;
  margin: 0 auto;
}

/* HEADER FIJO */
header {
  position: fixed;
  top: 10px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0); /* completamente transparente */
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo img {
  height: 40px;
  width: auto;
}

/* NAVEGACIÓN */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
}

/* MARGENES PARA CONTENIDO */
main {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* VIDEO PRINCIPAL */
.video-principal .video-thumbnail {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 1rem;
}

/* GALERÍA DE VIDEOS */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0; /* sin espacio entre columnas */
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background-color: #000; /* fondo de seguridad */
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.01);
}

/* TEXTO OVERLAY EN VIDEO */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 1.2rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
  opacity: 1;
}

/* LIGHTBOX VIMEO */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.lightbox.active {
  display: flex;
}

.lightbox iframe {
  width: 80vw;
  height: 45vw;
  max-width: 960px;
  max-height: 540px;
  border: none;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* GALERÍA FOTOS */
.gallery {
  padding-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 0; /* sin espacio entre imágenes */
  width: 100%;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3; /* o 1 / 1 si prefieres cuadrados */
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* SECCIÓN ABOUT */
.about-section {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
}

.about-image,
.about-text {
  flex: 1;
  width: 50%;
  height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: left;
}

.about-text-inner {
  max-width: 600px;
  font-size: 0.8rem;
  line-height: 2;
  color: #fff;
}

/* FOOTER CONTACTO*/
.info-section {
  background-color: #000;
  padding: 2rem 0;
}

.info-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.info-column {
  flex: 1;
  min-width: 280px;
  max-width: 33.33%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-logo img {
  height: 20px;
  width: auto;
}

.info-text {
  flex: 1;
  color: #fff;
  font-size: 0.95rem;
  max-width: 800px;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.social-links img {
  height: 24px;
  width: 24px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.social-links a:hover img {
  opacity: 0.6;
}

.info-column .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.back-to-top {
  align-self: center;
  margin-top: 1rem;
  width: 60%;
  background: none;
  border: 1px solid #888;
  color: #888;
  padding: 0.5rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.back-to-top:hover {
  color: #ffffff;
  border-color: #fff;
}

/* FOOTER */
footer {
  background-color: #111;
  text-align: center;
  padding: 1rem 0;
  color: #888;
  font-size: 0.9rem;
}

/* LIGHTBOX GALERÍA DE FOTOS */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 2rem;
}

.lightbox-nav button {
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.lightbox-nav button:hover {
  opacity: 1;
}

.gallery-item img {
  cursor: pointer;
}

.album-gallery {
  padding-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.album-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 1.2rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.album-item:hover .album-overlay {
  opacity: 1;
}

.album-item img {
  transition: transform 0.3s ease;
}

.album-item:hover img {
  transform: scale(1.01);
}


/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .info-column {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    height: auto;
  }

  .about-image,
  .about-text {
    width: 100%;
    height: auto;
  }

  .about-text {
    padding: 2rem 1rem;
  }
}
