/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  background: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  touch-action: manipulation;
}

/* =========================
   CARRUSEL FULLSCREEN
========================= */
.carousel.fullscreen {
  position: relative;
  width: 100vw;
  height: 100dvh;   /* móviles modernos */
  height: 100vh;    /* fallback */
  overflow: hidden;
}

/* =========================
   IMAGEN (SIN DISTORSIÓN)
========================= */
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* NO se deforma */
  background: #000;
  display: block;
}

/* =========================
   BOTONES
========================= */
.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 60px;
  height: 60px;
  border-radius: 50%;

  border: none;
  cursor: pointer;

  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 32px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

/* posiciones */
.btn.prev {
  left: 30px;
}

.btn.next {
  right: 30px;
}

/* hover solo en desktop */
@media (hover: hover) {
  .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
  }
}

/* active */
.btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .btn.prev {
    left: 12px;
  }

  .btn.next {
    right: 12px;
  }
}

/* =========================
   OPCIONAL: OCULTAR BOTONES
========================= */

.carousel.fullscreen .btn {
  opacity: 0;
}

.carousel.fullscreen:hover .btn {
  opacity: 1;
}
