/* Footer extraído del styles.css original de Lexware. */
.main-footer,
.main-footer * {
    box-sizing: border-box;
}

.main-footer a {
    text-decoration: none;
    color: inherit;
}

.main-footer ul,
.main-footer p,
.main-footer h4 {
    margin: 0;
    padding: 0;
}

.main-footer img {
    max-width: 100%;
    height: auto;
}

.main-footer {
    background-color: #001B66;
    color: #ffffff;
    padding: 60px 10%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-top: auto;
    width: 100%;
    max-width: 1600px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    isolation: isolate;
}

/* Fondo azul de extremo a extremo sin mover el contenido del footer. */
.main-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    width: 100dvw;
    transform: translateX(-50%);
    background-color: #001B66;
    pointer-events: none;
}

.footer-upper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-brand {
    width: 30%;
    min-width: 250px;
}

.footer-brand .logo-placeholder {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
}

.footer-brand .logo-placeholder .logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 30px;
    margin-top: 30px;
}

.footer-socials {
    width: 220px;
    display: flex;
    gap: 15px;
}

.social-icon-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0) scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.social-icon-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.25s ease;
}

.main-footer .social-icon-placeholder:hover,
.lexware-v2-content .main-footer .social-icon-placeholder:hover {
    background-color: transparent;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28), 0 0 0 2px #FC4713;
    filter: brightness(1.1);
}

.main-footer .social-icon-placeholder:hover img,
.lexware-v2-content .main-footer .social-icon-placeholder:hover img {
    transform: scale(0.94);
}

.social-icon-placeholder:focus-visible {
    outline: 2px solid #FC4713;
    outline-offset: 4px;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .social-icon-placeholder,
    .social-icon-placeholder img {
        transition: none;
    }
}

.footer-links-container {
    width: 65%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.footer-links-col h4 {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 10px;
}

.footer-links-col a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-lower {
    border-top: 0.5px solid #ffffff;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-lower-links {
    display: flex;
    gap: 50px;
}

.scroll-top-btn {
    appearance: none;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    background-color: #086AD8;
    width: 40px;
    height: 40px;
    border-radius: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn:hover {
    background-color: #004696;
}

@media (max-width: 1300px) {
    .main-footer {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

@media (max-width: 1024px) {
    .footer-upper {
        gap: 40px;
    }

    .footer-links-container {
        width: 70%;
    }

    .footer-brand .logo-placeholder {
        position: static;
        transform: none;
        margin-bottom: 25px;
    }

    .footer-brand .logo-placeholder .logo-img {
        height: 48px !important;
        max-width: 240px;
        width: auto;
        display: block;
    }

    .footer-brand p {
        margin-top: 25px;
        margin-bottom: 30px;
    }
}

@media (max-width: 900px) {
    .footer-upper {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand,
    .footer-links-container {
        width: 100%;
    }

    .footer-links-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-lower {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-lower-links {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-links-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
