* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}
.Ubicacion {
    margin-top: 900px;
    width: 80%;
    z-index: 10;
}
.container {
    background-image: url('../img/fondo01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 115vh;
    position: relative;
}
cursosContainer {
    background-color: #AFAFAF;
    height: 150px;
}
.cursos {
    text-align: center;
    padding-top: 70px;
}

.titulo-cursos {
    font-size: 5em;
    font-family: 'Dancing Script', cursive;
    color: #4a4a4a;
    padding-top: 20px;
}

.instructor {
    margin: 0;
    display: flex;
    justify-content: center;
    width: 300px;
border-radius: 10px;
    height: 300px;
    margin-bottom: 30px;
overflow: hidden;
}

.curso-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 15%;
}

.curso {
    background-color: #F8EDE3;
    padding: 20px;
    width: 300px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.curso img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.curso h3 {
    font-family: 'Lobster', cursive;
    font-size: 1.5em;
    color: #4a4a4a;
}

.curso p {
    color: #777;
    margin-top: 10px;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 600px) {
    .curso-container {
        flex-direction: column;
    }

    .curso-container {
        flex-direction: column;
        margin-bottom: 50px;  /* Ajuste de margen inferior */
        padding-bottom: 20px; /* Añadir un poco de espacio en la parte inferior */
    }

    .curso {
        width: 90%;  /* Hacer que los cursos ocupen un mayor porcentaje del ancho en móviles */
        margin-bottom: 20px; /* Separar los cursos entre sí */
    }
}
