.carreras-pregrado {
        width: 100%;
        background-color: #fff;
        padding: 1rem;
        display: grid;
        gap: .5rem;
        /* row-gap: 2.5rem; */
        grid-auto-rows: 15rem;
        grid-template-columns: repeat(4, 1fr);
        /* margin: 3rem 0 4rem 1rem; */
        border-radius: 5px;
    }
    .target__pre1, .target__pre2, .target__pre3, .target__pre4 {
        position: relative;
        background: rgb(230, 230, 230);
        border: 1px solid #aaa8a8;
        border-radius: 5px;
        /* box-shadow: 0px 10px 10px -6px black; */
        text-align: center;
        /*text-shadow: 1px 1px 1px rgb(87, 124, 113);*/
        padding: 15px;
        display: block;
    }
    .target__pre1 h3, .target__pre2 h3, .target__pre3 h3, .target__pre4 h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 10%;
        font-size: 1.5rem;
        font-weight: 400;
        line-height: 1.5;
        background-color: rgba(0, 0, 0, 0.294);
    }
    .target__pre1 a, .target__pre2 a, .target__pre3 a, .target__pre4 a {
        color: #fff;
    }
    .target__pre1 a:hover, .target__pre2 a:hover, .target__pre3 a:hover, .target__pre4 a:hover {
        text-decoration: none;
        color: rgb(255, 0, 0);

    }

    .target__pre1 {
        background-image: url(../img/analista.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }
    .target__pre2 {
        background-image: url(../img/esterilizacion.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }
    .target__pre3 {
        background-image: url(../img/seguridad.jpeg);
        background-repeat: no-repeat;
        background-size: cover;
    }
    .target__pre4 {
        background-image: url(../img/laboratorio-biol.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    @media (max-width:700px) {
        .carreras-pregrado {
            width: 100%;
            grid-template-columns: 1fr;
            margin-left: auto;
            margin-right: auto;
        }
    }