/* ================================
   CARRUSELS GENERALS — UNIFICAT
   ================================ */

/* Contenidor blanc amb ombra */
.carrusel-wrapper {
  padding: 3rem !important;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Contenidor intern */
.carrusel-inner {
  width: 100%;
  height: 100%;
}

/* Imatges */
.carrusel-general img {
  max-height: 300px;
  object-fit: contain;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Hover */
.carrusel-general .carousel-item:hover img {
  transform: scale(1.04);
  opacity: 0.95;
}

/* Text */
.carrusel-general p {
  font-size: 1.15rem;
  color: var(--brand-red);
}

/* Controls */
.carrusel-general .carousel-control-prev,
.carrusel-general .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

/* Controls cap enfora */
.carrusel-general .carousel-control-prev {
  left: -2.2rem;
}

.carrusel-general .carousel-control-next {
  right: -2.2rem;
}

/* Controls en mòbil */
@media (max-width: 576px) {
  .carrusel-general .carousel-control-prev {
    left: -1rem;
  }
  .carrusel-general .carousel-control-next {
    right: -1rem;
  }
}

/* Anul·lar màscara Bootstrap */
.carrusel-general .carousel-control-prev-icon,
.carrusel-general .carousel-control-next-icon {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* Cercle vermell + fletxa blanca */
.carrusel-general .carousel-control-prev-icon,
.carrusel-general .carousel-control-next-icon {
  background-color: #d40000;
  border-radius: 50%;
  padding: 18px;
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Fletxa esquerra */
.carrusel-general .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon fill='%23ffffff' points='16,3 6,12 16,21'/%3E%3C/svg%3E") !important;
}

/* Fletxa dreta */
.carrusel-general .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon fill='%23ffffff' points='8,3 18,12 8,21'/%3E%3C/svg%3E") !important;
}

/* Animació */
.carrusel-general {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.carrusel-general.animate {
  opacity: 1;
  transform: translateY(0);
}