.hero-carousel-card {
  position: relative;
  background-color: var(--white);
  width: 100%;
  min-height: 21rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-image 0.5s;
}
.hero-carousel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.slide-text p {
  margin: 0;
  color: var(--white);
  font-size: 2rem;
  font-weight: 400;
  line-height: 100%;
  margin-top: 0.62rem;
}

.logo-service {
  background-color: var(--blue);
  border-radius: 0.25rem;
  width: 5.54rem;
  height: 1.68rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0.75rem 0.25rem 0.75rem 0.5rem;
}

.logo {
  display: block;
  width: 4.04rem;
  height: 0.93rem;
  object-fit: contain;
}

.carousel-services {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.slide-service {
  display: none;
  background: transparent;
  width: 100%;
  height: 100%;
  border-radius: 0.8rem;
  padding: 1.2rem 1.5rem;
  transition: opacity 0.3s;
}
.slide-service.active {
  display: flex;
  opacity: 1;
  z-index: 2;
}

/* Miniaturas abajo a la derecha */
.thumbanils-carousel-controls {
  position: absolute;
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2.9rem;
  margin-left: 0.7rem;
  column-gap: 0.62rem;
}
.thumbanils-services {
  height: 100%;
  gap: 0.32rem;
  list-style: none;
  background: var(--gray-dark);
  border-radius: 0.6rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin: 0;
}
.thumbanils-services li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.thumbanil-thumb {
  display: block;
  border-radius: 0.5rem;
  outline: none;
  border: 2px solid transparent;
  transition: border 0.2s;
  width: 2.25rem;
  height: 2.25rem;
}
.thumbanil-thumb.active img,
.thumbanil-thumb:hover img,
.thumbanil-thumb:focus img {
  filter: grayscale(0%);
}
.thumbanil-thumb img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 0.3rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.thumbanil-thumb:focus,
.thumbanil-thumb.active {
  border: 2px solid var(--blue);
  outline: none;
}

.carousel-buttons {
  display: flex;
  gap: 0.5rem;
  width: 4.3rem;
}

.carousel-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.carousel-buttons button:hover,
.carousel-buttons button:focus {
  transform: scale(1.1);
  outline: none;
}

.carousel-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-buttons button .arrow-icon {
  width: 31px;
  height: 32px;
  display: block;
}
.btn-prev, .btn-next{
filter: brightness(0) invert(1);
}

/* Controles del carrusel (switch + selector de idioma) */
.carousel-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.switch-carousel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.switch-label {
  font-size: 0.875rem;
  color: var(--white);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  background: transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.switch-carousel:hover .switch-label {
  opacity: 1;
  transform: translateX(0);
}
.switch-carousel input[type="checkbox"] {
  width: 3rem;
  height: 1.75rem;
  appearance: none;
  background: transparent;
  border-radius: 0.875rem;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0;
  border: 2px solid var(--white);
}
.switch-carousel input[type="checkbox"]:checked {
  background: var(--white);
}
.switch-carousel input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  top: 50%;
  transform: translateY(-50%);
  left: 0.125rem;
}
.switch-carousel input[type="checkbox"]:checked::before {
  transform: translate(1.375rem, -50%);
  background: var(--blue);
}
.switch-accessibility {
  background: var(--black);
  color: var(--white);
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  margin-top: 0.375rem;
  display: inline-block;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.07);
}

/* Estilos de foco visible para accesibilidad */
.switch-carousel input[type="checkbox"]:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  background-color: transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-prev:focus,
.btn-next:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  background-color: transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* Selector de idioma del carrusel */
.carousel-language-selector {
  display: flex;
  align-items: center;
}

/* Estilos para el selector de idioma WPML en el carrusel */
.carousel-language-selector .wpml-language-selector {
  display: flex;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 2rem;
  padding: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.carousel-language-selector .wpml-lang-option {
  background: transparent;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  color: var(--white);
  text-decoration: none;
}

.carousel-language-selector .wpml-lang-option.wpml-lang-active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.carousel-language-selector .wpml-lang-option:hover:not(.wpml-lang-active) {
  background: transparent;
  border-color: var(--white);
  transform: translateY(-1px);
}

.carousel-language-selector .wpml-lang-option.wpml-lang-active:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.thumbanil-thumb:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  background-color: transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* Responsive */
@media (min-width: 600px) {
  .hero-carousel-card {
    width: 100%;
    max-width: 44rem;
    min-height: 21rem;
    max-height: 47.625rem;
    box-sizing: border-box;
    flex-shrink: 1;
    flex-grow: 1;
    padding: 1rem;
  }

  .slide-service {
    padding: 0.7rem 0.8rem;
  }
  .slide-text {
    width: 17.43rem;
    height: 6.29rem;
    p{
      font-size: 3.87rem;
    };
  }

  .logo-service {
    width: 8.69rem;
    height: 2.41rem;
  }

  .logo {
    width: 7.19rem;
    height: 2rem;
  }
}

/* Responsive para móvil */
@media (max-width: 599px) {
  .carousel-controls {
    top: 0.5rem;
    right: 0.5rem;
    gap: 10px;
  }
  
  .carousel-language-selector .wpml-language-selector {
    padding: 0.2rem;
  }
  
  .carousel-language-selector .wpml-lang-option {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    min-width: 2rem;
  }
}

/* Selector de idioma WPML - Estilos movidos a saluven.css */
