@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: var(--progress-width, 100%);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000000;
    color: #000000;
    line-height: 1.5;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.875rem;
    border-bottom: 0.063rem solid #ffffff;
    background-color: #0400ff;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.logo {
    font-weight: bold;
    font-size: 1,875rem;
}

nav ul {
    display: flex;
    gap: 1.875rem;
    list-style: none;
}

nav a:hover {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.perfil {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 3.75rem;
    gap: 2rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.perfil h1 {
    font-size: 6rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
    line-height: 1.2;
    max-width: 600px;
}

.datos {
    margin-top: 1.25rem;
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: #ffffff;
    flex-wrap: wrap;
}

.foto img {
    width: 18.75rem;
    max-width: 100%;
    height: auto;
    border: 0.063rem solid #ccc;
    box-shadow:  0.188rem 0.188rem 0.313rem rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.foto img:hover {
    transform: scale(1.02);
}

.progreso {
    width: 100%;
    border-radius: 0.313rem;
    background: rgb(0, 26, 255);
    color: #ccc;
    padding: 3.75rem;
    overflow: hidden;
}

.progreso h2 {
    font-size: 1.75rem;
    margin-bottom: 1.875rem;
}

.años {
    display: flex;
    flex-direction: row;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
}

.año {
    background: #fff;
    padding: 1.25rem;
    border: 0.063rem solid #ddd;
    color: #000000;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s
}

.año:hover {
    background: #e9e9e9;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.año h3 {
    font-size: 1.625rem;
    margin-bottom: 0.938rem;
}

.año ul {
    list-style: none;
}

.año li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.año li span {
    display: block;
    font-size: 0.75rem;
    color: #777;
}

.año.activo {
    background: #111;
    color: #fff;
}

.año.activo span {
    color: #ccc;
}

.barra {
    margin: 1.875rem 0 0.625rem;
    height: 0.375rem;
    background: #d80000;
    overflow: hidden;
}

.progreso-barrra {
    height: 1.25rem;
    background-color: #0400ff;
    text-align: center;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.25rem;
    background: #111;
    transition: width 0.5s ease-in-out;
    animation: fillProgress 1.5s ease-out 1s forwards;
    width: 0;
}

.porcentaje {
    display: inline-block;
    border: 0.063rem solid #111;
    padding: 0,5rem 1.25rem;
    background: #fff;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav {
        margin-top: 1rem;
    }

    nav ul {
        justify-content: center;
        gap: 1rem;
    }

    .perfil {
        padding: 2rem 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .perfil h1 {
        font-size: 4rem;
        line-height: 1.1;
    }

    .datos {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .foto img {
        width: 15rem;
    }

    .progreso {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    nav a {
        font-size: 1rem;
    }

    .perfil h1 {
        font-size: 3rem;
    }

    .datos {
        flex-direction: column;
        gap: 0.5rem;
    }

    .años {
        grid-template-columns: 1fr;
    }
}


.team-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto; 
}

.container {
    position: relative;
}


.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ddd;
}

.nav-link {
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    color: #000;
    padding: 0.5rem 1rem;
    border: 1px solid #000;
    font-size: 0.8rem;
    transition: 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: #000;
    color: #fff;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.team-member {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.member-image-container {
    position: relative;
    overflow: hidden; 
    aspect-ratio: 3 / 4; /
}

.member-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}


.add-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #fff;
    color: #000;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-button:hover {
    background-color: #000;
    color: #fff;
}


.member-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #ffffff; 
}

.member-role {
    font-size: 0.9rem;
    color: #777; 
    margin: 0;
}

.datos-facultad {
    max-width: 56.25rem;
    margin: 3.75rem auto;
    padding: 1.25rem;
    color: #222;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.datos-facultad h2
.datos-facultad h3 {
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.datos-facultad h2 {
    font-size: 1.6rem;
    margin-top: 1.25rem;
    border-bottom: 0.063rem#e0e0e0;
    padding-bottom: 0.313rem;
}

.datos-facultad h3 {
    font-size: 1.2rem;
    margin-top: 1.563rem;
    color: #444;
}

.datos-facultad p {
    font-size: 0.95rem;
    margin: 0.25rem;
    color: #555;
}

.datos-facultad strong {
    color: #838282;
    font-weight: 500;
}

@keyframes fadeSlideUp {
    from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.datos-facultad {
    animation: fadeSlideUp 1s ease-out;
}

footer {
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    margin: 3.125rem auto 1.25rem;
    max-width: 43.75rem;
    line-height: 1.4;
}

a {
    color: #333;
    text-decoration: none;
    font-weight: normal;
}

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

a:visited {
    color: #a8a8a8;
    font-weight: normal;
}