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

body {

    background-color: white; 
    color: black; 
    line-height: 1.2;  
    padding: 60px 12vw 10px 12vw;
    text-align: justify;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 80px;
}

/* Estilos para la barra de navegación */
nav {
    background-color: #61726c;
    margin: auto;
    width: 100%;
    position: fixed;  
    top: 0;  
    left: 0;  
}

nav a {
    color: white;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    border-radius: 5px;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: left;
}

.menu > li > a {
    font-size: 1rem;
    display: block;
    padding: 5px 5px;
    min-width: auto;
    color: white;
    text-decoration: none;
    margin: 10px 10px 10px 30px;
}

.menu li a:hover {
    color: darkgrey;
}

.menu-vertical {
    position: absolute;
    display: none;
    list-style: none;
    width: 200px;
    background-color: #61726c;
    margin-left: 20px;
}

.menu-vertical li a {
    font-size: 0.9rem;
    width: 100%;
}

.menu li:hover .menu-vertical {
    display: block;
    background-color: #61726c;
}

/* Estilos para el encabezado */
header {
    background-color: white; 
    color: black; 
    text-align: center;
    padding: 1em;
    margin-bottom: 0px;
}

header h1 {
    margin: 20;
    font-size: 1.5rem;
    margin: 10px 40px 0 40px;
}

header .author {
    font-style: italic;
    margin-top: 0;
    margin-right: 80px;
    text-align: right;
    margin-bottom: 20px;
}

/*Estilos descripción de la autora */

.perfil-autora {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.perfil-autora img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 2px solid #494a57;
}

.info-autora {
    flex: 1;
}

.nombre-autora {
    font-size: 1.1rem;
    font-weight: bold;
    color: #262627;
    text-align: left;
    margin: 5px 0 5px 0;
}

.descripcion-autora {
    font-size: 0.8rem;
    text-align: justify;
    line-height: 1.4;
    margin-top: 0px;
    color: #333;
}

.cita-autora {
    color: #333;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Estilos para las redes sociales */
.redes-sociales {
    display: flex;
    gap: 10px;
    justify-content: right;
    margin: 0px 10px 5px 0;
}

.redes-sociales img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    aspect-ratio: 1 / 1;    
}

/* Estilos para las secciones */
section {
    padding: 20px;
}

section h2 {
    color: #121312;
    margin-top: 5px;
    font-size: 1.2rem;
}

section p {
    text-indent: 60px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Estilos listas */

section ol{
    text-indent: 60px;
    font-size: 1rem;
}

ol.romano {
    list-style: none;
    counter-reset: roman-counter; 
}

ol.romano li {
    counter-increment: roman-counter; 

}

ol.romano li::before {
    content: counter(roman-counter, upper-roman) ") "; 
}

ol.romano#negrita li::before {
    font-weight: bold;
}
ol.romano#negrita li::before {
    content: counter(roman-counter, upper-roman) ") ";
    font-weight: bold;
}

ol.lista-letras {
    list-style: none;
}

ol.lista-letras li::before {
    content: counter(list-item, lower-alpha) ")    ";
    font-weight: bold; 
}

section hr {
    margin-top: 60px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
}

/*Estilos refrencias*/
.referencias {
    line-height: 1;
    margin-left: 30px;
    margin-right: 30px;
}

.referencias p {
    text-indent: 0;
    margin: 10px 5px 0 5px;
    font-size: 0.8rem;
}

.referencias ol {
    text-indent: 0;
    line-height: 1rem;
}

.referencias p#nota-espacio {
    line-height: 1rem;
}

section a {
    display: inline;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

a.sup {
    text-decoration: none;
}

.referencias ol {
    margin: 0 5px 0 15px;
    font-size: 0.8rem;
}

/* Estilos para el pie de página */
footer {
    color: rgb(12, 12, 12);
    text-align: center;
    padding: 1em 0; 
    position: relative;
    width: 100%; 
    bottom: 0;
    left: 0;  
    margin: 0; 
}

footer hr {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    body {
        padding: 20px 5vw 5px 5vw; 
        font-size: 0.6rem;
    }

    header h1 {
        font-size: 1.4rem;
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 80px;
    }

    .perfil-autora {
        align-items: center;
        text-align: center;
    }

    .info-autora {
        align-items: center;
    }

    .nombre-autora {
        font-size: 0.8rem;
        margin: 5px 0 5px 0;
    }

    .descripcion-autora {
        text-align: justify;
        font-size: 0.6rem;
    }

    .cita-autora {
        font-size: 0.6rem;
        margin-top: 10px;
    }

    nav a {
        display: block;
        padding: 16px 24px;
        font-size: 1.2rem;
    }

    .sublista-item {
        padding-left: 30px;
    }

    .referencias {
        margin-left: 10px;
        margin-right: 10px;
    }

}