:root {
    --diel-bg: #f2e6d5;
    --diel-primary: #4e290d;
    --diel-secondary: #5c7d58;
    --diel-accent: #8b6a4f;
    --diel-light: #ccd5c0;
    --white: #ffffff;
}

.main-footer {
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--white);
}

/* Footer Content */
.footer-content {
    background: var(--white);
}

.footer-section {
    height: 100%;
}

.footer-title {
    color: var(--diel-primary);
    font-family: 'Bitter', Georgia, serif;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 35px;
    width: auto;
}

.footer-subtitle {
    color: var(--diel-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--diel-primary);
    padding-left: 0.5rem;
}

.footer-links a::before {
    content: '▸';
    margin-right: 0.5rem;
    color: var(--diel-accent);
    transition: transform 0.3s ease;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

/* Social Media */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--diel-light);
    color: var(--diel-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--diel-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 41, 13, 0.3);
}

/* Contact Info */
.contact-info {
    space-y: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.contact-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--diel-primary);
}

/* Institutional Section */
.institutional-section {
    background: var(--diel-light) !important;
}

.institutional-block {
    text-align: center;
}

.block-title {
    color: var(--diel-primary);
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Bitter', Georgia, serif;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-link {
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.institutional-logo {
    max-height: 80px;
    max-width: 150px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Footer Bottom */
.footer-bottom {
    background: linear-gradient(45deg, var(--diel-primary), var(--diel-secondary)) !important;
}

.copyright-text,
.developer-credit {
    font-size: 0.9rem;
}

.developer-credit a:hover {
    text-decoration: underline !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--diel-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(78, 41, 13, 0.3);
}

.back-to-top:hover {
    background: var(--diel-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 41, 13, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .logos-container {
        gap: 1rem;
    }
    
    .institutional-logo {
        max-height: 60px;
        max-width: 120px;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .footer-title {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 0.5rem;
    }
    
    .logos-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .social-link,
    .logo-link,
    .footer-links a {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .main-footer {
        display: none;
    }
}