/* =============================================
   FOOTER
   ============================================= */

.main-footer {
    background-color: #010F20;
    min-height: 353px;
    padding: 60px 0 0 0;
    margin-top: 80px;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.works-section {
    margin-bottom: 0 !important;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 280px 200px 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Logo */
.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    width: 200px;
    height: auto;
}

/* Secciones */
.footer-section {
    color: #FFFFFF;
}

/* Títulos - "Enlaces Directos" */
.footer-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 21px 0;
    line-height: 21px;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 25px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 25px;
}

.footer-links a:hover {
    color: #4FD1C5;
}

/* Texto de contacto */
.footer-contact-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 160%;
    margin: 0;
    max-width: 400px;
}

/* Iconos de contacto */
.footer-contact-icons {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-icon-bg:first-of-type {
    width: 41px;
    height: 41px;
    z-index: 1;
}

.footer-icon-bg:nth-of-type(2) {
    width: 33px;
    height: 33px;
    z-index: 2;
}

.footer-icon-img {
    position: absolute;
    width: 23px;
    height: 23px;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-contact-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-contact-link:hover {
    transform: translateX(5px);
}

.footer-contact-link span {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #9AFFF1;
    line-height: 100%;
}



/* Copyright */
.footer-copyright {
    width: 100%;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    background-color: #FFFFFF;
    padding: 0;
}

.footer-copyright p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #565656;
    margin: 0;
    padding: 0;
    text-align: left;
}

.copyright-short {
    display: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablets */
@media screen and (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 0 40px;
    }

    .footer-logo {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-contact-icons {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .main-footer {
        min-height: auto;
        padding: 30px 0 0 0 !important;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px !important;
    }

    .footer-logo {
        text-align: left;
        margin-bottom: 10px;
        justify-content: flex-start;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-section {
        margin-bottom: 5px;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a,
    .footer-contact-text {
        font-size: 13px;
        line-height: 140%;
    }

    .footer-contact-icons {
        gap: 20px;
        margin-left: 0;
        padding-left: 0;
    }

    .footer-contact-item {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: 0;
        padding-left: 0;
    }

    .footer-contact-link {
        display: flex;
        align-items: center;
    }

    .footer-contact-link span {
        font-size: 13px;
    }

    .footer-icon-wrapper {
        width: 45px;
        height: 45px;
        position: relative;
        flex-shrink: 0;
        margin-left: 0;
        padding-left: 0;
    }

    .footer-icon-bg,
    .footer-icon-img {
        margin-left: 0;
        padding-left: 0;
    }

    .footer-icon-bg:first-of-type {
        width: 34px;
        height: 34px;
    }

    .footer-icon-bg:nth-of-type(2) {
        width: 27px;
        height: 27px;
    }

    .footer-icon-img {
        width: 18px;
        height: 18px;
    }

    .footer-copyright {
        height: auto;
        padding: 10px 15px;
        margin-top: 15px;
        min-height: auto;
        display: block;
    }

    .copyright-full {
        display: inline;
        font-size: 9px;
        line-height: 100%;
        margin: 0;
        padding: 0;
    }

    .copyright-short {
        display: none;
    }
}
