body.modo-navidad .footer-principal {
    position: relative;
    display: block !important;
    width: calc(100% - 48px) !important;
    max-width: 1240px !important;
    margin: 56px auto 24px !important;
    padding: 34px 38px 28px !important;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 196, 0, .28);
    border-top: 4px solid #ffc400 !important;
    border-radius: 32px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .28) !important;
}

body.modo-navidad .footer-principal::before {
    display: none !important;
    content: none !important;
}

/* Compatibilidad con las páginas antiguas que aún tienen el footer plano. */
.footer-principal:not(:has(.footer-contenido)) {
    position: relative;
    width: calc(100% - 48px) !important;
    max-width: 1240px !important;
    margin: 56px auto 24px !important;
    padding: 34px 38px 28px !important;
    display: grid !important;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px 32px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 196, 0, .28) !important;
    border-top: 4px solid #ffc400 !important;
    border-radius: 32px !important;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .28) !important;
}

.footer-principal:not(:has(.footer-contenido))::before {
    content: none !important;
    display: none !important;
}

.footer-principal:not(:has(.footer-contenido)) .footer-copy {
    grid-column: 1 / -1;
}

.footer-principal .footer-nav > .menu {
    display: contents !important;
}

.footer-principal .whatsapp-float,
.footer-principal .btn-whatsapp-fijo,
.footer-principal .footer-redes a[href="#"],
.footer-principal .footer-redes a[href^="TU_ENLACE"] {
    display: none !important;
}

.footer-principal .footer-contenido {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.footer-principal .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-principal .footer-logo img {
    width: 92px;
    height: auto;
    display: block;
}

.footer-principal .footer-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px !important;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    width: auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.footer-principal .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 10px 16px !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    font-size: 15px !important;
    line-height: 1.2;
    white-space: nowrap;
}

.footer-principal .footer-nav a:hover {
    border-color: #ffc400;
    background: #ffc400;
    color: #111 !important;
    transform: translateY(-2px);
}

.footer-principal .footer-redes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
}

.footer-principal .footer-redes .red-social {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.footer-principal .footer-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    margin-top: 22px;
    padding: 18px 160px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    text-align: left;
}

.footer-principal .footer-copy p,
.footer-principal .footer-copy span {
    margin: 0;
}

.footer-principal .footer-copy span {
    max-width: 360px;
    text-align: right;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .footer-principal:not(:has(.footer-contenido)) {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .footer-principal:not(:has(.footer-contenido)) .footer-redes {
        grid-column: 1 / -1;
        justify-content: center;
    }
    .footer-principal .footer-contenido {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .footer-principal .footer-redes {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    body.modo-navidad .footer-principal {
        width: calc(100% - 24px) !important;
        padding: 26px 20px 20px !important;
        border-radius: 18px;
    }

    .footer-principal:not(:has(.footer-contenido)) {
        width: calc(100% - 24px) !important;
        padding: 26px 20px 20px !important;
        grid-template-columns: 1fr;
        gap: 22px;
        border-radius: 18px !important;
        text-align: center;
    }

    .footer-principal:not(:has(.footer-contenido)) .footer-redes,
    .footer-principal:not(:has(.footer-contenido)) .footer-copy {
        grid-column: auto;
    }

    .footer-principal .footer-contenido {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .footer-principal .footer-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px !important;
    }

    .footer-principal .footer-nav a {
        justify-content: center;
        white-space: normal;
    }

    .footer-principal .footer-redes {
        grid-column: auto;
        justify-content: center;
    }

    .footer-principal .footer-copy {
        flex-direction: column;
        padding-right: 0;
        text-align: center;
        gap: 6px;
    }

    .footer-principal .footer-copy span {
        text-align: center;
    }
}
