/* ==========================================================================
   MOBILE BOTTOM NAVIGATION - MODERN WHATSAPP STYLE
   Sin sombras, forma moderna, colores blanco/negro/verde
   ========================================================================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    /* Hidden by default, shown only on mobile */
    justify-content: space-around;
    align-items: center;
    background: var(--blanco);
    border-top: 1px solid var(--borde);
    padding: 10px 10px env(safe-area-inset-bottom);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Forma moderna: barra fija en el borde inferior (no flotante) */
@media (max-width: 950px) {
    .mobile-bottom-nav {
        display: flex;
        width: 100%;
        border-radius: 0;
        border-top: 1px solid var(--borde);
        box-shadow: none;
    }
}

/* Ocultar cuando el menú móvil está abierto */
body.menu-open .mobile-bottom-nav {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Items de navegación */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--negro);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex: 1;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Iconos */
.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

/* Estado activo */
.bottom-nav-item.active {
    color: var(--color-principal);
}

.bottom-nav-item.active svg {
    transform: scale(1.1);
}

/* Ocultar texto por ahora para mantener el diseño limpio de iconos */
.bottom-nav-item span {
    display: none;
}

/* Adaptación para modo oscuro */
[data-theme="dark"] .mobile-bottom-nav {
    background: #1a1a1a;
    border-top: 1px solid #333;
}

[data-theme="dark"] .bottom-nav-item {
    color: var(--blanco);
}

/* Evitar que el contenido quede detrás del bottom nav */
@media (max-width: 950px) {
    body {
        padding-bottom: 70px;
    }
}