/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #ffffff; /* Consistente con videos.css */
  color: white;
}

/* NAV / HEADER FIXED */
/* Inspirado en la transparencia y desenfoque de la página de videos */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contenedor del logo */
.logo {
  display: flex;
  align-items: center;
}

/* Estilos para la imagen del logo */
.logo-img {
  height: 45px; /* Ajusta esta altura según prefieras */
  width: auto;  /* Mantiene la proporción original */
  transition: transform 0.3s ease;
  display: block;
}

/* Efecto opcional al pasar el mouse */
.logo-img:hover {
  transform: scale(1.05);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .logo-img {
    height: 35px; /* Un poco más pequeño en pantallas pequeñas */
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  position: relative;
  opacity: 0.8;
  transition: 0.3s ease;
}

nav ul li a:hover {
  opacity: 1;
}

/* Subrayado animado refinado */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: white;
  transition: 0.4s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* GALLERY PAGE CONTAINER */
.gallery-page {
  padding: 140px 40px 80px; /* Espacio para el nav fijo */
  min-height: 100vh;
  max-width: 1400px;
  margin: auto;
}

.gallery-title {
  text-align: center;
  color: rgb(0, 0, 0);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 5px;
  margin-bottom: 60px;
  text-transform: uppercase;
}

/* GRID REFINADO */
/* Usamos auto-fit para que sea más dinámico como en videos */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: auto;
}

.gallery-grid img {
  width: 100%;
  height: 350px; /* Un poco más alto para mayor impacto */
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(20%); /* Efecto artístico sutil */
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-grid img:hover {
  transform: scale(1.02);
  filter: grayscale(0%);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* LIGHTBOX MEJORADO */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column; /* Para apilar imagen y pie de foto */
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 2000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 85%;
  max-height: 75%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  animation: zoom 0.5s ease-out;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2001;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.prev { left: 30px; }
.next { right: 30px; }

/* Ocultar flechas en móviles pequeños para no tapar la imagen */
@media (max-width: 600px) {
  .nav-btn {
    padding: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@keyframes zoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* CAPTION (PIE DE FOTO) REFINADO */
.lightbox-caption {
  margin-top: 30px;
  color: white;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 15px 30px;
  border-radius: 2px;
  border-left: 2px solid white;
  text-align: center;
  max-width: 70%;
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 40px;
  right: 50px;
  color: white;
  font-size: 35px;
  font-weight: 100;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  transform: rotate(90deg);
}

/* FOOTER (Estilo uniforme) */
.main-footer {
  background-color: #050505;
  color: white;
  padding: 80px 60px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px;
}

/* ... (el resto del footer se mantiene igual a tu código previo) ... */

/* FOOTER STYLES */
.main-footer {
  background-color: #050505;
  color: white;
  padding: 80px 60px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #888;
  font-weight: 300;
  max-width: 300px;
  line-height: 1.6;
}

.main-footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  font-weight: 500;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav ul li a, 
.social-links a {
  color: #888;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover, 
.social-links a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: #444;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
}