/* ==============================
   CARRUSEL
============================== */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 70px auto;
  overflow: hidden;
  z-index: 2;
  border-radius: 22px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Carrusel track */
.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

/* === Slides === */
.carousel-slide {
  flex: 0 0 calc(33.333% - 20px);
  box-sizing: border-box;
  padding: 12px;
  position: relative;
}

/* === Cuadro de imagen === */
.image-box {
  border: 3px solid rgba(212, 175, 55, 0.6);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.8), rgba(40, 40, 40, 0.6));
  overflow: hidden;
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease-in-out;
}

/* Efecto de borde dorado animado */
.image-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(212,175,55,0.8), rgba(255,255,255,0.1)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: all 0.6s ease;
  opacity: 0.6;
}

/* Imagen dentro del cuadro */
.image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.6s ease, filter 0.5s ease;
}

/* Hover en cuadro */
.image-box:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.image-box:hover::before {
  opacity: 1;
  filter: brightness(1.4);
}

.image-box:hover img {
  transform: scale(1.06);
  filter: brightness(1.15);
}

/* Texto sobre imagen */
.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px 12px;
  background: rgba(10, 10, 10, 0.75);
  color: #f1d97c;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s ease;
  white-space: nowrap;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  pointer-events: none;
}

.carousel-slide:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   BOTONES DE NAVEGACIÓN
============================== */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(30, 30, 30, 0.8), rgba(10, 10, 10, 0.5));
  color: #d4af37;
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Efecto dorado animado */
.carousel-button:hover {
  background: linear-gradient(135deg, #d4af37, #f8e38c);
  color: #222;
  box-shadow: 0 0 30px 10px rgba(212, 175, 55, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 15px;
}

.carousel-button.next {
  right: 15px;
}