/* =========================================
   CONFIGURACIÓN GENERAL
   ========================================= */

* {
    box-sizing: border-box;
}


html {
    width: 100%;
    margin: 0;
    padding: 0;
}


body {

    width: 100%;
    max-width: 1000px;

    margin-left: auto;
    margin-right: auto;

    padding: 50px;

    background-color: #bdbdbd;

    color: #08089c;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}


/* =========================================
   PERFIL
   FOTO + NOMBRE
   ========================================= */

.perfil {

    display: flex;

    width: 100%;

    height: 180px;

    margin: 0 0 30px 0;

    padding: 0;

}


/* =========================================
   FOTO
   ========================================= */

.foto-perfil {

    width: 180px;

    height: 180px;

    flex-shrink: 0;

    margin: 0;

    padding: 0;

}


.foto-perfil img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    margin: 0;

    padding: 0;

    border: 4px solid #08089c;

}


/* =========================================
   NOMBRE
   ========================================= */

.nombre-perfil {

    flex: 1;

    height: 180px;

    margin: 0;

    padding: 0;

}


.nombre-perfil h1 {

    display: flex;

    align-items: center;

    width: 100%;

    height: 180px;

    margin: 0;

    padding: 20px;

    background-color: #a8ff00;

    color: #08089c;

    border-top: 4px solid #08089c;

    border-right: 4px solid #08089c;

    border-bottom: 4px solid #08089c;

    box-shadow: 7px 7px 0 #000;

    font-family: "Courier New", monospace;

    font-size: 48px;

    line-height: 1;

    text-transform: uppercase;

    font-weight: bold;

}


/* =========================================
   DESCRIPCIÓN
   ========================================= */

.descripcion {

    width: 100%;

    margin: 0 0 40px 0;

    padding: 0;

    color: #08089c;

    font-family: "Courier New", monospace;

    font-size: 18px;

    line-height: 1.5;

}


/* =========================================
   SUBTÍTULOS
   ========================================= */

h2 {

    width: 100%;

    margin-top: 50px;

    margin-bottom: 25px;

    padding: 10px 15px;

    background-color: #08089c;

    color: #a8ff00;

    border: 3px solid #08089c;

    font-family: "Courier New", monospace;

    font-size: 22px;

    line-height: 1.2;

    text-transform: uppercase;

    letter-spacing: 2px;

}


/* =========================================
   MATERIAS
   ========================================= */

.materias {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;

    width: 100%;

    margin: 0;

    padding: 0;

}


/* =========================================
   CADA MATERIA
   ========================================= */

.materia {

    width: 100%;

    min-width: 0;

    min-height: 350px;

    margin: 0;

    padding: 0;

    background-color: #ffffff;

    border: 4px solid #08089c;

    box-shadow: 7px 7px 0 #08089c;

}


/* =========================================
   TÍTULO DE MATERIA
   ========================================= */

.materia h3 {

    width: 100%;

    min-height: 70px;

    display: flex;

    align-items: center;

    margin: 0;

    padding: 15px;

    background-color: #a8ff00;

    color: #08089c;

    border-bottom: 4px solid #08089c;

    font-family: "Courier New", monospace;

    font-size: 19px;

    line-height: 1.1;

    text-transform: uppercase;

    font-weight: bold;

}


/* =========================================
   LISTA DE MATERIAS
   ========================================= */

.materia ul {

    margin: 0;

    padding: 20px 15px 20px 32px;

    color: #08089c;

    font-family: "Courier New", monospace;

    font-size: 13px;

    line-height: 1.4;

}


.materia li {

    margin-bottom: 7px;

}


/* =========================================
   ENLACES
   ========================================= */

a {

    display: inline-block;

    color: #08089c;

    text-decoration: none;

    font-weight: bold;

    font-size: 16px;

    border-bottom: 3px solid #08089c;

    padding-bottom: 5px;

    font-family: "Courier New", monospace;

}


a:hover {

    background-color: #08089c;

    color: #a8ff00;

    padding: 8px;

}


/* =========================================
   BOTÓN / ENLACE AL PROYECTO
   ========================================= */

body > p:last-child a {

    background-color: #08089c;

    color: #a8ff00;

    padding: 15px 20px;

    border: 3px solid #08089c;

    box-shadow: 5px 5px 0 #000;

}


body > p:last-child a:hover {

    background-color: #a8ff00;

    color: #08089c;

    border-color: #08089c;

}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 850px) {

    body {

        padding: 35px;

    }


    /* PERFIL */

    .perfil {

        height: 150px;

    }


    .foto-perfil {

        width: 150px;

        height: 150px;

    }


    .nombre-perfil {

        height: 150px;

    }


    .nombre-perfil h1 {

        height: 150px;

        font-size: 38px;

    }


    /* MATERIAS */

    .materias {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }


    .materia {

        min-height: 320px;

    }

}


/* =========================================
   CELULAR
   ========================================= */

@media (max-width: 600px) {

    body {

        width: 100%;

        padding: 20px;

        overflow-x: hidden;

    }


    /* =====================================
       PERFIL
       ===================================== */

    .perfil {

        display: flex;

        flex-direction: column;

        width: 100%;

        height: auto;

        margin-bottom: 30px;

    }


    .foto-perfil {

        width: 100%;

        height: auto;

    }


    .foto-perfil img {

        width: 100%;

        height: auto;

        aspect-ratio: 1 / 1;

        object-fit: cover;

    }


    .nombre-perfil {

        width: 100%;

        height: auto;

    }


    .nombre-perfil h1 {

        width: 100%;

        height: auto;

        min-height: 90px;

        margin: 0;

        padding: 15px;

        font-size: 30px;

        border-top: 0;

        border-left: 4px solid #08089c;

        border-right: 4px solid #08089c;

        border-bottom: 4px solid #08089c;

        box-shadow: 6px 6px 0 #000;

    }


    /* =====================================
       DESCRIPCIÓN
       ===================================== */

    .descripcion {

        font-size: 16px;

        line-height: 1.5;

    }


    /* =====================================
       SUBTÍTULOS
       ===================================== */

    h2 {

        margin-top: 35px;

        margin-bottom: 20px;

        font-size: 18px;

        letter-spacing: 1px;

    }


    /* =====================================
       MATERIAS
       ===================================== */

    .materias {

        display: grid;

        grid-template-columns: 1fr;

        gap: 20px;

        width: 100%;

    }


    .materia {

        width: 100%;

        min-height: 0;

    }


    .materia h3 {

        min-height: 60px;

        font-size: 18px;

    }


    .materia ul {

        font-size: 13px;

        line-height: 1.4;

        padding: 18px 15px 18px 30px;

    }

}