/*========================================================================
====================== CUADROS DE SABER MÁS... ===========================
=========================================================================*/

.texto-saber-mas{
    margin-top: 140px;
    margin-left: auto;
    margin-right: auto;

    text-align: center;

    max-width: 1920px; /* Para limitar que siga creciendo en pantallas grandes */
}

.cuadros-texto{
    margin-top: 31px;
    max-width: 1920px; /* Para limitar que siga creciendo en pantallas grandes */
}

/* Definimos la estructura flex de los cuadros */
.cuadro{
    /*   outline: 5px solid yellowgreen;
    */  
    max-width: 320px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    margin: auto;
}

/* Especificaciones texto y botón */
.cuadros-texto h5{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 23px;
    color: #2B2B2B;

    text-align: left;
    margin-top: 27px;
}

.cuadros-texto p{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #646464;

    text-align: left;
}

/* Para los botones */
.cuadros-texto .botones{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 10px;

    background: #F14E32;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 20px;

    width: 199px;
    height: 56px;

    text-decoration: none;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    color: #FFFFFF;

    margin-top: 26px; /* Para ajustar su posición respecto al párrafo anterior */

    align-self: center; /* Para que quede centrado dentro del flexbox */
}

.botones:hover{
    background-color: #D33C1E; /* Para cambiar el color de fondo del botón cuando el usuario coloca el cursor sobre el */
}

/* Para el último botón */
.cuadros-texto .boton-3{
    margin-top: 0px;
}

/* Ajustes de pantalla */
@media screen and (min-width: 657px) and (max-width: 977px){

    .margen-tercer-cuadro{
        margin-top: 40px;
    }

}

@media screen and (max-width: 656px){

    .cuadro{
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;
    }
}

@media screen and (min-width: 231px) and (max-width: 380px) {


    /* Reducimos la separación con el texto */
    .cuadros-texto{
        margin-top: -40px;
    }

    /* Ajustamos el contenido dentro del contenedor flex */
    .cuadro{
        max-width: 220px;

        justify-content: center;
        align-items: flex-start;
    }

    /* Reducimos el tamaño de las fotos */
    .cuadro img{
        transform: scale(0.65);
        align-self: center;
    }

    /* Reducimos el tamaño del texto */
    .cuadros-texto h5{
        font-size: 15px;
        line-height: 18px;
        margin-top: -30px; /* Para ajustar texto más cerca de la foto */
    }

    .cuadros-texto p{
        font-size: 11px;
        line-height: 21px;
    }

    /* Reducimos el tamaño y la letra del botón */
    .cuadros-texto .botones{
        width: 120px;
        height: 56px;
        
        font-size: 14px;
        line-height: 17px;

        margin-top: 0px;
    }

}


@media screen and (max-width: 230px) {

    /* Ajustamos la distancia al elemento anterior */
    .texto-saber-mas{
        margin-top: 100px;
    }

    /* Ajustamos el contenido dentro del contenedor flex */
    .cuadro{
        max-width: 180px;

        justify-content: center;
        align-items: flex-start;
    }

    /* Reducimos el tamaño de las fotos */
    .cuadro img{
        transform: scale(0.5);
        align-self: center;
        margin-top: -50px; /* Para que estén más cerca entre sí los cuadros */
    }

    /* Reducimos el tamaño del texto */
    .cuadros-texto h5{
        font-size: 13px;
        line-height: 16px;
        margin-top: -50px; /* Para ajustar texto más cerca de la foto */
    }

    .cuadros-texto p{
        font-size: 8px;
        line-height: 18px;
    }

    /* Reducimos el tamaño y la letra del botón */
    .cuadros-texto .botones{
        width: 120px;
        height: 56px;
        
        font-size: 14px;
        line-height: 17px;
    }

}
  
  