/* =====================================================
   FOOTER SPNEXT
===================================================== */

.site-footer {
    position: relative;
    isolation: isolate;

    padding: 50px 0 22px;

    overflow: hidden;

    border-top: 1px solid rgba(148, 163, 184, 0.12);

    background:
        radial-gradient(circle at 8% 20%,
            rgba(37, 99, 235, 0.13),
            transparent 27%),
        radial-gradient(circle at 92% 75%,
            rgba(139, 92, 246, 0.1),
            transparent 29%),
        linear-gradient(145deg,
            #01040d 0%,
            #020617 50%,
            #07101f 100%);

    color: var(--white);
}


/* =====================================================
   TEXTURA DECORATIVA
===================================================== */

.site-footer::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px);

    background-size: 52px 52px;

    mask-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8),
            transparent 88%);

    -webkit-mask-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8),
            transparent 88%);

    pointer-events: none;
}


/* Línea superior de marca */

.site-footer::after {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: min(270px, 58%);
    height: 3px;

    border-radius: 0 0 999px 999px;

    background:
        linear-gradient(90deg,
            var(--primary),
            var(--secondary),
            var(--accent));

    transform: translateX(-50%);
}


/* =====================================================
   BRILLOS DECORATIVOS
===================================================== */

.footer-glow {
    position: absolute;
    z-index: -1;

    border-radius: 50%;

    filter: blur(110px);

    pointer-events: none;
}

.footer-glow-1 {
    top: -180px;
    left: -140px;

    width: 360px;
    height: 360px;

    background: rgba(37, 99, 235, 0.16);
}

.footer-glow-2 {
    right: -160px;
    bottom: -190px;

    width: 390px;
    height: 390px;

    background: rgba(139, 92, 246, 0.13);
}


/* =====================================================
   FILA PRINCIPAL
===================================================== */

.footer-main-row {
    align-items: flex-start;
}

.footer-main-row>div {
    display: flex;
    justify-content: center;
}

.footer-block {
    width: 100%;

    display: flex;
    align-items: center;
    flex-direction: column;

    text-align: center;
}

.footer-block h3 {
    position: relative;

    margin: 0 0 18px;
    padding-bottom: 10px;

    color: var(--white);

    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.footer-block h3::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 50%;

    width: 34px;
    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(90deg,
            var(--primary),
            var(--secondary));

    transform: translateX(-50%);
}


/* =====================================================
   PRIMERA COLUMNA: MARCA
===================================================== */

.footer-brand-compact {
    max-width: 275px;
}

.footer-brand-compact .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 11px;

    border-radius: 6px;
}

.footer-brand-compact .footer-logo img {
    display: block;

    width: auto;
    max-width: 118px;
    height: 42px;

    object-fit: contain;

    transition:
        transform var(--transition-normal),
        filter var(--transition-normal);
}

.footer-brand-compact .footer-logo:hover img,
.footer-brand-compact .footer-logo:focus-visible img {
    transform: translateY(-2px);

    filter:
        drop-shadow(0 8px 18px rgba(37, 99, 235, 0.22));
}

.footer-brand-compact .footer-logo:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 5px;
}

.footer-brand-compact h2 {
    margin: 0 0 9px;

    color: var(--white);

    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
}

.footer-brand-compact>p {
    margin: 0 0 13px;

    color: #94a3b8;

    font-size: 0.69rem;
    line-height: 1.65;
}

.footer-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #94a3b8;

    font-size: 0.67rem;
    line-height: 1.4;
}

.footer-location i {
    flex: 0 0 auto;

    color: var(--secondary);

    font-size: 0.76rem;
}


/* =====================================================
   SEGUNDA COLUMNA: NAVEGACIÓN
===================================================== */

.footer-navigation {
    max-width: 260px;
}

