
html { scroll-behavior: smooth; }

body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Arial, sans-serif; 
    color: #333;
    line-height: 1.6;
    margin: 0;
}

section {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.boton-contacto, .linkedin-profe, .boton-github {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    color: white !important;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul { list-style: none; padding: 0; }
nav ul li { display: inline; margin: 0 15px; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; }
nav ul li a:hover { color: #3498db; }

.presentacion-cabecera {
    text-align: center;
    padding: 40px 0;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.foto-perfil {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.cv-detalles h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    margin-top: 25px;
    margin-bottom: 15px; 
}

.cv-detalles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-detalles li {
    margin-bottom: 12px;
    padding-left: 25px; 
    position: relative;
}

.cv-detalles li::before {
    content: "▹"; 
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem; 
}

.cv-detalles a { color: #3498db; text-decoration: none; font-weight: 600; }
.cv-detalles a:hover { text-decoration: underline; color: #2c3e50; }

.tarjeta-proyecto, .tarjeta-profesor {
    background: white;
    border-radius: 8px;
    padding: 20px;
    transition: 0.3s;
    border: 1px solid #e1e4e8;
}

.tarjeta-proyecto { border-top: 4px solid #2c3e50; }
.tarjeta-profesor { border-left: 5px solid #2c3e50; display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

.tarjeta-proyecto:hover, .lista-compañeros li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.redes { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.boton-contacto { background-color: #3498db; }
.boton-contacto:hover { background-color: #2980b9; }

.linkedin-profe { background-color: #0077b5; padding: 8px 15px; font-size: 0.85rem; }
.linkedin-profe:hover { background-color: #005a87; }

#contacto { margin-bottom: 80px; }

.contenedor-cards-compañeros {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    margin-top: 20px;
}

.card-compañero {
    display: flex;
    align-items: center;
    background-color: #f8faff; 
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    border-radius: 4px;
    overflow: hidden; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.barra-lateral {
    width: 6px;
    height: 60px; 
    background-color: #3498db;
}

.card-compañero span {
    padding-left: 20px;
}

.card-compañero:hover {
    transform: translateX(10px); 
    background-color: #eef4ff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #3498db; 
}

.contenedor-enlace-github {
    text-align: center;
    margin-top: 25px;
}

.boton-github {
    background-color: #24292e; 
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.boton-github:hover {
    background-color: #444;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.icono-git {
    margin-right: 10px;
    font-size: 1.2rem;
}
