/* Dewemo v1.20 — interacción del carrusel, navegación y hover de accesos. */

/* El slider tenía z-index negativo, lo que podía dejar controles detrás del documento. */
.slider {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.slider .carousel,
.slider .carousel-inner {
  position: relative;
  z-index: 1;
}

.slider .carousel-control-prev,
.slider .carousel-control-next,
.slider .carousel-indicators {
  z-index: 6;
  pointer-events: auto;
}

.slider .carousel-control-prev,
.slider .carousel-control-next {
  cursor: pointer;
}

/* Hover visible y consistente en las cuatro tarjetas de acceso rápido. */
.services-icons > a {
  border-radius: 18px;
  outline-offset: 4px;
}

.services-icons__icon {
  background: #fff;
  transition:
    transform .24s ease,
    background .24s ease,
    border-color .24s ease,
    box-shadow .24s ease,
    color .24s ease;
}

.services-icons > a:hover .services-icons__icon,
.services-icons > a:focus-visible .services-icons__icon,
.services-icons > a:focus-within .services-icons__icon {
  background: linear-gradient(145deg, #eaf4ff 0%, #dcf8ff 100%);
  border-color: #59c8f0;
  box-shadow: 0 16px 36px rgba(8, 126, 170, .16);
  transform: translateY(-4px);
  color: #0b1730;
}

.services-icons > a:hover .services-icons__icon h6,
.services-icons > a:focus-visible .services-icons__icon h6,
.services-icons > a:focus-within .services-icons__icon h6 {
  color: #0b1730;
}

.services-icons > a:focus-visible {
  outline: 3px solid #159fe5;
}

@media (prefers-reduced-motion: reduce) {
  .services-icons__icon,
  .slider .carousel-item {
    transition: none !important;
  }

  .services-icons > a:hover .services-icons__icon,
  .services-icons > a:focus-visible .services-icons__icon,
  .services-icons > a:focus-within .services-icons__icon {
    transform: none;
  }
}
