/*HOJA DE ESTILO CURSOS NUEVOS*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f7f8ff;
}

.nav-cursos ul {
    width: 100%;
    height: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
    margin: 0;
    padding: 0;
    background-color: #d1e5f0;
}

.nav-cursos ul li {
    list-style: none;
}

.nav-cursos ul a {
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    color: #141415;
}

.nav-cursos li a:hover{
    font-weight: bolder;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;;
    margin: auto;
    padding: 0;
}

article {
    display: flex;
    flex-wrap: wrap;
    width: 1200px;
    height: auto;
    gap: 40px;
    justify-content:space-between;
    margin: auto;
    padding: 0;
}

.titulo {
    width: 100%;
    height: 200px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #23bffc;
    background: linear-gradient(90deg, rgba(35, 191, 252, 0.82) 0%, rgba(74, 108, 212, 0.98) 41%, rgba(7, 27, 245, 0.82) 73%, rgba(35, 191, 252, 1) 98%);
}

.titulo img{
    height: 140px;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;

}

/* h1 {
    color: white;
    font-size: 42px;
    text-align: center;
    font-family: "Source Serif Pro";
} */

.contenedor_cursos {
    width: 80%;
    display: flex;
    flex-wrap:wrap;
    gap:60px;
    padding: 20px;
    margin: auto;
    justify-content: center;
}

.cursos {
    width: 380px;
    height: 200px;
    font-family: "Roboto";
    margin: 0;
    padding: 0;
    background-color: #d1e5f0;
    box-shadow: 5px 5px 10px rgba(98, 123, 177, 0.733);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "uno uno"
        "dos tres";
    cursor: pointer;
    transition: 0.3s;
}

.cursos img{
    width: auto;
    height: 26px;
    margin-bottom: 5px;
}

.uno {
    grid-area: uno;
    height: 100px;
    align-content: center;
    margin: 0;
    border-bottom: 2px solid #141415;
    padding: 10px;
}

.dos {
    height: 80px;
    grid-area: dos;
    text-align: center;
    margin-top: 10px;
}

.tres {
    height: 80px;
    grid-area: tres;
    text-align: center;
    margin-top: 10px;
    border-left: 1px solid #141415;
}

.uno h2 {
    text-align: left;
    font-size: 18px;
    color: #141415;
    margin: 0;
    padding: 0;
}

.uno h4 {
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    color: #141415;
    margin: 0;
    padding: 0;
}

.dos p {
    text-align: center;
    font-size: 12px;
    margin: 0;
}

.tres p {
    text-align: center;
    font-size: 12px;
    margin: 0;
}

.cursos:hover {
    background-color: #ffac47;
    transform: scale(1.05);
}

/* Estilo del modal */
.modal {
    display: none;
    /* oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    width: 80%;
    max-width: 700px;
    height: auto;
    margin: auto;
    margin-top: 100px;
    padding: 40px;
    border: 1px solid #141415;
    background-color: #fefefe;
    border-radius: 10px;
    font-family: "Roboto";
    text-align: center;
    position: relative;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.507);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas:
        "uno uno uno uno"
        "dos dos dos dos"
        "tres tres tres tres"
        "cuatro cinco seis siete";

}

.modal-content h1 {
    grid-area: uno;
    font-size: 32px;
    font-family: "Roboto";
    font-weight: bold;
    text-align: left;
    color: #141415;
    margin-bottom: 0;
}

.modal-content h4{
    grid-area: dos;
    text-align: left;
    color: #141415;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: normal;
}

.modal-content p {
    grid-area: tres;
    text-align: justify;
    font-size: 16px;
    height: auto;
    margin-bottom: 40px;

}

.modal img{
    width: auto;
    height: 30px;
    margin-bottom: 5px;
}

.horario {
    grid-area: cuatro;
    height: 80px;
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    align-content: center;
}

.horario p {
    text-align: center;
    font-size: 12px;
}

.duracion {
    grid-area: cinco;
    height: 80px;
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    align-content: center;
    border-left: 1px solid #141415;
}

.duracion p {
    text-align: center;
    font-size: 12px;
}

.materiales {
    grid-area: seis;
    height: 80px;
    text-align: center;
    align-content: center;
    border-left: 1px solid #141415;
}

.materiales p {
    text-align: center;
    font-size: 12px;
}

.certificado {
    grid-area: siete;
    height: 80px;
    text-align: center;
    align-content: center;
    border-left: 1px solid #141415;
}

.certificado p {
    text-align: center;
    font-size: 12px;
}

.cerrar {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover {
    color: black;
}