
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root { 
    /* PALETA DE COLORES */
    --color-principal: #333333;
    --color-fondo: #fafafa;
    --color-texto: #0d0101;
    --color-subtitulo: #ffffff;
    --color-texto-secundario: #cc0808;
    --color-texto-borde: #f94141;


    /* VARIABLES */
    --letra-principal: "Montserrat", sans-serif;
    --peso-extralight: 180;
    --peso-light: 260;
    --peso-regular: 350;
    --peso-medium: 450;
    --peso-semibold: 500;
    --peso-bold: 700;
}


/* CUERPO */


body {
    font-family: var(--letra-principal);
    background-color: var(--color-fondo);
    line-height: 1.5;
    text-align: center;
}


/* ENCABEZADO */


header {
    flex-direction: column;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-texto-secundario);
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

header img {
    max-width: 100%;
    border-style: none;
    border-color: none
}

nav ul {
    display: flex;
    gap: 0.6rem;
}

nav a {
    max-width: 100%;
    text-decoration: none;
    color: var(--color-fondo);
    font-weight: var(--peso-medium);
    padding: 0.5rem 0.4rem;
    background-color: var(--color-texto);
    border-radius: 5px;
    font-size: 13px;
}

nav a:hover {
    color: var(--color-texto); 
    background-color: var(--color-fondo);
    transform: translateY(5px);
    transform: translateX(5px); 
    box-shadow: .2em .20em .20em rgb(5, 5, 5);
}


/* CONSTANTES */


h1 {     
    color: var(--color-texto-secundario);
    font-size: 30px;
    line-height: 1.3;
    }

    h2 {
    line-height: 1.2;
    max-width: 100%; 
    margin: 0 auto;
    font-weight: var(--peso-medium);
    background-color: var(--color-texto-secundario);
    border-radius: 5px;
    color: var(--color-fondo) ;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 18px;
    line-height: 1.2;
}

p {
    padding-left: 2rem;  
    padding-right: 2rem; 
    font-size: 16px;
    line-height: 1.4;
}

img{
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    border-style: solid;
    border-color: var(--color-texto-secundario) ;
    box-shadow: .2em .2em .2em rgb(68, 10, 1);
}

iframe {
    align-items: center;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    box-shadow: .2em .2em .2em rgb(68, 10, 1);
}

li  {
    list-style: none;
} 

section {
    text-align: center;
    line-height: 1.6;
    width: 90%;
    margin: 0 auto;
    margin-top: 2rem;
}


/* VARIABLES */


section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    padding-left: 1rem;  
    padding-right: 1rem; 
    max-width: 600px; 
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cosaspersonales {
    border-style: solid;
    border-color: var(--color-texto-borde);
    border-radius: 10px;
}

.portadas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.portadas div {
    margin-bottom: 2rem;
}

.series img{
    max-width: 200px;
    width: auto;
    max-height: 200px;
    height: auto;
}

.cajacompañeros { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.compañeros {
    border-style: solid;
    border-color: var(--color-texto-borde);
    border-radius: 10px;
}

.compañeros img:hover { 
    transform: translateY(5px);
    transform: translateX(5px); 
    box-shadow: .2em .20em .20em rgb(5, 5, 5);
}

.compañeros a { 
    text-decoration: none;
    color: var(--color-texto-secundario);
}

.compañeros a:hover {
    text-shadow:.2em .2em .2em; 
    font-weight: var(--peso-bold);
}

.cajaacademico li {
    margin-bottom: 2rem;
    font-size: 15px;
    line-height: 1.4;
}

.academico {
    border-style: solid;
    border-color: var(--color-texto);
    border-radius: 10px;
}

.academico h2 {
    border-style: solid;
    background-color: var(--color-texto);
    border-radius: 10px;
}


/*PIE */


footer {
        margin-top: 2rem;
    color: rgb(224, 224, 224);
    background-color: rgb(67, 67, 67);
}

footer p {
    color: rgb(224, 224, 224);
    border-radius: 5px;
    line-height: 1,1;
    font-size: 9px;
    font-weight: var(--peso-regular);
    text-align: center;
}






