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

.site-footer {
    background: #53351f;
    backdrop-filter: blur(12px);
    color: rgba(250,248,245,0.9);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- 4-column grid: adjusted for navigation width ---- */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(250,248,245,0.2);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    font-size: 1.6rem;
    color: #FAF8F5;
    text-shadow: none;
    letter-spacing: 1px;
}

.footer-logo-image {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(139,90,60,0.4);
    flex-shrink: 0;
}

.footer-tagline {
    color: rgba(250,248,245,0.75);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-navigation-wrapper {
    display: flex;
    flex-direction: column;
}

.footer-navigation-wrapper h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FAF8F5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-navigation-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-navigation-columns ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.footer-navigation-columns a {
    color: rgba(250,248,245,0.8);
    font-size: 0.88rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.footer-navigation-columns a:hover {
    color: #D4A574;
    padding-left: 5px;
}

.footer-column h4,
.footer-social-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FAF8F5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.footer-column a {
    color: rgba(250,248,245,0.8);
    font-size: 0.88rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.footer-column a:hover {
    color: #D4A574;
    padding-left: 5px;
}

.footer-social-section {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(250,248,245,0.15);
    color: #FAF8F5;
    border-radius: 50%;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(250,248,245,0.3);
}
.social-icon:hover {
    background: linear-gradient(135deg, #D4A574 0%, #E8D5C4 100%);
    color: #5D3A1F;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(212,165,116,0.4);
    border-color: transparent;
}

/* ---- Info bar ---- */
.footer-info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(250,248,245,0.2);
    border-bottom: 1px solid rgba(250,248,245,0.2);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(250,248,245,0.85);
    font-size: 0.875rem;
    white-space: nowrap;
}

.info-icon {
    color: #D4A574;
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.75rem;
    color: rgba(250,248,245,0.6);
    font-size: 0.82rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: center;
    }
    .footer-columns {
        display: contents;
    }
    .footer-brand {
        align-items: center;
        padding-right: 0;
    }
    .footer-navigation-wrapper {
        align-items: center;
    }
    .footer-navigation-columns {
        justify-content: center;
    }
    .footer-navigation-columns ul {
        align-items: center;
    }
    .footer-navigation-columns a:hover {
        padding-left: 0;
    }
    .footer-column,
    .footer-social-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-column ul {
        align-items: center;
    }
    .footer-column a:hover {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 0 1.25rem;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
        padding-right: 0;
    }
    
    /* Logo vertical en móvil */
    .footer-logo {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 1.8rem;
    }
    
    .footer-logo-image {
        height: 64px;
        max-width: 220px;
    }
    
    .footer-tagline {
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer-navigation-wrapper {
        align-items: center;
    }
    .footer-navigation-columns {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-content: center;
    }
    .footer-navigation-columns ul {
        align-items: center;
    }
    .footer-navigation-columns a:hover {
        padding-left: 0;
    }
    .footer-column,
    .footer-social-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-column ul {
        align-items: center;
    }
    .footer-column a:hover {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-info-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 0;
    }
    .info-item {
        white-space: normal;
        text-align: center;
    }
}
