/* =========================================
   Gallery Page Styles - FINAL WORKING VERSION
   ========================================= */

:root {
  /* Fuentes */
  --font-nav: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Colores */
  --primary-color: #9F1822; /* Rojo Intenso */
  --bg-color: #000;
  --text-color: #fff;
  
  /* Layout */
  --content-width: 1000px; 
}

/* --- RESET & BASICS --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- TEXT UTILITIES --- */
.text-red { 
  color: var(--primary-color); 
}

.font-black { 
  font-weight: 900; 
  letter-spacing: 0px; 
}

.font-regular { 
  font-weight: 400; 
  letter-spacing: 0px; 
}

/* =========================================
   HEADER / NAVBAR
   (Eliminado para usar el estilo global idéntico a Music Curation)
   ========================================= */


/* =========================================
   1. HERO SECTION (TÍTULO DINÁMICO)
   ========================================= */
.hero-section {
  padding-top: 120px;
  text-align: center;
  margin-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-title {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 auto 0.2rem auto;
  line-height: 1;
  width: fit-content;
  max-width: var(--content-width);
  white-space: nowrap;
  letter-spacing: 0px;
}

.hero-image-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}


/* =========================================
   2. MANIFESTO
   ========================================= */
.manifesto-intro {
  max-width: var(--content-width);
  margin: 0 auto 6rem;
  padding: 0 1rem;
  text-align: left;
}

.big-statement {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.8rem, 5.5vw, 4.5rem); 
  line-height: 1.1; 
  letter-spacing: 0px;
}


/* =========================================
   3. MIXED GRID SECTION
   ========================================= */
.mixed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--content-width);
  margin: 0 auto 4rem;
  gap: 2rem;
  padding: 0 1rem;
}

.grid-item {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.1; 
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 0;
}

.text-content .font-black {
  font-size: clamp(1.5rem, 3vw, 2.5rem); 
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-transform: none; 
  letter-spacing: 0px;
}

.text-content .font-regular {
  font-size: 1.25rem; 
  line-height: 1.5;
  color: #d1d1d1;
  letter-spacing: 0px;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .mixed-grid { grid-template-columns: 1fr; gap: 3rem; }
  .grid-item img { aspect-ratio: auto; }
  
  .item-yellow { order: 1; }
  .item-dj     { order: 2; }
  .item-text   { order: 3; padding: 0; }
  .item-red    { order: 4; }
}


/* =========================================
   4. GEAR CAROUSEL
   ========================================= */
.gear-section {
  background-color: var(--primary-color);
  padding: 4rem 0;
  overflow: hidden;
  max-width: var(--content-width); 
  margin: 0 auto 2rem; 
  width: 100%;
  position: relative;
}

@media (max-width: 1024px) {
  .gear-section { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
}

.gear-title {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 900;
  color: #000;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-container {
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  display: flex;
  width: calc(200px * 12);
  animation: scroll 20s linear infinite;
}

.gear-group { display: flex; }

.gear-item {
  width: 200px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gear-item img {
  height: 55px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0); 
}

.gear-item span {
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 1px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =========================================
   5. BOTTOM GALLERY
   ========================================= */
.bottom-gallery {
  max-width: var(--content-width);
  margin: 0 auto 4rem; 
  padding: 0 1rem;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.bottom-grid a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.bottom-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bottom-grid a:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .bottom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


/* =========================================
   FOOTER
   ========================================= */
footer {
  background-color: var(--primary-color);
  padding: 4rem 1rem;
  width: 100%;
}

.footer-content {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-quote p {
  font-family: var(--font-body);
  font-weight: 900;
  color: #fff;
  font-size: 1.5rem; 
  line-height: 1.1;
  text-transform: lowercase;
  letter-spacing: -1px; 
  margin-bottom: 2rem;
}

.footer-logo img {
  width: 80px; 
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  filter: none;
}


/* =========================================
   LIGHTBOX (CRUZ ESTILO NAVBAR)
   ========================================= */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content img {
  max-height: 85vh;
  max-width: 90vw;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.close-lightbox {
  position: absolute;
  top: 30px; right: 30px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10001;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.close-lightbox::before,
.close-lightbox::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px; 
  background-color: #fff;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.close-lightbox::before { transform: rotate(45deg); }
.close-lightbox::after { transform: rotate(-45deg); }

.close-lightbox:hover::before,
.close-lightbox:hover::after {
  background-color: var(--primary-color);
}

.close-lightbox span { display: none; }

.lightbox-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; padding: 1rem;
  z-index: 10001;
}
.lightbox-btn:hover { color: var(--primary-color); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: #000;
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}