@font-face {
  font-family: 'lg';
  src: url('fonts/lg.woff') format('woff'),
       url('fonts/lg.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ==== BLOQUE PRINCIPAL DE SECCIÓN RENDERS ==== */
.renders-section {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 20px 160px;
  overflow: visible;
}

/* ==== TÍTULOS EXTERIORES / INTERIORES ==== */
.renders-subtitle {
  position: relative;
  z-index: 10;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  color: #ffffff;
  margin-top: 6vh;
  margin-bottom: 4vh;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 3px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .renders-subtitle {
    font-size: 2.2rem;
    text-shadow:
      -0.5px -0.5px 0 #000,
       0.5px -0.5px 0 #000,
      -0.5px  0.5px 0 #000,
       0.5px  0.5px 0 #000,
       0 2px 4px rgba(0, 0, 0, 0.4);
  }
}

/* ==== GALERÍA ==== */
.renders-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  z-index: 5;
  margin-top: 10vh;
  margin-bottom: 10vh;
}

.renders-gallery a {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transform: translateY(var(--offset, 20px)) scale(var(--scale, 1));
  box-shadow: 0 10px 30px rgba(0, 0, 0, var(--shadow, 0.4));
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
  opacity: 0;
}

.renders-gallery a.visible {
  opacity: 1;
  transform: translateY(0) scale(var(--scale, 1));
}

.renders-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.renders-gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== HOVER DE TEXTO ==== */
.render-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.renders-gallery a:hover .render-hover {
  opacity: 1;
  transform: scale(1.03);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* ==== LIGHTGALLERY ==== */
.lg-backdrop { background-color: rgba(0, 0, 0, 0.95); }
.lg-sub-html { font-family: 'Roboto', sans-serif; font-size: 0.95rem; text-align: center; color: #f5f5f5; }
.lg-toolbar { background: transparent; }
.lg-next, .lg-prev { color: white; opacity: 0.8; transition: opacity 0.3s ease; }
.lg-next:hover, .lg-prev:hover { opacity: 1; }
.lg-counter { color: #bbb; }

/* ==== SIDEBAR FLOTANTE ==== */
.floating-nav {
  position: fixed;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 50;
}

.floating-nav.visible {
  opacity: 1;
  visibility: visible;
}

.floating-nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.floating-nav a.active {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.floating-nav a:hover {
  transform: translateX(4px);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1400px) {
  .renders-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .renders-section {
    padding: 100px 10px;
  }

  .renders-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }

  .renders-gallery a {
    max-width: 100%;
    min-width: unset;
  }

  .render-hover {
    font-size: 0.8rem;
    padding: 6px 0;
  }

  .floating-nav {
    left: 20px;
  }

  .floating-nav a {
    font-size: 1.2rem;
  }
}
