/* ==========================================================
   PROCESOS OABI
   Franja institucional de procesos
   ========================================================== */


/* CONTENEDOR GENERAL */

.procesos-oabi {

    width: 100%;
    background: #ffffff;
    padding: 45px 0;
}


.procesos-container {

    width: 85%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(6, 1fr);

    align-items: center;
}


/* ==========================================================
   ELEMENTO PROCESO
   ========================================================== */


.proceso-card {

    position: relative;

    min-height: 130px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 15px 20px;

    border-right: 1px solid #e5e5e5;

    cursor: default;

    transition: all .35s ease;
}


/* quitar línea al último */

.proceso-card:last-child {

    border-right: none;

}



/* ==========================================================
   ICONOS
   ========================================================== */


.proceso-card img {

    width: 55px;
    height: 55px;

    object-fit: contain;

    margin-bottom: 15px;

    transition: all .35s ease;

}



/* ==========================================================
   TITULO
   ========================================================== */


.proceso-card h3 {

    margin: 0;

    font-family: "Poppins", sans-serif;

    font-size: 15px;

    font-weight: 500;

    color: #224f9d;

    text-transform: uppercase;

    line-height: 1.3;

    transition: all .35s ease;

}



/* ==========================================================
   EFECTO HOVER
   ========================================================== */


.proceso-card:hover img {

    transform: translateY(-8px);

}



.proceso-card:hover h3 {

    color: #ad8411;

}



/* línea dorada inferior */

.proceso-card::after {

    content: "";

    position: absolute;

    bottom: 5px;

    left: 50%;

    width: 0;

    height: 3px;

    background: #ad8411;

    transform: translateX(-50%);

    transition: all .35s ease;

}


.proceso-card:hover::after {

    width: 55px;

}


/* ==========================================================
   TEXTO OCULTO PARA HOVER
   ========================================================== */


.proceso-descripcion {

    position: absolute;

    bottom: -35px;

    left: 50%;

    transform: translateX(-50%);

    width: 210px;

    padding: 12px;


    background: #224f9d;

    color: white;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    line-height: 1.4;

    border-radius: 5px;


    opacity: 0;

    visibility: hidden;

    transition: all .35s ease;

    z-index: 5;

}








/* ==========================================================
   TABLET
   768px - 1024px
   ========================================================== */


@media screen and (max-width:1024px){


.procesos-container {


    width: 90%;

    grid-template-columns: repeat(3,1fr);

    row-gap: 30px;

}



.proceso-card:nth-child(3){

    border-right:none;

}


.proceso-card:nth-child(6){

    border-right:none;

}



}



/* ==========================================================
   MOVIL
   Hasta 767px
   ========================================================== */


@media screen and (max-width:767px){


.procesos-oabi {

    padding:35px 0;

}



.procesos-container {


    width: 90%;

    grid-template-columns: repeat(2,1fr);

    row-gap: 35px;

}



.proceso-card {


    min-height:120px;

    padding:10px;

}



.proceso-card:nth-child(even){

    border-right:none;

}



.proceso-card img {


    width:45px;

    height:45px;

    margin-bottom:12px;


}



.proceso-card h3 {


    font-size:13px;


}


}
/* =====================================
   LINEA INSTITUCIONAL PROCESOS - PC
===================================== */

.linea-procesos{

    width:100%;

    height:2px;

    background:#adadad;

    margin-top:80px;

}
/* =====================================
   TABLET Y MOVIL
   Línea corta institucional
===================================== */

@media screen and (max-width:1024px){

    .linea-procesos{

        width:85%;

        max-width:1400px;

        height:1px;

        background:#e2e2e2;

        margin:25px auto 0;

    }

}
/* =====================================
   DESCRIPCIÓN PROCESOS
===================================== */

.proceso-descripcion {

    position:absolute;

    bottom:-75px;

    left:50%;

    transform:translateX(-50%);

    width:210px;

    padding:12px;

    background:#224f9d;

    color:white;

    font-family:"Poppins", sans-serif;

    font-size:12px;

    line-height:1.4;

    text-align:center;

    border-radius:5px;

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:.35s ease;

    z-index:10;

}



/* PC solamente con hover */

@media screen and (min-width:1025px){

    .proceso-card:hover .proceso-descripcion{

        opacity:1;

        visibility:visible;

        pointer-events:auto;

    }

}



/* TABLET Y MOVIL - por clic */

@media screen and (max-width:1024px){


    .proceso-card{

        min-height:150px;

    }


    .proceso-descripcion{

        width:150px;

        font-size:11px;

        padding:10px;

        top:125px;

        bottom:auto;

    }



    .proceso-card.activo .proceso-descripcion{

        opacity:1;

        visibility:visible;

        pointer-events:auto;

    }


    .proceso-card.activo h3{

        color:#ad8411;

    }


    .proceso-card.activo::after{

        width:55px;

    }


}
/* =====================================
   LIMPIAR ESTADO AL CERRAR EN MOVIL
===================================== */

@media screen and (max-width:1024px){


.proceso-card:not(.activo) h3{

    color:#224f9d;

}



.proceso-card:not(.activo)::after{

    width:0;

}



}
/* =====================================
   AJUSTE LINEA DESPUES DE PROCESOS
   TABLET Y MOVIL
===================================== */

@media screen and (max-width:1024px){

    .linea-procesos{

        margin-top:90px;

    }

}
/* =====================================
   SEPARADORES MOVIL PROCESOS OABI
===================================== */

@media screen and (max-width:767px){


.proceso-card{

    border-right:1px solid #e5e5e5;

}


/* quitar línea derecha de la última columna */

.proceso-card:nth-child(2n){

    border-right:none;

}


}
/* =====================================
   LINEAS VERTICALES MOVIL OABI
===================================== */

@media screen and (max-width:767px){


    /* quitamos reglas anteriores */
    .proceso-card{
        border-right:none;
    }


    /* columna derecha */
    .proceso-card:nth-child(even){

        border-left:1px solid #e5e5e5;

    }


}