.footer-nav-list {
    display: grid;
    justify-items: center;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-nav-list li {
    margin: 0;
}

.footer-nav-list a {
    display: inline-block;

    color: #94a3b8;

    font-size: 0.72rem;
    line-height: 1.45;
    text-decoration: none;

    transition:
        color var(--transition-normal),
        transform var(--transition-normal);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
    color: var(--secondary);

    transform: translateY(-2px);
}

.footer-nav-list a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;

    border-radius: 3px;
}


/* =====================================================
   TERCERA COLUMNA
===================================================== */

.footer-connect {
    max-width: 390px;
}

.footer-group-label {
    display: block;

    margin-bottom: 10px;

    color: #94a3b8;

    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.4;
}


/* =====================================================
   REDES SOCIALES
===================================================== */

.footer-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 19px;
}

.footer-social-link {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;
    flex: 0 0 auto;

    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;

    box-shadow:
        0 8px 20px rgba(2, 6, 23, 0.17);

    text-decoration: none;

    transition:
        color var(--transition-normal),
        border-color var(--transition-normal),
        background-color var(--transition-normal),
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.footer-social-link i {
    display: block;

    color: inherit;

    font-size: 0.95rem;
    line-height: 1;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: var(--white);

    transform: translateY(-4px);

    box-shadow:
        0 12px 27px rgba(2, 6, 23, 0.25);
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
}


/* Instagram */

.footer-social-instagram:hover,
.footer-social-instagram:focus-visible {
    border-color: #e1306c;

    background:
        linear-gradient(135deg,
            #833ab4,
            #e1306c,
            #f77737);
}


/* Facebook */

.footer-social-facebook:hover,
.footer-social-facebook:focus-visible {
    border-color: #1877f2;

    background: #1877f2;
}


/* LinkedIn */

.footer-social-linkedin:hover,
.footer-social-linkedin:focus-visible {
    border-color: #0a66c2;

    background: #0a66c2;
}


/* TikTok */

.footer-social-tiktok:hover,
.footer-social-tiktok:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);

    background: #111111;

    text-shadow:
        -1px 0 #25f4ee,
        1px 0 #fe2c55;
}


/* =====================================================
   MEDIOS DE PAGO
===================================================== */

.footer-payment-title {
    margin-top: 0;
}

.footer-payment-methods {
    width: 100%;
    max-width: 350px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.footer-payment-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 8px 10px;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.035);
    color: #cbd5e1;

    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.35;

    transition:
        border-color var(--transition-normal),
        background-color var(--transition-normal),
        transform var(--transition-normal);
}

.footer-payment-item:hover {
    border-color: rgba(148, 163, 184, 0.23);

    background: rgba(255, 255, 255, 0.055);

    transform: translateY(-2px);
}

.footer-payment-mark {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;
    flex: 0 0 auto;

    border-radius: 8px;

    color: var(--white);

    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;

    box-shadow:
        0 6px 14px rgba(2, 6, 23, 0.18);
}

.footer-payment-mark i {
    display: block;

    color: inherit;

    font-size: 0.76rem;
    line-height: 1;
}


/* Yape */

.footer-payment-yape {
    background:
        linear-gradient(135deg,
            #5f259f,
            #8b3fc7);
}


/* Plin */

.footer-payment-plin {
    background:
        linear-gradient(135deg,
            #00a8c6,
            #00d2c8);
}


/* Transferencia */

.footer-payment-transfer {
    background:
        linear-gradient(135deg,
            var(--primary),
            var(--accent));
}


/* PayPal */

.footer-payment-paypal {
    background:
        linear-gradient(135deg,
            #003087,
            #009cde);
}

.footer-payment-note {
    display: block;

    max-width: 340px;

    margin-top: 10px;

    color: #64748b;

    font-size: 0.58rem;
    line-height: 1.5;
}


/* =====================================================
   DIVISOR
===================================================== */

.footer-divider {
    width: 100%;
    height: 1px;

    margin: 38px 0 20px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(148, 163, 184, 0.2) 18%,
            rgba(148, 163, 184, 0.2) 82%,
            transparent);
}


/* =====================================================
   PARTE INFERIOR CENTRADA
===================================================== */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;

    text-align: center;
}

.footer-bottom>p {
    margin: 0;

    color: #64748b;

    font-size: 0.65rem;
    line-height: 1.5;
}

.footer-bottom>p strong {
    color: #cbd5e1;

    font-weight: 700;
}


/* =====================================================
   ENLACES LEGALES
===================================================== */

.footer-legal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-legal a {
    color: #64748b;

    font-size: 0.64rem;
    line-height: 1.5;
    text-decoration: none;

    transition: color var(--transition-normal);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--secondary);
}

