/* Carrusel exclusivo del home. No modifica los otros heroes ni site.css. */
#home-hero.hero--slideshow::before {
  content: none;
  animation: none;
}

#home-hero.hero--slideshow::after {
  background: radial-gradient(ellipse at 50% 48%, rgba(8, 19, 37, .62), rgba(8, 19, 37, .36));
}

#home-hero .home-slides,
#home-hero .home-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#home-hero .home-slides { z-index: 0; }

#home-hero .home-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-position, center);
  opacity: 0;
  transition: opacity 1000ms ease;
}

#home-hero .home-slide.is-active { opacity: 1; }

#home-hero .home-hero-controls {
  position: absolute;
  z-index: 3;
  inset-inline: 24px;
  bottom: max(32px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#home-hero .home-hero-controls[hidden] { display: none; }

#home-hero .home-hero-mobile { display: none; }

#home-hero .home-hero-categories {
  display: flex;
  gap: 28px;
}

#home-hero .home-hero-category,
#home-hero .home-hero-toggle {
  appearance: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 12px 0;
  min-height: 44px;
}

#home-hero .home-hero-category {
  position: relative;
  opacity: .8;
  border-bottom: 2px solid rgba(255, 255, 255, .35);
  transition: opacity 200ms ease, border-color 200ms ease;
}

#home-hero .home-hero-category[aria-pressed="true"],
#home-hero .home-hero-category:hover {
  opacity: 1;
  border-color: #fff;
}

#home-hero .home-hero-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
}

#home-hero .home-hero-toggle:hover { background: rgba(255, 255, 255, .12); }
#home-hero .home-hero-toggle svg { width: 18px; height: 18px; fill: currentColor; }
#home-hero .home-hero-toggle [hidden] { display: none; }

#home-hero .home-hero-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  /* Conservar el mismo zoom hasta que termine el fundido de salida.
     La escala solo se reinicia cuando la imagen ya está invisible. */
  #home-hero .home-slide.is-active,
  #home-hero .home-slide.is-exiting {
    animation: mk-slide-zoom 8s linear both;
  }
  @keyframes mk-slide-zoom {
    from { transform: scale(1.01); }
    to { transform: scale(1.055); }
  }
}

@media (prefers-reduced-motion: reduce) {
  #home-hero .home-slide { transition: none; }
}

@media (max-width: 600px) {
  #home-hero.hero--slideshow { padding-block: 112px; }
  #home-hero .home-hero-controls {
    inset-inline: 20px;
    gap: 8px;
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  #home-hero .home-hero-categories { display: none; }
  #home-hero .home-hero-mobile {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 8px;
  }
  #home-hero .home-hero-current {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
  }
  #home-hero .home-hero-stepper {
    display: flex;
    flex: 0 0 auto;
  }
  #home-hero .home-hero-step {
    display: grid;
    place-items: center;
    appearance: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }
  #home-hero .home-hero-step:active { background: rgba(255, 255, 255, .16); }
  #home-hero .home-hero-step svg { width: 20px; height: 20px; }
}

@media (min-width: 601px) and (max-height: 650px) {
  #home-hero.hero--slideshow { padding-block: 112px 124px; }
  #home-hero .home-hero-controls { bottom: 20px; }
}
