/* =========================================================
   MODELOS SLIDER
========================================================= */

.modelos-slider {
    position: relative;

    width: 100%;

    background-color   : #000000;
    background-image   : url('../images/home/modelos-slider-master.png');
    background-position: center;
    background-size    : cover;
    background-repeat  : no-repeat;

    overflow: hidden;
}

.modelos-slider__swiper {
    width: 100%;
    height: 780px;
}

.modelos-slider__slide {
    position: relative;
    width   : 100%;
    height  : 100%;
    overflow: hidden;
}

/* ENCABEZADO */

.modelos-slider__heading {
    position: absolute;
    top: 55px;
    left: 50%;
    z-index: 5;
    width: min(90%, 900px);
    text-align: center;
    transform: translateX(-50%);
}

.modelos-slider__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
}

.modelos-slider__subtitle {
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.5;
}

/* FONDO DEL SLIDE */

.modelos-slider__background {
    position: absolute;

    /* top : 0; */
    left: 0;
    bottom: 150px;

    width : 100%;
    height: 100%;

    background-position: center;
    background-size    :auto;
    background-repeat  : no-repeat;
    
    opacity: 0.15;

    /* transform: translate(-50%, -50%); */

    z-index: 1;
}

/* CONTENIDO */

.modelos-slider__content {
    position: relative;

    z-index: 2;

    width : 100%;
    height: 100%;

    display        : flex;
    align-items    : center;
    justify-content: center;

    padding   : 40px;
    box-sizing: border-box;
}

/* IMAGEN PRINCIPAL */

.modelos-slider__image {
    display: block;

    width    : auto;
    max-width: 90%;
    height   : 88%;

    object-fit: contain;
    top      : 200px;
    position: relative;
    z-index : 2;

    transform: translateY(-2%);
}

/* BOTÓN */

.modelos-slider__button {
    position: absolute;

    left  : 50%;
    bottom: 70px;

    z-index: 4;

    display        : inline-flex;
    align-items    : center;
    justify-content: center;

    min-width: 170px;
    padding  : 15px 32px;

    color           : #000000;
    background-color: #ffffff;

    font-size  : 0.9rem;
    font-weight: 500;

    letter-spacing: 0.02em;

    text-decoration: none;

    transform: translateX(-50%);

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.modelos-slider__button:hover {
    color           : #ffffff;
    background-color: #000000;

    transform: translateX(-50%) translateY(-2px);
}

/* PAGINACIÓN */

.modelos-slider__pagination {
    position: absolute;

    left  : 50% !important;
    bottom: 25px !important;

    z-index: 10;

    display        : flex;
    align-items    : center;
    justify-content: center;

    gap: 4px;

    width: min(300px, 70%) !important;

    transform: translateX(-50%);
}

.modelos-slider__pagination .swiper-pagination-bullet {
    flex: 1;

    width : auto;
    height: 2px;

    margin: 0 !important;

    border-radius: 0;

    background-color: rgba(255, 255, 255, 0.45);

    opacity: 1;

    transition:
        background-color 0.3s ease,
        height 0.3s ease;
}

.modelos-slider__pagination .swiper-pagination-bullet-active {
    height          : 3px;
    background-color: #1ef1c6;
}


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

@media (max-width: 768px) {

    .modelos-slider__swiper {
        height: 680px;
    }

    .modelos-slider__image {
        max-width: 96%;
        height   : 72%;

        transform: translateY(-3%);
    }

    .modelos-slider__button {
        bottom: 65px;

        min-width: 150px;
        padding  : 13px 24px;

        font-size: 0.85rem;
    }
    .modelos-slider__background {
        bottom: 100px;
    }

}