.footer-legal a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;

    border-radius: 3px;
}

.footer-legal>span {
    width: 3px;
    height: 3px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #475569;
}


/* =====================================================
   BOTÓN VOLVER ARRIBA
===================================================== */

.footer-back-top {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-top: 2px;

    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.045);
    color: #cbd5e1;

    box-shadow:
        0 10px 24px rgba(2, 6, 23, 0.2);

    text-decoration: none;

    transition:
        color var(--transition-normal),
        border-color var(--transition-normal),
        background-color var(--transition-normal),
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.footer-back-top i {
    display: block;

    color: inherit;

    font-size: 0.8rem;
    line-height: 1;
}

.footer-back-top:hover,
.footer-back-top:focus-visible {
    border-color: rgba(6, 182, 212, 0.35);

    background:
        linear-gradient(135deg,
            var(--primary),
            var(--accent));

    color: var(--white);

    transform: translateY(-4px);

    box-shadow:
        0 13px 28px rgba(37, 99, 235, 0.24);
}

.footer-back-top:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
}


/* =====================================================
   RESPONSIVE: ESCRITORIO MEDIANO
===================================================== */

@media (max-width: 1199.98px) {

    .footer-brand-compact {
        max-width: 265px;
    }

    .footer-connect {
        max-width: 360px;
    }

}


/* =====================================================
   RESPONSIVE: TABLET
===================================================== */

@media (max-width: 991.98px) {

    .site-footer {
        padding: 48px 0 22px;
    }

    .footer-main-row {
        row-gap: 34px;
    }

    .footer-brand-compact,
    .footer-navigation {
        max-width: 300px;
    }

    .footer-connect {
        max-width: 420px;
    }

}


/* =====================================================
   RESPONSIVE: MÓVIL
===================================================== */

@media (max-width: 767.98px) {

    .site-footer {
        padding: 44px 0 21px;
    }

    .footer-main-row {
        row-gap: 31px;
    }

    .footer-brand-compact,
    .footer-navigation,
    .footer-connect {
        max-width: 420px;
    }

    .footer-divider {
        margin: 34px 0 19px;
    }

}


/* =====================================================
   RESPONSIVE: CELULARES PEQUEÑOS
===================================================== */

@media (max-width: 575.98px) {

    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-main-row {
        row-gap: 28px;
    }

    .footer-brand-compact {
        max-width: 285px;
    }

    .footer-brand-compact .footer-logo img {
        max-width: 112px;
        height: 40px;
    }

    .footer-brand-compact h2 {
        font-size: 0.9rem;
    }

    .footer-brand-compact>p {
        font-size: 0.67rem;
    }

    .footer-block h3 {
        margin-bottom: 16px;
    }

    .footer-payment-methods {
        max-width: 330px;
    }

    .footer-divider {
        margin: 31px 0 18px;
    }

}


/* =====================================================
   CELULARES MUY PEQUEÑOS
===================================================== */

@media (max-width: 359.98px) {

    .footer-payment-methods {
        grid-template-columns: 1fr;
    }

    .footer-payment-item {
        max-width: 230px;

        margin: 0 auto;
    }

    .footer-legal {
        flex-direction: column;
        gap: 6px;
    }

    .footer-legal>span {
        display: none;
    }

}


/* =====================================================
   MOVIMIENTO REDUCIDO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .footer-brand-compact .footer-logo img,
    .footer-nav-list a,
    .footer-social-link,
    .footer-payment-item,
    .footer-back-top {
        transition: none;
    }

}