/* ── BOTTOM NAV — solo en modo standalone (APK) ── */

.bottom-nav {
    display: none;
}

/* Se muestra solo cuando es standalone (APK instalada) */
@media (display-mode: standalone) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(65px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--surface, #ffffff);
        border-top: 1px solid var(--border-card, #E1EAF2);
        z-index: 2000;
        align-items: stretch;
        box-shadow: 0 -4px 20px rgba(45,43,41,0.10);
    }

    /* En standalone ocultar sidebar y topbar */
    .sidebar {
        display: none !important;
    }
    .topbar-mobile {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 16px 16px calc(85px + env(safe-area-inset-bottom, 0px)) !important;
        width: 100% !important;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--muted, #5B6B7F);
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    padding: 8px 4px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}
.bottom-nav-item i {
    font-size: 1.3rem;
    transition: color 0.2s, transform 0.2s;
}
.bottom-nav-item.activo {
    color: var(--primary-dark, #174F82);
}
.bottom-nav-item.activo i {
    transform: translateY(-2px);
}
.bottom-nav-item.activo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary, #1F6FB2);
    border-radius: 0 0 4px 4px;
}

/* Boton "Mas" */
.bottom-nav-more {
    position: fixed;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    background: var(--surface, #ffffff);
    border-top: 1px solid var(--border-card, #E1EAF2);
    padding: 12px 16px;
    z-index: 2001;
    display: none;
    box-shadow: 0 -8px 30px rgba(45,43,41,0.14);
    border-radius: 20px 20px 0 0;
}
.bottom-nav-more.open {
    display: block;
}
.bottom-nav-more a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 12px 16px;
    color: var(--text, #1e1e1e);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: background 0.2s;
}
.bottom-nav-more a:hover,
.bottom-nav-more a:active {
    background: var(--surface-3, #E1EAF2);
}
.bottom-nav-more a i {
    width: 24px;
    text-align: center;
    color: var(--primary-dark, #174F82);
    font-size: 1.1rem;
}
.bottom-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1999;
}
.bottom-nav-overlay.open {
    display: block;
}
