@charset "UTF-8";
/* CSS Document */
.pkp_site_name {
	padding-bottom: 1.0em;
}
/* Layout base: flex, alineado y con wrapping */
.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;              /* Permite que salte de línea en pantallas pequeñas */
    gap: 10px;
}

/* Logo principal */
.pkp_site_name img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo PUCV */
.pkp_site_pucv img {
    max-height: 85px;             /* Ajusta según lo que te guste */
    height: auto;
    width: auto;
    display: block;
}

/* --- Comportamiento responsivo --- */

/* Pantallas pequeñas (móviles / tablets chicas) */
@media (max-width: 768px) {
    .pkp_site_name_wrapper {
        flex-direction: column;   /* Apila los elementos */
        align-items: center;      /* Centra todo horizontalmente */
        text-align: center;
    }

    .pkp_site_pucv {
        margin-left: 0;
        margin-top: 5px;
    }

    .pkp_site_pucv img {
        max-height: 50px;         /* Un poco más pequeño en móvil */
    }
}

/* Pantallas medianas/grandes */
@media (min-width: 769px) {
    .pkp_site_name_wrapper {
        flex-direction: row;      /* En línea */
        align-items: center;
    }

    .pkp_site_pucv {
        margin-left: auto;        /* Empuja el logo PUCV a la derecha */
    }
}
/*footer*/
/* Contenedor del footer completo */
.pkp_structure_footer_wrapper {
    background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 60%, #FFFFFF 100%);
}
.pkp_structure_footer {
    display: flex;
    flex-direction: column;     
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    text-align: center;
    padding: 20px 0;
}

/* --------------------------- */
/* pkp_footer_content con fondo PUCV + degradado */
/* --------------------------- */
.pkp_footer_content {
    width: 100%;
    text-align: center;
    /*background: linear-gradient(135deg, #001F7A 0%, #003599 60%, #001F7A 100%);*/
    color: #000000;
    padding: 15px 10px;
    border-radius: 8px;
    border-bottom: 3px solid #F2C849;   /* línea dorada PUCV */
    font-size: 0.95rem;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.15);*/
    /* Animación al aparecer */
    opacity: 0;
    transform: translateY(8px);
    animation: footerFadeInUp 0.55s ease-out forwards;
}

/* Contenedor de los logos institucionales */
.footer_institutional_logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Tamaño uniforme de logos */
.footer_logo_item {
    width: auto;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Fade-in escalonado */
    opacity: 0;
    transform: translateY(6px);
    animation: logoFadeInUp 0.5s ease-out forwards;
}

/* Pequeño delay en cada logo para efecto “uno tras otro” */
.footer_logo_item:nth-child(1) {
    animation-delay: 0.15s;
}
.footer_logo_item:nth-child(2) {
    animation-delay: 0.30s;
}
.footer_logo_item:nth-child(3) {
    animation-delay: 0.45s;
}

/* Imagen de cada logo */
.footer_logo_item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
    will-change: transform, filter, opacity;
}

/* Hover: escala + sombra + leve brillo */
.footer_logo_item img:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
    opacity: 0.95;
}

/* --------------------------- */
/* ANIMACIONES KEYFRAMES */
/* --------------------------- */
@keyframes footerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .pkp_footer_content,
    .footer_logo_item {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .footer_logo_item img {
        transition: none;
    }
}

/* --------------------------- */
/* RESPONSIVE (móviles) */
/* --------------------------- */
@media (max-width: 768px) {

    .pkp_structure_footer {
        flex-direction: column;
        gap: 20px;
    }

    .pkp_footer_content {
        border-radius: 6px;
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .footer_institutional_logos {
        flex-direction: column;
        gap: 15px;
    }

    .footer_logo_item {
        width: 110px;
        height: 55px;
    }
}

