/* ============================================
   FOOTER REDESIGN - P4 Blue Gradient
   ============================================ */

.footer-redesign {
    background: linear-gradient(135deg, #0A5FAD 0%, #073d73 100%);
    color: #FFFFFF;
    position: relative;
}

.footer-content {
    padding: 4rem 0 2rem;
}

/* Column Headings */
.footer-redesign h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

/* Reset list styles */
.footer-redesign ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Links */
.footer-redesign a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-redesign a:hover {
    color: #FBAD48;
}

/* Logo */
.footer-logo {
    height: 120px;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

/* Description */
.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 350px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #FBAD48;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Language Switcher */
.footer-lang-switcher {
    margin-top: 1.5rem;
}

.footer-lang-switcher .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.footer-lang-switcher .btn-outline-light.active {
    background: #FFFFFF;
    color: #0A5FAD;
    border-color: #FFFFFF;
}

.footer-lang-switcher .btn-outline-light:hover {
    border-color: #FBAD48;
    color: #FBAD48;
    background: transparent;
}

.footer-lang-switcher .btn-outline-light.active:hover {
    background: #FFFFFF;
    color: #0A5FAD;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-info-item i {
    color: #FBAD48;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Bottom Bar Links (Grupo Barrdega) */
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #FBAD48;
    text-decoration: none;
}

/* Back to Top Button (Desktop) */
.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-to-top-btn:hover {
    background: #FBAD48;
    border-color: #FBAD48;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Back to Top Mobile (Fixed) */
.back-to-top-mobile {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background: rgba(10, 95, 173, 0.9);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-mobile.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-mobile:hover {
    background: #FBAD48;
    transform: translateY(-2px);
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .social-icon:hover {
        transform: none;
    }

    .social-icon:active {
        background: #FBAD48;
        transform: scale(0.95);
    }

    .back-to-top-btn:hover {
        transform: none;
    }

    .back-to-top-btn:active {
        background: #FBAD48;
        transform: scale(0.98);
    }
}

/* Responsive Breakpoints */

/* Tablet (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-content {
        padding: 3rem 0 1.5rem;
    }

    .footer-redesign h4 {
        margin-top: 1rem;
    }

    .footer-logo {
        height: 105px;
    }
}

/* Small Tablet (576-767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .footer-content {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-redesign h4 {
        margin-top: 1.75rem;
    }

    .footer-logo {
        height: 96px;
    }

    .social-icons {
        gap: 0.75rem;
    }
}

/* Mobile (480-575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }

    .footer-bottom {
        text-align: center;
        padding: 1.5rem 0;
    }

    .footer-redesign h4 {
        margin-top: 2rem;
        font-size: 0.95rem;
    }

    .footer-description,
    .social-icons,
    .footer-lang-switcher {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        justify-content: center;
    }

    .contact-info-item {
        justify-content: center;
    }

    .footer-logo {
        height: 90px;
    }
}

/* Small Mobile (320-479px) */
@media (min-width: 320px) and (max-width: 479px) {
    .footer-content {
        padding: 1.5rem 0 0.75rem;
    }

    .footer-bottom {
        text-align: center;
        padding: 1.25rem 0;
    }

    .footer-bottom .row > div {
        margin-bottom: 1rem;
    }

    .footer-bottom .row > div:last-child {
        margin-bottom: 0;
    }

    .footer-redesign h4 {
        margin-top: 1.75rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .footer-redesign a {
        font-size: 0.85rem;
        line-height: 2.2;
    }

    .footer-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 0.625rem;
        margin: 1.25rem 0;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .footer-description,
    .social-icons,
    .footer-lang-switcher {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        justify-content: center;
    }

    .contact-info-item {
        justify-content: center;
        font-size: 0.85rem;
    }

    .footer-logo {
        height: 84px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .back-to-top-mobile {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }
}

/* Extra Small (<320px) */
@media (max-width: 319px) {
    .footer-content {
        padding: 1rem 0 0.5rem;
    }

    .footer-redesign h4 {
        font-size: 0.85rem;
    }

    .footer-redesign a {
        font-size: 0.8rem;
    }

    .footer-logo {
        height: 76px;
    }
}

/* Focus Styles for Accessibility */
.footer-redesign a:focus,
.social-icon:focus,
.footer-lang-switcher .btn-outline-light:focus,
.back-to-top-btn:focus,
.back-to-top-mobile:focus {
    outline: 2px solid #FBAD48;
    outline-offset: 2px;
}
