/* ==========================================
   FOOTER - VERSIÓN OPTIMIZADA CON RESPONSIVE
========================================== */

a {
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

/* ==========================================
   FOOTER PRINCIPAL
========================================== */
.footer {
    background: var(--bg-tertiary, #0d0d0d);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 24px;
    margin-top: 20px;
}

.footer .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ==========================================
   GRID DEL FOOTER
========================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2.5fr 1fr 1.5fr;
        gap: 48px;
    }
}

/* ==========================================
   COLUMNAS DEL FOOTER
========================================== */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col p {
    color: var(--text-secondary, #a0a0a0);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.footer-col h4 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary, #a0a0a0);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================
   FOOTER LOGO
========================================== */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary, #ff5625);
    border-radius: var(--radius-md, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-darkest, #1a0a00);
    font-weight: 900;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo .brand-name {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary, #ffffff);
    margin: 0;
    line-height: 1;
}

.footer-logo .brand-name span {
    color: var(--color-primary, #ff5625);
}

/* ==========================================
   FOOTER NAV (Enlaces rápidos)
========================================== */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-nav > div {
    cursor: pointer;
    padding: 4px 0;
    transition: all 0.25s ease;
}

.footer-nav > div span {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary, #a0a0a0);
    transition: color 0.25s ease;
    padding: 4px 0;
    position: relative;
}

.footer-nav > div span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary, #ff5625);
    transition: width 0.3s ease;
}

.footer-nav > div:hover span {
    color: var(--color-primary-light, #ff7a4a);
}

.footer-nav > div:hover span::after {
    width: 100%;
}

.footer-nav > div.active span {
    color: var(--color-primary-light, #ff7a4a);
}

.footer-nav > div.active span::after {
    width: 100%;
}

.siguenos {
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--color-primary);
}

/* ==========================================
   REDES SOCIALES
========================================== */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary, #a0a0a0);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-social a i {
    transition: transform 0.3s ease;
}

.footer-social a:hover i {
    transform: scale(1.2);
}

/* Colores por red social */
#footer-facebook:hover {
    background: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.3);
    border-color: #1877f2;
}

#footer-instagram:hover {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    box-shadow: 0 0 20px rgba(221, 42, 123, 0.3);
    border-color: #dd2a7b;
}

#footer-youtube:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
}

#footer-tiktok:hover {
    background: #000;
    box-shadow: 0 0 20px rgba(37, 244, 238, 0.2);
    border-color: #25f4ee;
}

#footer-twitter:hover {
    background: #1da1f2;
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.3);
    border-color: #1da1f2;
}

/* ==========================================
   FOOTER BOTTOM
========================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: 8px;
    text-align: center;
}

.footer-copy {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary, #a0a0a0);
    opacity: 0.5;
    margin: 0;
}

/* ==========================================
   RESPONSIVE - TABLET (768px - 1023px)
========================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-logo .logo-icon {
        width: 48px;
        height: 48px;
    }

    .footer-logo .brand-name {
        font-size: 24px;
    }

    .footer-col p {
        font-size: 14px;
    }

    .footer-col h4 {
        font-size: 13px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .footer-nav > div span {
        font-size: 11px;
    }
}

/* ==========================================
   RESPONSIVE - MÓVIL GRANDE (480px - 767px)
========================================== */
@media (min-width: 480px) and (max-width: 767px) {
    .footer {
        padding: 32px 0 16px;
    }

    .footer .container {
        padding: 0 12px;
    }

    .footer-grid {
        gap: 28px;
        grid-template-columns: 1fr 1fr;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-logo .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }

    .footer-logo .brand-name {
        font-size: 20px;
    }

    .footer-col p {
        font-size: 14px;
    }

    .footer-col h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .footer-nav > div span {
        font-size: 11px;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .footer-copy {
        font-size: 10px;
    }
}

/* ==========================================
   RESPONSIVE - MÓVIL PEQUEÑO (<480px)
========================================== */
@media (max-width: 479px) {
    .footer {
        padding: 28px 0 14px;
        margin-top: 12px;
    }

    .footer .container {
        padding: 0 10px;
    }

    .footer-grid {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .footer-logo {
        gap: 10px;
    }

    .footer-logo .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 10px;
        border-radius: 6px;
    }

    .footer-logo .brand-name {
        font-size: 18px;
    }

    .footer-col p {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-col h4 {
        font-size: 12px;
        margin-bottom: 4px;
        letter-spacing: 0.06em;
    }

    .footer-nav {
        gap: 4px;
    }

    .footer-nav > div {
        padding: 3px 0;
    }

    .footer-nav > div span {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .footer-social {
        gap: 8px;
        margin-top: 8px;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .footer-social a:hover {
        transform: translateY(-2px) scale(1.05);
    }

    .footer-bottom {
        padding-top: 16px;
    }

    .footer-copy {
        font-size: 9px;
        letter-spacing: 0.04em;
        opacity: 0.4;
    }
}

/* ==========================================
   RESPONSIVE - MÓVIL MUY PEQUEÑO (<360px)
========================================== */
@media (max-width: 359px) {
    .footer {
        padding: 20px 0 12px;
    }

    .footer .container {
        padding: 0 8px;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 8px;
    }

    .footer-logo .brand-name {
        font-size: 15px;
    }

    .footer-col p {
        font-size: 12px;
    }

    .footer-col h4 {
        font-size: 11px;
    }

    .footer-nav > div span {
        font-size: 9px;
    }

    .footer-social {
        gap: 6px;
    }

    .footer-social a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .footer-copy {
        font-size: 8px;
    }
}

/* ==========================================
   DARK MODE / TEMA OSCURO
========================================== */
@media (prefers-color-scheme: dark) {
    .footer {
        background: var(--bg-tertiary, #0d0d0d);
    }

    .footer-social a {
        background: rgba(255, 255, 255, 0.04);
    }

    .footer-social a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ==========================================
   ANIMACIÓN DE CARGA
========================================== */
.footer-logo .logo-icon .fa-spinner,
.footer-logo .brand-name .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}