/* ==========================================================================
   HOJA DE ESTILOS COMPLETA Y CORREGIDA: creditos.css
   ========================================================================== */

/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fcdbd8; /* Fondo rosa pálido/crema de tu captura */
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- ANIMACIÓN DE ENTRADA (KEYFRAMES) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Empieza 30px abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* Termina en su posición original */
    }
}

/* --- BARRA DE NAVEGACIÓN SUPERIOR --- */
.navbar-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2.5rem;
    
    /* Animación del menú */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #175034; /* Tono verde institucional */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #0b3c23; 
}

/* --- TARJETA CENTRAL CONTENEDORA --- */
.creditos-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; 
    padding-bottom: 3rem;
}

.card-creditos {
    background-color: #ffffff; /* Cuadro blanco central */
    width: 100%;
    max-width: 680px;
    padding: 3.5rem 4rem;
    border-radius: 60px; /* Esquinas redondeadas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #175034; 
    
    /* Animación de la tarjeta blanca */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

/* --- LOGOTIPO SUPERIOR --- */
.logo-wrapper {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    
    /* Animación del logotipo */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.logo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: filter 0.5s ease, transform 0.3s ease;
}

.logo-wrapper img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(23, 80, 52, 0.2));
}

/* --- TEXTOS INFORMATIVOS (ESTILOS Y JERARQUÍA ANIMADA) --- */
.info-academic {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.8rem; 
}

/* Nombre de la Institución */
.institution-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

/* Bloque del Profesor */
.professor-line {
    font-size: 1.15rem;
    font-weight: 500;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
}

.professor-line strong,
.label-students strong {
    font-weight: 700;
}

/* Bloque de las Alumnas */
.students-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

.label-students {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.student-name {
    font-size: 1.15rem;
    font-weight: 500;
}

/* Grupo / Especialidad */
.group-line {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.4s;
}

/* Año / Generación */
.generation-line {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0.5rem;
    
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.6s;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    body {
        padding: 1.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .card-creditos {
        padding: 2.5rem 1.5rem;
        border-radius: 35px;
    }
    .institution-name {
        font-size: 1.1rem;
    }
    .professor-line,
    .label-students,
    .student-name,
    .group-line,
    .generation-line {
        font-size: 1rem;
    }
}