/**
 * Footer Styles - Portal SAT ContaMX
 *
 * Estilos para:
 * - Footer principal
 * - Enlaces de servicios y legales
 * - Información de contacto
 * - Copyright y marca
 * - Botón scroll to top
 *
 * @package ContaMX\Portal
 * @version 0.1.0
 */

/* ========================================
   FOOTER GENERAL
   ======================================== */

.site-footer {
    flex-shrink: 0;
    background-color: var(--color-dark);
    color: var(--color-gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
    margin-top: auto;
}


/* ========================================
   FOOTER HEADINGS
   ======================================== */

.footer-heading {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-heading i {
    color: var(--color-primary);
    font-size: var(--font-size-xl);
}


/* ========================================
   FOOTER LINKS
   ======================================== */

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-base);
    padding: var(--spacing-xs) 0;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: var(--spacing-xs);
    text-decoration: none;
}

.footer-links a i {
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.footer-links a:hover i {
    transform: translateX(4px);
}


/* ========================================
   FOOTER DESCRIPTION
   ======================================== */

.footer-description {
    font-size: var(--font-size-sm);
    color: var(--color-gray-400);
    line-height: 1.6;
}


/* ========================================
   FOOTER CONTACTO
   ======================================== */

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

.footer-contact li {
    margin-bottom: var(--spacing-sm);
}

.footer-contact-item {
    font-size: var(--font-size-xs);
    color: var(--color-gray-400);
}

.footer-contact-item i {
    font-size: var(--font-size-sm);
    display: block;
}

.footer-contact-item small {
    color: var(--color-gray-400);
}

.footer-contact a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--color-white);
}


/* ========================================
   SOCIAL LINKS (cuando estén activos)
   ======================================== */

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-gray-800);
    color: var(--color-gray-400);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.social-icon i {
    font-size: var(--font-size-lg);
}


/* ========================================
   FOOTER DIVIDER
   ======================================== */

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-gray-700),
        transparent
    );
    margin: var(--spacing-2xl) 0;
}


/* ========================================
   FOOTER COPYRIGHT
   ======================================== */

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.footer-copyright strong {
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.footer-tagline i {
    color: var(--color-primary);
}


/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    font-size: var(--font-size-xl);
}


/* ========================================
   RESPONSIVE
   ======================================== */

/* Mobile (hasta 767px) */
@media (max-width: 767px) {
    .site-footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
        text-align: center;
    }

    .footer-heading {
        justify-content: center;
        margin-bottom: var(--spacing-md);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }

    .scroll-to-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 44px;
        height: 44px;
    }

    .footer-copyright,
    .footer-tagline {
        text-align: center;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-heading {
        font-size: var(--font-size-base);
    }

    .footer-links a,
    .footer-contact li {
        font-size: var(--font-size-xs);
    }
}

/* Desktop Grande (1200px+) */
@media (min-width: 1200px) {
    .site-footer {
        padding: var(--spacing-4xl) 0 var(--spacing-2xl) 0;
    }

    .scroll-to-top {
        width: 52px;
        height: 52px;
    }
}
