/* CSS Variables */
:root {
  --primary-font: 'Montserrat', sans-serif;
  --script-font: 'Pinyon Script', cursive;
  --text-color: #333333;
  --light-text: #ffffff;
  --overlay-color: rgba(0, 0, 0, 0.4);
  --transition-speed: 0.3s;
  --background-color: #ffffff;
  --accent-color: #f0f0f0;
  --grid-gap: 20px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--primary-font);
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navegación */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: var(--background-color);
  z-index: 100;
  transition: all 0.3s ease;
}

.logo a {
  font-family: var(--script-font);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.7;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 100;
}

.menu-icon {
  position: relative;
  width: 30px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.menu-icon::before {
  transform: translateY(-8px);
}

.menu-icon::after {
  transform: translateY(8px);
}

/* Contenido de galería */
.gallery-content {
  padding: 120px 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Encabezado de galería */
.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-title {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 12px;
  position: relative;
  text-transform: none;
}

.gallery-description {
  font-size: 1rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #666;
  font-style: italic;
}

/* Contenedor principal para fotos horizontales */
.horizontal-main-container {
  width: 100%;
  margin-bottom: -18.2px;
}

/* Fila para fotos horizontales */
.horizontal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  width: 100%;
}

.horizontal-row:last-child {
  margin-bottom: 0;
}

/* Elementos horizontales - dos fotos por fila */
.horizontal-row .gallery-item.horizontal {
  width: calc(50% - 7.5px);
  height: 500px;
  position: relative;
  overflow: hidden;
}

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

/* Contenedor para fotos verticales */
.vertical-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

/* Elementos verticales */
.vertical-container .gallery-item.vertical {
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

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

/* Elementos de la galería en general */
.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: transparent;
  box-shadow: none;
  transition: opacity 0.4s ease;
}

.gallery-item:hover {
  box-shadow: none;
  opacity: 0.8;
}

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

.gallery-item:hover img {
  transform: none;
}

.gallery-item-info {
  display: none;
}

/* Lightbox para vista de imagen completa */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85vh;
  object-fit: contain;
  border: 5px solid white;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  color: white;
  text-align: center;
  font-size: 16px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  color: #999;
  font-size: 0.8rem;
  border-top: 1px solid #eee;
  margin-top: 50px;
}

/* Media Queries */
@media (max-width: 1200px) {
  .gallery-content {
    padding: 100px 60px 40px;
  }
  
  .horizontal-row .gallery-item.horizontal {
    height: 450px;
  }
  
  .vertical-container .gallery-item.vertical {
    min-height: 350px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    padding: 15px 20px;
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color);
    overflow: hidden;
    transition: height 0.5s ease;
  }
  
  .nav-links.active {
    height: calc(100vh - 70px);
    padding: 30px 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .nav-links a {
    font-size: 1.0rem;
  }
  
  .gallery-content {
    padding: 80px 40px 30px;
  }
  
  .gallery-title {
    font-size: 2.2rem;
  }
  
  .gallery-description {
    font-size: 0.9rem;
  }
  
  .horizontal-row {
    flex-direction: column;
    margin-bottom: 10px;
  }
  
  .horizontal-main-container > .horizontal-row:last-child {
    margin-bottom: 0;
  }
  
  .horizontal-row .gallery-item.horizontal {
    width: 100%;
    margin-bottom: 10px;
    height: 400px;
  }
  
  .horizontal-row .gallery-item.horizontal:last-child {
    margin-bottom: 0;
  }
  
  .vertical-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .vertical-container .gallery-item.vertical {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .gallery-content {
    padding: 70px 20px 20px;
  }
  
  .vertical-container {
    grid-template-columns: 1fr;
    gap: 7.5px;
  }
  
  .horizontal-row {
    margin-bottom: 10px;
  }
  
  .horizontal-row .gallery-item.horizontal {
    height: 350px;
  }
  
  .vertical-container .gallery-item.vertical {
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 1.4rem;
  }
  
  .gallery-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  
  .gallery-description {
    font-size: 0.8rem;
  }
  
  .horizontal-row {
    margin-bottom: 10px;
  }
  
  .horizontal-row .gallery-item.horizontal {
    height: 300px;
  }
  
  .vertical-container .gallery-item.vertical {
    min-height: 300px;
  }
} 