/*HOJA DE ESTILO CURSO ADMINISTRACION*/

* { margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f7f8ff;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    font-family: "Source Sans 3";
}

.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;
}

.imagencabezal{
    width: 100%;
    height: 300px;
    display: flex;
    align-items: baseline;
    overflow: hidden;
    padding: auto;
}

.imagencabezal img{
    width:100%;
}

article {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas: "uno dos dos dos";
    width: 100%;
    height: auto;
    gap: 40px;
    justify-content:space-between;
    margin:0;
    padding: 0;
}
.titulo {
    grid-area: uno;
    width: fit-content;
    height: auto;
}

h1 {
    color: #4862ff;
    font-size: 36px;
    text-align: left;
    font-family: "Source Serif Pro";
    line-height: 36px;
    margin-left: 20px;
}

.contenedor_cursos {
    grid-area: dos;
    width: fit-content;
    display: flex;
    flex-wrap:wrap;
    gap:60px;
    padding-left: 40px;
    margin: auto;
    justify-content: flex-start;
}

.cursos {
    width: 380px;
    height: 200px;
    margin: 0;
    padding: 0;
    background-color: #d1e5f0;
    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;
    line-height: 20px;
    color: #141415;
    margin: 0;
    padding: 0;
}

.uno h4 {
    text-align: left;
    font-size: 16px;
    line-height: 18px;
    font-weight: normal;
    color: #141415;
    margin: 0;
    padding: 0;
}

.dos p {
    text-align: center;
    font-size: 12px;
    line-height: 14px;
    margin: 0;
}

.tres p {
    text-align: center;
    font-size: 12px;
    line-height: 14px;
    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: "Source Sans 3";
    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: 36px;
    font-family: "Source Sans 3";
    line-height: 38px;
    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;
    line-height: 22px;
    font-weight: normal;
}

.modal-content p {
    grid-area: tres;
    text-align: justify;
    font-size: 16px;
    line-height: 18px;
    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;
    line-height: 14px;
}

.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;
    line-height: 14px;
}

.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;
    line-height: 14px;
}

.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;
    line-height: 14px;
}

.cerrar {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover {
    color: black;
}