/* 📱 NAVEGACIÓN INFERIOR (Mobile First) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(6, 182, 212, 0.3);
    z-index: 1000;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.3s ease, visibility 0.3s;
}

.bottom-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-tab.active {
    color: #06b6d4;
}

.bottom-nav-icon {
    font-size: 1.5rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-tab.active .bottom-nav-icon {
    transform: translateY(-2px) scale(1.1);
}

.bottom-nav-text {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ☰ BOTÓN FLOTANTE (Toggle Landscape) */
.landscape-toggle-btn {
    display: none; /* Oculto en portrait por defecto */
    position: fixed;
    right: 15px;
    bottom: var(--bottom-nav-offset, 85px); /* Arriba de la barra de nav */
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 📱 MODO LANDSCAPE OPTIMIZADO */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .landscape-toggle-btn {
        display: flex !important;
    }

    body.bottom-nav-hidden .bottom-nav {
        transform: translateY(100%);
        visibility: hidden;
    }

    /* 🚀 OCULTAR HEADER EN MODO INMERSIVO */
    body.bottom-nav-hidden .header {
        display: none;
    }

    body.bottom-nav-hidden .landscape-toggle-btn {
        bottom: var(--bottom-nav-offset, 25px);
        background: rgba(30, 41, 59, 0.8);
        color: #f1f5f9;
    }
}
