.custom-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #002c55;
    color: white;
    padding: 30px 30px;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* Fila 1: Logo y redes */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto 10px auto;
    flex-wrap: wrap;
    border-bottom: 1px solid #B8B6CC;
}

.footer-logo img {
    max-width: 250px;
    padding-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social a {
    color: #8D8BA7;
    font-size: 20px;
    background: #F2F1FA;
    transition: color 0.3s ease;
    border-radius: 10px;
    width: 22px;
    height: 22px;
    padding: 5px;
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.footer-social a:hover {
    color: #8D8BA7;
    /* Color al pasar el mouse */
}


/* Fila 2: Columnas */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 20px auto 40px auto;
    gap: 24px;
}

.footer-column {
    flex: 1 1 180px;
    min-width: 160px;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: white;
}

.footer-column a,
.footer-column p {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
}

/* Fila 3: Copyright */

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    color: white;
    font-size: 14px;
    position: relative;
    max-width: 1500px;
    margin: 0 auto 0px auto;
    border-top: 1px solid #B8B6CC;
}

.footer-bottom-left {
    text-align: center;
    flex: 1 1 100%;
}

.footer-bottom-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #ccc;
}

.footer-column i {
    margin-right: 8px;
    color: #FFFFFF;
    font-size: 1.2rem;
    /* color verde para WhatsApp */
}



@media (max-width: 800px) {
    .footer-columns {
        flex-direction: column;
    }

    .footer-column {
        text-align: center;
        /* Menor espacio entre columnas */
    }

    .footer-toggle {
        cursor: pointer;
        position: relative;
        padding: 10px 0;
        /* Menor espacio arriba y abajo */
        margin: 0;
        font-size: 1.1em;
    }

    .footer-toggle::after {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 18px;
    }


    .footer-content {
        display: none;
    }

    .footer-toggle.active+.footer-content {
        display: block;
    }

    .footer-column {
        flex: none !important;
        min-width: 160px;
        text-decoration: none;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        text-align: left;
    }

    .footer-bottom-left {
        flex: 1;
        text-align: left;
    }

    .footer-bottom-right {
        flex: 1;
        text-align: right;
    }
}

/* Entre 481px y 799px: apilado y centrado */
@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .footer-bottom-right {
        top: 88% !important;
    }

    .footer-columns {
        align-content: flex-start !important;
        align-items: flex-start !important;
    }

    .footer-toggle {
        padding: 0px 0 !important;
    }

    .footer-column {
        text-align: left !important;
    }

    .footer-logo img {
        max-width: 170px !important;
    }

    .custom-footer {
        padding: 12px 30px 27px !important;
    }

    .footer-bottom-right {
        right: 0px !important;
    }
}

@media (max-width: 320px) {
    .footer-logo img {
        max-width: 123px !important;
        padding-bottom: 0px !important;
    }
}