/* =====================================
   SLIDER OABI PRINCIPAL
===================================== */

.oabi-slider{
    position:relative;
    width:100%;
    height:550px;
    overflow:hidden;
}


.oabi-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* CONTENIDO SOBRE IMAGEN */

.oabi-slider-content{
    position:absolute;
    left:12%;
    top:50%;
    transform:translateY(-50%);
    width:420px;
}


/* TITULO */

.oabi-slider-content h2{
    color:white;
    font-size:30px;
    line-height:1.15;
    font-weight:700;
    margin:0 0 10px 0;
    text-transform:uppercase;
    text-align:left;
}


/* TEXTO */

.oabi-slider-content p{
    color:white;
    font-size:16px;
    line-height:1.3;
    font-weight:400;
    margin:0 0 20px 0;
    max-width:380px;
    text-align:left;
    letter-spacing:0;
}
.oabi-slider-content p{

    text-align:left;

    text-justify:inter-word;

}


/* BOTON SLIDER OABI */

.btn-oabi{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:150px;
    height:45px;

    background:#ffffff;
    color:#224f9d;

    font-size:16px;
    font-weight:600;

    text-decoration:none;

    border-radius:5px;

    transition:0.3s ease;
}


.btn-oabi:hover{

    background:#224f9d;
    color:#ffffff;

}
/* FORZAR BOTÓN SLIDER OABI */

section.oabi-slider a.btn-oabi{

    background-color:#ffffff !important;
    color:#224f9d !important;

    display:inline-flex !important;
    align-items:center;
    justify-content:center;

    width:150px !important;
    height:45px !important;

    border-radius:5px !important;

    font-size:16px !important;
    font-weight:600 !important;

    text-decoration:none !important;

    transition:background-color .3s ease, color .3s ease !important;
}



section.oabi-slider a.btn-oabi:hover{

    background-color:#224f9d !important;
    color:#ffffff !important;

}
/* =====================================
   ANIMACIÓN TEXTO SLIDER
===================================== */

.oabi-slider-content h2{
    animation: oabiTextIn .8s ease forwards;
}


.oabi-slider-content p{
    animation: oabiTextIn .9s ease .15s forwards;
}


.oabi-slider-content a{
    animation: oabiTextIn .9s ease .3s forwards;
}



@keyframes oabiTextIn{

    from{
        opacity:0;
        transform:translateX(-60px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}
/* =====================================
   CONTROL DE SLIDES
===================================== */

.oabi-slide{

    position:absolute;

    width:100%;
    height:100%;

    top:0;
    left:0;

    opacity:0;

    transition:opacity .8s ease;

}


.oabi-slide.activo{

    opacity:1;

    z-index:2;

}
/* =====================================
   ANIMACIÓN TEXTO SLIDER
===================================== */


.oabi-slide.activo .oabi-slider-content h2{

    animation: entradaTitulo .8s ease forwards;

}


.oabi-slide.activo .oabi-slider-content p{

    animation: entradaTexto 1s ease forwards;

}


.oabi-slide.activo .btn-oabi{

    animation: entradaBoton 1.2s ease forwards;

}



@keyframes entradaTitulo{

    from{

        opacity:0;
        transform:translateX(-60px);

    }

    to{

        opacity:1;
        transform:translateX(0);

    }

}



@keyframes entradaTexto{

    from{

        opacity:0;
        transform:translateX(-40px);

    }

    to{

        opacity:1;
        transform:translateX(0);

    }

}



@keyframes entradaBoton{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}
/* =====================================
   FLECHAS SLIDER OABI
===================================== */


.oabi-prev,
.oabi-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:38px;

    height:38px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.45);

    color:white;

    font-size:22px;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:10;

    transition:.3s ease;

}


.oabi-prev{

    left:20px;

}


.oabi-next{

    right:20px;

}


.oabi-prev:hover,
.oabi-next:hover{

    background:#224f9d;

    color:white;

}
/* =====================================================
   AJUSTES SLIDER MOVIL
   SOLO TEXTO Y BOTON
   NO AFECTA PC NI TABLET
===================================================== */

@media screen and (max-width:600px){


/* CONTENIDO DEL SLIDER */

.oabi-slider-content{

    top:auto;

    bottom:45px;

    left:25px;

    right:25px;

    transform:none;

}


/* TITULO */

.oabi-slider-content h2{

    font-size:24px;

    line-height:1.15;

    margin-bottom:05px;

}



/* PARRAFO */

.oabi-slider-content p{

    font-size:12px;

    line-height:1.35;

    margin-bottom:18px;

    max-width:300px;

}



/* BOTON */

.btn-oabi{

    font-size:14px;

    padding:10px 22px;

}


}
/* =====================================================
   MEJORAS SLIDER MOVIL
   TEXTO + BOTON + FONDO DE LECTURA
===================================================== */

@media screen and (max-width:600px){


/* CAPA OSCURA INFERIOR
   SOLO MITAD BAJA DE LA IMAGEN */

.oabi-slide::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:50%;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0)
    );

    z-index:1;

}



/* CONTENIDO ENCIMA DE LA CAPA */

.oabi-slider-content{

    z-index:2;

}



/* PARRAFO JUSTIFICADO */

.oabi-slider-content p{

    text-align:left;

}



/* BOTON */

.btn-oabi{

    min-width:150px;

    text-align:center;

    white-space:nowrap;

    padding:11px 25px;

}



}
/* =====================================================
   SLIDER TABLET
   TEXTO INFERIOR + DEGRADADO
===================================================== */

@media screen and (min-width:601px) and (max-width:1024px){


.oabi-slide::after{

    content:"";

    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    height:55%;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.70),
        rgba(0,0,0,0)
    );

    z-index:1;

}



/* FORZAR POSICIÓN DEL CONTENIDO */

.oabi-slide .oabi-slider-content{

    position:absolute !important;

    left:60px !important;

    bottom:55px !important;

    top:auto !important;

    transform:none !important;

    z-index:2;

    max-width:480px;

}



/* TITULO */

.oabi-slider-content h2{

    font-size:30px;

    margin-bottom:12px;

}



/* PÁRRAFO */

.oabi-slider-content p{

    text-align:justify;

    font-size:14px;

    line-height:1.4;

    margin-bottom:18px;

}



/* BOTÓN */

.btn-oabi{

    display:inline-block;

    min-width:150px;

    text-align:center;

    padding:12px 30px;

    white-space:nowrap;

}



}