html, body {
  margin: 0;
  padding: 0;
  background: #000;
}

section {
  width: 90vw;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: auto;
}

.carousel {
  width: 90vw;
  height: 70vh;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  -webkit-overflow-scrolling: touch;
}

.carousel-slide {
  position: relative;
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  scroll-snap-align: center;
  overflow: hidden;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

h2 {
  position: relative;
  margin: 0;
  font-size: 1.8rem;
}

h5 {
  position: relative;
  margin: 2% 0 0 0;
  font-size: 1rem;
  font-weight: 100;
  letter-spacing: 0.3px;
}

.carousel-nav {
  display: none;
  position: absolute;
  width: 90%;
}

.carousel-nav button {
  cursor: pointer;
  border: none;
  font-size: 3rem;
  position: absolute;
  aspect-ratio: 1.5;
  width: 7vw;
  max-width: 75px;
  height: auto;
  max-height: 3.7vh;
  background-color: transparent;
  background-size: cover;
  overflow: visible;
  background-image: url("data:image/svg+xml,%3Csvg stroke='%2304DF8F' fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 1 22 15'%3E%3Cpath d='M2,11 11,2 20,11'/%3E%3C/svg%3E");
}

.prev { 
  transform: translateY(-50%) rotate(-90deg);
}

.next {
  transform: translateY(-50%) rotate(90deg);
  right: 0;
}

.carousel-nav div {
  position: absolute;
  width: 100%;
  bottom: 36vh;
  text-align: center;
  color: #fff;
  font-weight: 200;
  
  letter-spacing: 0.25rem;
  font-size: clamp(18px, 2vw, 24px);
}

/*.imag-cat:hover{
transform: scale(1.2);
transition: 0.3s ease
}*/

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { height: 13px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border-top: 6px solid #000;
  background: #555;
  width: 50%;
}
::-webkit-scrollbar-thumb:hover { background: #bbb; }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

/* ─── Tablet (portrait & landscape): 601px – 1024px ─── */
@media (min-width: 601px) and (max-width: 1024px) {
  section {
    width: 95vw;
    min-height: 60vh;
  }

  .carousel {
    width: 95vw;
    height: 45vh;
  }

  .carousel-slide {
    flex: 0 0 75%;
  }

  .carousel-nav button {
    width: 10vw;
    max-height: 4.5vh;
  }

  .carousel-nav div {
    top: 22vh;
    font-size: clamp(18px, 3vw, 32px);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  section {
    width: 98vw;
    min-height: 60vh;
  }

  .carousel {
    width: 98vw;
    height: 62vh;  
  }

  .carousel-slide {
    flex: 0 0 55%;  
  }

  .carousel-nav button {
    width: 8vw;
    max-height: 5vh;
  }

  .carousel-nav div {
    top: 32vh;
    font-size: clamp(14px, 2.5vw, 28px);
  }
}

/* ─── Móvil portrait: hasta 600px ───────────────────── */
@media (max-width: 600px) {
  section {
    width: 100vw;
    padding: 0;
    min-height: 60vh;
  }

  .carousel {
    width: 100vw;
    height: 50vh;   
    gap: 6px;
  }

  .carousel-slide {
    flex: 0 0 88%;  
  }

  .carousel-nav {
    width: 95%;
  }

  .carousel-nav button {
    width: 12vw;
    max-width: 48px;
    max-height: 5vh;
  }

  .carousel-nav div {
    top: 26vh;
    font-size: clamp(16px, 4vw, 26px);
    letter-spacing: 0.15rem;
  }


  .carousel::-webkit-scrollbar { display: none; }
  .carousel { scrollbar-width: none; }
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.active{
    cursor:zoom-in;
}
