/* =========================
   FOOTER VIAJE INFORMADO
   Paleta azul premium
   ========================= */

.vi-footer {
    padding: 56px 24px 28px;
    background:
        radial-gradient(circle at top left, rgba(248, 248, 255, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(0, 127, 255, 0.22), transparent 34%),
        linear-gradient(135deg, #007FFF 0%, #000080 100%);
    color: #F8F8FF;
    font-family: "Inter", sans-serif;
    position: relative;
    overflow: hidden;
}

.vi-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 38%);
    pointer-events: none;
}

.vi-footer__container {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vi-footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
}

.vi-footer h3 {
    margin: 0;
    padding-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F8F8FF;
    position: relative;
    width: 100%;
}

.vi-footer__brand h3 {
    text-align: left;
}

.vi-footer__contact h3 {
    text-align: right;
}

.vi-footer h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(248, 248, 255, 0.15),
        rgba(248, 248, 255, 0.72),
        rgba(248, 248, 255, 0.15)
    );
}

.vi-footer__brand h3::after {
    left: 0;
}

.vi-footer__contact h3::after {
    right: 0;
}

.vi-footer__brand p {
    margin: 18px 0 0;
    max-width: 420px;
    color: rgba(248, 248, 255, 0.84);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================
   LOGO FOOTER
   ========================= */

.vi-footer__logo {
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    align-self: center;

    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;

    /* Ayuda a evitar parpadeos raros en móvil */
    isolation: isolate;
}

.vi-footer__logo img {
    width: 175px;
    height: auto;
    display: block;

    /* Quitamos el filtro que puede generar el cuadrado temporal */
    filter: none;

    background: transparent;
    border: none;
    box-shadow: none;

    /* Mejora renderizado en móvil */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.vi-footer__contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* =========================
   LINKS INTERMEDIOS
   ========================= */

.vi-footer__middle {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(248, 248, 255, 0.18);
}

.vi-footer__policies,
.vi-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.vi-footer__policies a,
.vi-footer__nav a {
    color: rgba(248, 248, 255, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.vi-footer__policies a:hover,
.vi-footer__nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.vi-footer__bottom {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(248, 248, 255, 0.18);
    text-align: center;
}

.vi-footer__bottom p {
    margin: 0;
    color: rgba(248, 248, 255, 0.70);
    font-size: 0.85rem;
}

/* =========================
   SOCIAL ICONS
   ========================= */

.vi-social-icons {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 20px 0 0;
}

.vi-social-icons__item {
    position: relative;
}

.vi-social-icons__item .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #F8F8FF;
    padding: 6px 10px;
    border-radius: 7px;
    opacity: 0;
    visibility: hidden;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(0, 45, 137, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.vi-social-icons__item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

.vi-social-icons__item a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 64px;
    height: 64px;
    border-radius: 50%;

    color: #002d89;
    background-color: #F8F8FF;
    border: 1px solid rgba(248, 248, 255, 0.58);
    text-decoration: none;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    transition:
        color 0.3s ease-in-out,
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out,
        border-color 0.3s ease-in-out;
}

.vi-social-icons__item a:hover {
    color: #F8F8FF;
    border-color: rgba(248, 248, 255, 0.85);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.26),
        0 0 0 4px rgba(248, 248, 255, 0.10);
    transform: translateY(-2px);
}

.vi-social-icons__item a i {
    position: relative;
    z-index: 2;
    font-size: 1.7rem;
    line-height: 1;
}

.vi-social-icons__item a .filled {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #007FFF 0%, #000080 100%);
    transition: all 0.3s ease-in-out;
    z-index: 1;
}

.vi-social-icons__item a:hover .filled {
    height: 100%;
}

/* GOOGLE */
.vi-social-icons__item a[data-social="google"] .filled {
    background: linear-gradient(135deg, #007FFF 0%, #000080 100%);
}

/* FACEBOOK */
.vi-social-icons__item a[data-social="facebook"] .filled {
    background: linear-gradient(135deg, #007FFF 0%, #000080 100%);
}

/* INSTAGRAM */
.vi-social-icons__item a[data-social="instagram"] .filled {
    background: linear-gradient(135deg, #007FFF 0%, #000080 100%);
}

.vi-social-icons:hover > :not(:hover) {
    transition: 300ms;
    filter: blur(1px);
    transform: scale(0.95);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .vi-footer {
        padding: 46px 20px 26px;
    }

    .vi-footer__top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 34px;
    }

    .vi-footer__contact {
        align-items: center;
        text-align: center;
    }

    .vi-footer__brand h3,
    .vi-footer__contact h3 {
        text-align: center;
    }

    .vi-footer__brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .vi-footer__logo {
        margin: 0 auto;
    }

    .vi-social-icons {
        justify-content: center;
    }

    .vi-footer__middle {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vi-footer__policies,
    .vi-footer__nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vi-footer {
        padding: 32px 18px 20px;
    }

    .vi-footer__top {
        gap: 24px;
    }

    .vi-footer h3 {
        font-size: 1.15rem;
    }

    .vi-footer__brand p {
        font-size: 0.92rem;
    }

    .vi-footer__logo {
        width: 145px;
        height: 145px;
    }

    .vi-footer__logo img {
        width: 132px;
    }

    .vi-social-icons {
        gap: 16px;
    }

    .vi-social-icons__item a {
        width: 56px;
        height: 56px;
    }

    .vi-social-icons__item a i {
        font-size: 1.5rem;
    }

    .vi-footer__policies,
    .vi-footer__nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .vi-footer__policies a,
    .vi-footer__nav a {
        width: auto;
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }
}