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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212; /* Negro carbón */
    color: #E0E0E0; /* Gris claro */
    line-height: 1.6;
}

/* Encabezado */
header {
    background-color: #800020; /* Borgoña */
    padding: 1rem 0;
    position: static;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header div {
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    display: grid;
    align-items: center;
    max-width: 100%;
}

header .avatar {
    width: 70px;
    height: 70px;
}

/* Menú de navegación */
nav ul.menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul.menu li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul.menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Contenido principal */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 1rem;
    color: #800020;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #800020;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    padding: 1.5rem 2rem;
}


/* Imágenes y figuras */
img {
    max-width: 70%;
    height: auto;
    display: block;
}

figure {
    margin: 1.5rem 0;
    text-align: center;
}

figcaption {
    font-style: italic;
    margin-top: 0.5rem;
    color: #E0E0E0;
}

.bocetos {
    display: grid;    
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: start;
    justify-items: center;
}

/* Enlaces */
a {
    color: #800020;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b3002d;
    text-decoration: underline;
}

/* Sección de datos académicos */
.datos ul {
    list-style: none;
    margin-left: 0;
}

.datos li {
    background-color: rgba(128, 0, 32, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.datos figure {
    margin: 0 auto 1rem;
    max-width: 500px;
}

.datos .dgpc {
    margin-bottom: 1rem;
}

.datos .dgpc h3 {
    color: #800020;
    margin-bottom: 0.5rem;
}

.datos .dgpc h4 {
    color: #b3002d;
    margin-bottom: 1rem;
}

.datos a {
    display: inline-block;
    background-color: #800020;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.datos a:hover {
    background-color: #b3002d;
    text-decoration: none;
}

/* Pie de página */
footer {
    background-color: #800020;
    color: #FFFFFF;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    header > div {
        flex-direction: column;
        text-align: center;
    }
    
    header .avatar {
        margin: 1rem 0;
    }
    
    nav ul.menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .datos li {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Animaciones y efectos */
section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Clases para destacar elementos */
.highlight {
    background-color: rgba(128, 0, 32, 0.2);
    padding: 1rem;
    border-left: 4px solid #800020;
    margin: 1.5rem 0;
}

/* Estilo para el nombre del estudiante */
h1 {
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #800020;
}