.sectionSubtitle {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.sectionSubtitle>p {
    text-transform: uppercase;
    margin: 0;
    color: var(--black-color);
}

.sectionSubtitle .row h3 {
    width: 33%;
}

.sectionSubtitle .row p {
    margin: 0;
    width: 65%;
}

.boxLink {
    text-decoration: none;
    margin: 10px;
    overflow: hidden;
    width: 15.625vw;
    max-height: 23.438vw;
    transition: 0.5s ease-in-out;
    position: relative;
}

.boxContent {
    display: flex;
    position: relative;
    height: 23.438vw;
    background-size: cover;
    background-position-y: 30%;
    background-position: center;
    overflow: hidden;
    border-radius: 15px;
    justify-content: center;
}

/* Agrega el overlay oscuro */
.boxLink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.5s ease;
    z-index: 1;
    opacity: 0.4;
    border-radius: 15px;
}

.boxLink:hover::before {
    opacity: 1;
}

.boxText {
    position: relative;
    transform: translate(0%, -100%);
    margin: auto;
    padding: 10px;
    color: var(--white-color);
    text-align: center;
    z-index: 2;
}

.boxText h4 {
    font-weight: 500;
}

.boxLink:hover {
    transform: scale(1.025);
}

.logoContainer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.logo {
    max-width: 5vw;
    max-height: 5vw;
}

.boxLink {
    position: relative;
}

.form-Curso input,
.form-Curso textarea {
    background-color: transparent;
    width: 100%;
}

.form-Curso {
    width: 25%;
    background-color: var(--white-color);
    border-radius: 30px;
    padding: 1.5vw;
    height: fit-content;
    box-shadow: 0px 0px 20px #e2e2e2;
}

.form-Curso .buttonBlue {
    margin: 1vw 0;
}

.form-Curso * a {
    padding: 0.25vw 0;
    margin: 0.25vw 0;
    text-decoration: none;
    color: var(--primary-color);
    position: relative;
    display: flex;
    cursor: pointer;
    align-items: center;
}

.form-Curso ::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    /* Ajusta la posición del subrayado */
    left: 0;
    background-color: var(--primary-color);
    /* Color del subrayado */
    transition: width 0.3s;
    /* Transición del ancho del subrayado */
}

.form-Curso a:hover::after {
    width: 100%;
    /* Ancho completo al pasar el cursor sobre el enlace */
}

.form-Curso a:visited::after {
    width: 100%;
    /* Ancho completo para los enlaces visitados y activos */
}


.form-Curso * a>img {
    width: 2vw;
    margin-right: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-item {
    display: flex;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0px 0px 20px #e2e2e2;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5vw;
}

.grid-item h3 {

    font-size: 1.5vw;
}

.grid-item:last-child {
    grid-column: span 3;
    /* Hace que el último elemento ocupe todas las columnas */
    text-align: center;
    /* Centra el contenido dentro del último elemento */
}

.icon {
    width: 3vw;
    margin: auto;
    margin-bottom: 10px;
    margin-top: 0;
}

@media (max-width: 900px) {
    .boxLink {
        width: unset;
        max-height: 30vh;
        margin: 10px 0;
    }

    .boxContent {
        height: 30vh;
    }

    .boxText {
        transform: translate(0%, -100%);
    }

    .logoContainer img {
        max-width: 7vh;
        max-height: 7vh;
    }

    .sectionSubtitle .row h3,
    .sectionSubtitle .row p {
        width: unset;
        margin-top: 10px;
    }

    .sectionSubtitle .row p {
        margin-top: 20px;
    }

    .content-Container {
        width: 100%;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
    }

    .grid-item{
        padding: 2vh;
    }

    .grid-item h2{
        font-size: 48px;
    } 

    .grid-item h3{
        font-size: 24px;
    } 

    .form-Curso {
        width: 90%;
        margin: auto;
    }

    .icon{
        margin-bottom: 0;
        width: 20%;
    }

    .form-Curso * a>img {
        width: 20px;
    }

    .contact{
        margin: 4vh auto;
        width: 90%;
    }
}