/* ===== FOOTER ===== */
.footer {
    height: 157px;
    background: var(--unnamed-color-026751) 0% 0% no-repeat padding-box;
    background: #026751 0% 0% no-repeat padding-box;
    opacity: 1;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.footer-bar-image {
    width: 418px;
    height: 386px;
    transform: matrix(-0.79, 0.62, -0.62, -0.79, 0, 0);
    background: transparent url('../../assets/images/Collage_33.png') 0% 0% no-repeat padding-box;
    opacity: 1;
    position: absolute;
    left: -300px;
    top: -100px;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
}

/* ===== ESTILOS BASE CONTACTO ===== */
.contact-icon {
    width: 16px;
    height: 16px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        height: auto;
        min-height: 157px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
    
    /* Organización de logos en móviles */
    .footer-logos {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        justify-items: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .logo-culturas,
    .logo-biblioteca,
    .logo-rnbp,
    .logo-pnbp {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        width: 100% !important;
        max-width: 160px !important;
        min-width: 0 !important;
    }
    
    /* Ajustar tamaños de logos para móviles - ultra grandes */
    .logo-shield {
        width: 80px;
        height: 80px;
    }
    
    .logo-biblioteca .logo-book {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    
    .logo-rnbp .logo-rnbp-image {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    
    .logo-pnbp-image {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    
    /* Ocultar texto en móviles para evitar desbordamiento */
    .logo-culturas .logo-text,
    .logo-biblioteca .logo-text,
    .logo-pnbp .logo-text {
        display: none;
    }
    
    /* Ajustar información de contacto */
    .footer-right {
        width: 100%;
        text-align: center;
    }
    
    .footer-title {
        font-size: 14px;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 12px;
    }
    
    .contact-icon {
        font-size: 14px !important;
        width: 16px !important;
        height: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        opacity: 1 !important;
    }
    
    .contact-text {
        word-break: break-all;
        max-width: 200px;
    }
}

/* Media query para móviles pequeños (480px) */
@media (max-width: 480px) {
    .footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    /* Grid más compacto para móviles pequeños */
    .footer-logos {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    
    .logo-culturas,
    .logo-biblioteca,
    .logo-rnbp,
    .logo-pnbp {
        max-width: 140px;
    }
    
    /* Logos ultra grandes para móviles pequeños */
    .logo-shield {
        width: 70px;
        height: 70px;
    }
    
    .logo-biblioteca .logo-book {
        width: 70px;
        height: 70px;
    }
    
    .logo-rnbp .logo-rnbp-image {
        width: 70px;
        height: 70px;
    }
    
    .logo-pnbp-image {
        width: 70px;
        height: 70px;
    }
    
    .footer-title {
        font-size: 12px;
    }
    
    .contact-item {
        font-size: 11px;
        gap: 0.75rem;
    }
    
    .contact-icon {
        font-size: 14px !important;
        width: 16px !important;
        height: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        opacity: 1 !important;
    }
    
    .contact-text {
        max-width: 150px;
    }
}

/* Estilos para enlaces de redes sociales */
.contact-item-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.contact-item-link:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.contact-item-link:active {
    transform: translateX(3px);
}

.contact-item-link .contact-text {
    color: inherit;
}

.contact-item-link:hover .contact-text {
    text-decoration: none;
}

/* Estilo específico para el icono de Instagram */
.instagram-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    opacity: 1 !important;
}

.instagram-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}