/* Carousel enhancements: shadows, prominent controls, caption backgrounds and subtle motion
   Non-invasive: targets Bootstrap carousels used in theme IDs like #carousel-img, #enlacesCarrousel, indicators etc.
*/

/* Add soft elevated shadow and subtle scale on active slide */
#carousel-img .carousel-item,
#enlacesCarrousel .carousel-item,
#indicadoresCarrousel .carousel-item,
.herramientasCarrousel .carousel-item {
  transition: transform 420ms cubic-bezier(.2,.9,.3,1), box-shadow 420ms cubic-bezier(.2,.9,.3,1);
  will-change: transform;
}

#carousel-img .carousel-item.active,
#enlacesCarrousel .carousel-item.active,
#indicadoresCarrousel .carousel-item.active,
.herramientasCarrousel .carousel-item.active {
  transform: scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* Caption background for readability */
#carousel-img .carousel-caption,
#enlacesCarrousel .carousel-caption,
#indicadoresCarrousel .carousel-caption,
.herramientasCarrousel .carousel-caption {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: #fff;
  z-index: 60; /* ensure captions render above overlays */
}

/* Prominent controls */
#carousel-img .carousel-control-prev-icon,
#carousel-img .carousel-control-next-icon,
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
  width: 3.2rem; height: 3.2rem; background-size: 3.2rem 3.2rem;
}

/* Bigger clickable area */
.carousel-control-prev, .carousel-control-next {
  width: 64px; height: 64px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
}

/* Indicators: bigger and more visible */
.carousel-indicators [data-bs-target] {
  width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255,255,255,0.5); border: 2px solid rgba(0,0,0,0.08); transition: background-color 180ms ease, transform 180ms ease;
}
.carousel-indicators .active {
  background-color: var(--gobbo-accent, #ffb74d); transform: scale(1.2);
}

/* Hover/Focus states for controls */
.carousel-control-prev:focus, .carousel-control-next:focus, .carousel-control-prev:hover, .carousel-control-next:hover {
  outline: none; transform: translateY(-50%) scale(1.02);
}

/* Respect reduce motion */
@media (prefers-reduced-motion: reduce) {
  #carousel-img .carousel-item,
  #enlacesCarrousel .carousel-item,
  #indicadoresCarrousel .carousel-item { transition: none; transform: none; box-shadow: none; }
  .carousel-indicators [data-bs-target] { transition: none; }
}

/* Make images cover and centered inside slides */
#carousel-img .carousel-item img,
#enlacesCarrousel .carousel-item img,
#indicadoresCarrousel .carousel-item img { object-fit: cover; width: 100%; height: 100%; }

/* Slight vignette to focus center */
#carousel-img::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.06) 100%); }

/* Side shadows: draw gradient overlays using a pseudo-element so the shadow is visible above slides. */
#carousel-img,
#enlacesCarrousel,
#indicadoresCarrousel,
.herramientasCarrousel {
  position: relative; /* container for the overlay */
}

/* ::before will render two gradient bands (left + right) on top of slides */
#carousel-img::before,
#enlacesCarrousel::before,
#indicadoresCarrousel::before,
.herramientasCarrousel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Raise overlay above slides; captions are set higher below */
  z-index: 50;
  /* stronger/darker side shadows and wider bands */
  background-image: linear-gradient(90deg, rgba(0,0,0,0.54), rgba(0,0,0,0) 36%), linear-gradient(270deg, rgba(0,0,0,0.54), rgba(0,0,0,0) 36%) !important;
  background-repeat: no-repeat !important;
  background-position: left center, right center !important;
  background-size: 200px 100%, 200px 100% !important;
}

@media (max-width: 767px) {
  #carousel-img::before,#enlacesCarrousel::before,#indicadoresCarrousel::before,.herramientasCarrousel::before {
    /* mobile: slightly stronger and wider than before */
    background-image: linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0) 46%), linear-gradient(270deg, rgba(0,0,0,0.32), rgba(0,0,0,0) 46%);
    background-size: 120px 100%, 120px 100%;
  }
}


