/* SIASCA Hero Slider */
:root {
  --siasca-hero-height: min(75vh, 820px);
  --siasca-hero-radius: 16px;
  --siasca-hero-overlay: linear-gradient(180deg, rgba(0,0,0,.55) 10%, rgba(0,0,0,.7) 100%);
  --siasca-hero-speed: 500ms;
  --siasca-hero-ease: cubic-bezier(.16,.84,.44,1);
  --siasca-accent: #b7ff45; /* tono lima como en referencia */
}

.siasca-hero {
  position: relative;
  min-height: var(--siasca-hero-height);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.siasca-hero__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.siasca-hero__track {
  position: absolute;;
  inset: 0;
  display: flex;
  height: 100%;
  transform: translate3d(calc(var(--index,0) * -100%), 0, 0);
  transition: transform var(--siasca-hero-speed) var(--siasca-hero-ease);
}

.siasca-hero__slide {
  flex: 0 0 100%;
  height: 100%;
  /* Fondo opcional si no hay <img> */
  background-image: var(--bg, none);
  background-size: var(--fit, cover);
  background-position: var(--pos, center);
  background-repeat: no-repeat;
  filter: saturate(.95) contrast(1.05);
}

.siasca-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* siempre ocupar ancho/alto completo */
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none; /* no interfiere con botones overlay */
}

.siasca-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--siasca-hero-overlay);
  z-index: 1;
  pointer-events: none; /* no bloquea clics en nav/botones */
}

.siasca-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 80px 28px;
}

.siasca-hero__copy {
  align-self: center;
  max-width: min(920px, 95%);
}

.siasca-hero__title {
  line-height: 1.05;
  color: #fff;
  margin: 0 0 16px 0;
}

.siasca-hero__subtitle {
  font-size: clamp(14px, 1.6vw, 18px);
  opacity: .9;
  max-width: 920px;
}

.siasca-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

/* Navegación (recuadros) */
.siasca-hero__nav {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 3;
  display: grid;
  grid-auto-flow: column;
  justify-content: end;
  width: fit-content;
}

.siasca-hero__navItem {
  appearance: none;
  background: rgba(17,17,17,.45);
  border: 1px solid rgba(255,255,255,.15);
  color: #e9ecef;
  padding: 14px 18px;
  min-width: 230px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 14px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
  cursor: pointer;
  border-radius: 10px;
}

.siasca-hero__navItem:hover { 
  border-color: rgba(255,255,255,.35);
  transform: translateY(-2px);
}

.siasca-hero__navItem.is-active {
  background: rgba(40,40,40,.55);
  border-color: var(--siasca-accent);
  color: #fff;
}

.siasca-hero__navIndex {
  font-weight: 700;
  opacity: .85;
}

.siasca-hero__navLabel {
  position: relative;
  padding-top: 6px;
}

/* Línea decorativa bajo el texto */
.siasca-hero__navItem .siasca-hero__navLabel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
}

.siasca-hero__navItem.is-active .siasca-hero__navLabel::after {
  background: var(--siasca-accent);
}

/* Responsivo */
@media (max-width: 992px) {
  .siasca-hero { --siasca-hero-radius: 0; }
  .siasca-hero__nav {
    position: relative;           /* crea stacking context para z-index */
    z-index: 2;                   /* por encima del overlay (z=1) */
    margin: 14px 12px 12px;       /* separación del texto */
    grid-auto-flow: row;
    width: auto;
    justify-content: stretch;
    gap: 10px;
  }
  .siasca-hero__navItem { min-width: unset; width: 100%; }
}
