.container__main__carreras {
    width: 100%;
}

.oferta_academica {
    width: 100%;
    margin: 2rem auto;
    background-color: rgb(255, 255, 255);
    /* border: 1px solid #aaaaaa; */
    border-radius: 5px;
    box-shadow: 0px 1px 8px 1px rgba(0, 0, 0, 0.25);
}

.oferta_academica_2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    flex-wrap: nowrap;
    margin: 2em auto;
    background-color: rgb(255, 255, 255);
    /* border: 1px solid #aaaaaa; */
    border-radius: 5px;
    
    
}

.oferta {
    text-align: center;
    padding: 1em;
    font-weight: 400;
    font-size: 2rem;
    
}

/* .carreras {
    width: 100%;
    /* margin-left: auto;
    margin-right: auto; */
    
    /* flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    gap: 0.5em; 
} */

.pipe {
    background-color: transparent;
    position: relative;
    left: 0;
    top: 1.25em;
}
.pipe img{
    min-width: 50%;
}

/* .imag:hover {
    box-shadow: 2px 2px 26px #000;
} */

/* .contenedor_tarjetas_carreras {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: left;
} */

.btnPregrado {
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem 2rem;
    margin: .8rem;
    background: linear-gradient(to right, transparent 50%, rgb(7, 199, 20) 50%) no-repeat left / 200%;
    transition: background-position 0.3s ease;
}

.btnPregrado:hover {
    background-position: right;
}

.btnGrado {
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem 2rem;
    margin: .8rem;
    background: linear-gradient(to right, transparent 50%, rgb(237, 230, 23) 50%) no-repeat left / 200%;
    transition: background-position 0.3s ease;
}

.btnGrado:hover {
    background-position: right;
}

.btnPosgrado {
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem 2rem;
    margin: .8rem;
    background: linear-gradient(to right, transparent 50%, rgb(237, 23, 112) 50%) no-repeat left / 200%;
    transition: background-position 0.3s ease;
}

.btnPosgrado:hover {
    background-position: right;
}

.imag:hover {
    /* Start the shake animation and make the animation last for 0.5 seconds*/
    animation: shake 0.5s;
    /* When the animation is finished, start again */
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* @media screen and (max-width:768px) {
    .carreras {
        flex-direction: column;
    }
} */