/* Carrusel hero de la página de inicio */

.amg-hero-slideshow__slide {
  animation: amg-hero-fade 0.45s ease;
}

.amg-hero-slideshow__slide[hidden] {
  display: none !important;
}

@keyframes amg-hero-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.amg-hero-slideshow__dots {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Área táctil ≥ 48×48 px; el indicador visual va en ::before */
.amg-hero-slideshow__dot {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  color: inherit;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.amg-hero-slideshow__dot::before {
  content: '';
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, width 0.2s ease, transform 0.2s ease;
}

.amg-hero-slideshow__dot.is-active::before {
  width: 1.5rem;
  background: rgb(var(--amg-brand-400));
}

.amg-hero-slideshow__dot:hover::before,
.amg-hero-slideshow__dot:focus-visible::before {
  background: rgba(255, 255, 255, 0.45);
}

.amg-hero-slideshow__dot.is-active:hover::before,
.amg-hero-slideshow__dot.is-active:focus-visible::before {
  background: rgb(var(--amg-brand-400));
}

.amg-hero-slideshow__dot:focus-visible {
  outline: 2px solid rgb(var(--amg-brand-400));
  outline-offset: 2px;
}

.amg-hero-slideshow__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgb(226 232 240);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.amg-hero-slideshow__nav:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.amg-hero-slideshow__nav:focus-visible {
  outline: 2px solid rgb(var(--amg-brand-400));
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .amg-hero-slideshow__slide {
    animation: none;
  }

  .amg-hero-slideshow__dot::before {
    transition: none;
  }
}

html[data-mode='light'] .amg-hero-slideshow__dot::before {
  background: rgba(15, 23, 42, 0.2);
}

html[data-mode='light'] .amg-hero-slideshow__dot.is-active::before {
  background: rgb(var(--amg-brand-500));
}

html[data-mode='light'] .amg-hero-slideshow__dot:hover::before,
html[data-mode='light'] .amg-hero-slideshow__dot:focus-visible::before {
  background: rgba(15, 23, 42, 0.35);
}

html[data-mode='light'] .amg-hero-slideshow__dot.is-active:hover::before,
html[data-mode='light'] .amg-hero-slideshow__dot.is-active:focus-visible::before {
  background: rgb(var(--amg-brand-500));
}

html[data-mode='light'] .amg-hero-slideshow__nav {
  border-color: rgba(15, 23, 42, 0.15);
  color: rgb(30 41 59);
  background: rgba(15, 23, 42, 0.04);
}
