/* =====================================================
   HERO / SLIDER
===================================================== */

.hero-slider {
    position: relative;
    width: auto;
    margin-top: 10px;
    margin-bottom: 28px;
}


/* =====================================================
   VIEWPORT
===================================================== */

.hero-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1900 / 345;
    overflow: hidden;

    border: 3px solid #506bd3;
    border-radius: 26px;

    background: #06051f;

    box-shadow:
        0 0 0 1px rgba(89, 104, 226, 0.12),
        0 12px 34px rgba(0, 0, 0, 0.32);
}


/* =====================================================
   TRACK
===================================================== */

.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}


/* =====================================================
   SLIDES
===================================================== */

.hero-slider__slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transform: scale(1.025);

    transition:
        opacity 1.2s ease,
        transform 5s ease,
        visibility 0s linear 1.2s;

    pointer-events: none;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;

    transform: scale(1);

    transition:
        opacity 1.2s ease,
        transform 10s ease,
        visibility 0s linear 0s;

    pointer-events: auto;
}

.hero-slider__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slider__slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    user-select: none;
    -webkit-user-drag: none;
}


/* =====================================================
   PAGINACIÓN
===================================================== */

.hero-slider__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    min-height: 24px;
    margin-top: 14px;
    padding-inline: 15px;
}

.hero-slider__bullet {
    position: relative;

    width: 14px;
    height: 14px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.66);

    cursor: pointer;

    transition:
        width 0.3s ease,
        border-radius 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-slider__bullet:hover {
    background: #fff;
    transform: scale(1.12);
}

.hero-slider__bullet.is-active {
    width: 34px;
    border-radius: 999px;

    background: #ffd000;

    box-shadow:
        0 0 10px rgba(255, 208, 0, 0.42);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1199px) {

    .hero-slider__viewport {
        aspect-ratio: 16 / 4.2;
        border-radius: 28px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .hero-slider {
        margin-top: 14px;
        margin-bottom: 32px;
    }

    .hero-slider__viewport {
        aspect-ratio: 1.18 / 1;

        border-width: 2px;
        border-radius: 29px;

        height: 9em;
    }

    .hero-slider__slide img {
        object-position: center;
        height: 50%;
    }

    .hero-slider__pagination {
        gap: 10px;
        margin-top: 16px;
    }

    .hero-slider__bullet {
        width: 13px;
        height: 13px;
    }

    .hero-slider__bullet.is-active {
        width: 30px;
    }

    .hero-slider__slide picture {
    height: auto;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 480px) {

    .hero-slider__viewport {
        aspect-ratio: 1.05 / 1;
        border-radius: 23px;
    }

    .hero-slider__pagination {
        margin-top: 13px;
    }

    .hero-slider__bullet {
        width: 11px;
        height: 11px;
    }

    .hero-slider__bullet.is-active {
        width: 26px;
    }

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

.hero-slider__bullet:focus-visible {
    outline: 3px solid #ffd000;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .hero-slider__slide,
    .hero-slider__bullet {
        transition: none;
    }

}