﻿
/* ========================================
   FOOTET APP - FRONTEND
   ======================================== */

.gp-mobile-footer,
.gp-mobile-footer *,
.gp-sheet,
.gp-sheet *,
.gp-sheet-overlay {
    box-sizing: border-box;
}

.gp-mobile-footer,
.gp-sheet,
.gp-sheet-overlay {
    display: none;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .gp-mobile-footer {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: calc(64px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        z-index: 1030;

        padding-left: 0;
        padding-right: 0;
    }

    /*.gp-mobile-footer__nav {
        display: flex;
        width: 100%;
        max-width: 100%;
        height: 64px;
        overflow: hidden;
    }*/

    .gp-mobile-footer__nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        height: 64px;
        overflow: hidden;
    }
/*    .gp-mobile-footer__item {
        flex: 1 1 20%;
        width: 20%;
        min-width: 0;
        max-width: 20%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        color: #0f172a;
        text-decoration: none;
        font: 500 11px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        cursor: pointer;
    }*/
    .gp-mobile-footer__item {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0 2px;
        border: 0;
        border-radius: 0;
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        color: #0f172a;
        text-decoration: none;
        font: 500 11px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        cursor: pointer;
    }
/*        .gp-mobile-footer__item span {
            display: block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }*/

        .gp-mobile-footer__item span {
            display: block;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-transform: none !important;
        }

    .gp-mobile-footer__icon {
        width: 23px;
        height: 23px;
        display: block;
        flex: 0 0 auto;

        color: #0f172a;
    }

    .gp-mobile-footer__item.active .gp-mobile-footer__icon {
        color: #2563eb;
    }

    .gp-mobile-footer__item.active {
        font-weight: 700;
    }

    .gp-sheet-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.48);
        z-index: 1040;
    }

        .gp-sheet-overlay:not([hidden]) {
            display: block;
        }

    .gp-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: min(78vh, 560px);
        padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.22);
        z-index: 1041;
        transform: translateY(110%);
        transition: transform 180ms ease;
        overflow-y: auto;
        visibility: hidden;
    }

        .gp-sheet.is-open {
            transform: translateY(0);
            visibility: visible;
        }

    .gp-sheet__handle {
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: #cbd5e1;
        margin: 4px auto 14px;
    }

    .gp-sheet__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e5e7eb;
    }

        .gp-sheet__header h2 {
            margin: 0;
            color: #0f172a;
            font: 700 18px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

    .gp-sheet__close {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border: 0;
        border-radius: 50%;
        appearance: none;
        -webkit-appearance: none;
        background: #f1f5f9;
        color: #0f172a;
        font-size: 26px;
        line-height: 38px;
        text-align: center;
        cursor: pointer;
    }

    .gp-sheet__body {
        display: grid;
        gap: 8px;
        padding-top: 12px;
    }

    .gp-sheet__link {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 8px;
        background: #f8fafc;
        color: #0f172a;
        text-decoration: none;
        font: 600 15px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

        .gp-sheet__link:active {
            background: #e2e8f0;
        }
}

/* ========================================
   FOOTET APP - BACKEND
   ======================================== */




@media (min-width: 768px) {
    .fintech-footer {
        left: 80px !important;
        width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;
    }

    .fintech-footer-doc {
/*        left: 80px !important;
        width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;*/
    }

    .fintech-subfooter {
        bottom: 0px !important;
        left: 80px !important;
        width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;
        
    }

    .fintech-subfooter__container {
        display: flex;
        width: 100%;
        padding: 10px 10px!important;
    }
}

.fintech-footer,
.fintech-footer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fintech-footer {
    position: fixed;
    left: 0;
    bottom: -1px;
    width: 100vw;
    max-width: 100vw;
    height: 64px;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    z-index: 9999;
    z-index: 1030;
}

.fintech-footer {
    padding-bottom: env(safe-area-inset-bottom);
}

.fintech-footer__nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden; /* ← añade esto */
}

.fintech-footer__item {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: center;
}

.fintech-footer__icon {
    width: 23px;
    height: 23px;
    margin-bottom: 4px;
}

.fintech-footer__item.active {
    color: #0f172a;
}

@media (hover: hover) {
    .fintech-footer__item:hover {
        background-color: #f8fafc;
    }
}

body {
    /*padding-bottom: 64px;*/
    padding-bottom: calc(64px + 40px);
}



/*(external)*/
.fintech-footer-doc,
.fintech-footer-doc * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fintech-footer-doc {
    position: fixed;
    left: 0;
    bottom: -1px;
    width: 100vw;
    max-width: 100vw;
    height: 64px;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    z-index: 9999;
    z-index: 1030;
}

.fintech-footer-doc {
    padding-bottom: env(safe-area-inset-bottom);
}



/* ========================================
   BOTÓN CENTRAL TIPO TIKTOK
   ======================================== */
.fintech-footer__item--primary {
    position: relative;
    flex: 0 0 70px; /* ancho fijo del botón central */
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* círculo */
    .fintech-footer__item--primary::before {
        content: "";
        position: absolute;
        width: 58px;
        height: 58px;
        background: #0f172a;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
        z-index: 1;
    }

    /* icono */
    .fintech-footer__item--primary .fintech-footer__icon {
        width: 26px;
        height: 26px;
        margin: 0;
        position: relative;
        z-index: 2;
        filter: brightness(0) invert(1);
    }

    /* evitar hover blanco */
    .fintech-footer__item--primary:hover {
        background: transparent !important;
    }



/* ============================
   SUB FOOTER (TOTALES)
   ============================ */
.fintech-subfooter {
    position: fixed;
    left: 0;
    bottom: 64px;
    /*bottom: 0px;*/
    width: 100vw;
    background: #1e293b;
    color: white;
    border-top: 1px solid #334155;
    z-index: 9998;
    z-index: 1030;
}

.fintech-subfooter__container {
    display: flex;
    width: 100%;
    padding: 10px 0; /* quitamos padding lateral para ocupar TODO */
}

.fintech-subfooter__item {
    flex: 1 1 0%;
    min-width: 0;
    text-align: right; /* 🔥 CAMBIO IMPORTANTE */
    font-family: 'Inter', system-ui, sans-serif;
    padding: 0px 10px;
    border-right: 1px solid #334155;
}

    .fintech-subfooter__item:last-child {
        border-right: none;
    }

    .fintech-subfooter__item small {
        display: block;
        font-size: 11px;
        opacity: 0.75;
        font-weight: 400;
        margin-bottom: 2px;
    }

    .fintech-subfooter__item strong {
        font-size: 18px; /* 🔥 MÁS GRANDE */
        font-weight: 700;
    }

@media (max-width: 768px) {
    .hideInMobile {
        display: none;
    }
}
