/* NAVEGACIÓN UNIVERSAL — PARA GABY */

.bottom-nav {
    position: fixed !important;
    z-index: 9999 !important;

    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;

    box-sizing: border-box !important;
    width: calc(100% - 24px) !important;
    max-width: 436px !important;

    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px !important;

    padding: 6px !important;

    background: rgba(255,255,255,.98) !important;
    border: 1px solid #e0eaf3 !important;
    border-radius: 22px !important;
    box-shadow: 0 5px 24px rgba(21,60,101,.12) !important;
}

.bottom-nav a {
    position: relative;
    min-width: 0;
    min-height: 54px;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    padding: 6px 2px !important;
    border-radius: 15px !important;

    color: #6687a5 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.bottom-nav a > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
}

.bottom-nav svg.gaby-icon {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.bottom-nav a small {
    display: block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: inherit !important;
    white-space: nowrap !important;
}

.bottom-nav a.active {
    background: #e8f4fd !important;
    color: #143c65 !important;
}

.bottom-nav a.active::before {
    content: "" !important;
    position: absolute;
    top: 3px;
    width: 18px;
    height: 2px;
    border-radius: 10px;
    background: #e4aa34;
}

/* Reserva espacio para llegar al final del contenido */
body:has(.bottom-nav) {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

body:has(.bottom-nav) .app-shell {
    padding-bottom: 110px !important;
}
