/* ===================================================== */
/* NAVEGACIÓN MÓVIL TIPO APP - BOTTOM NAV */
/* ===================================================== */

.mobile-bottom-nav {
    display: none; /* Oculto por defecto en desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 249, 8, 0.2);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    padding: 8px 5px;
    gap: 4px;
    min-width: 60px;
}

.mobile-nav-item i {
    font-size: 22px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Estado Activo */
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #fff908;
}

.mobile-nav-item.active i,
.mobile-nav-item:hover i {
    transform: translateY(-2px) scale(1.1);
    color: #fff908;
}

/* Indicador superior */
.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: #fff908;
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active::before,
.mobile-nav-item:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Ripple Effect */
.mobile-nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 249, 8, 0.1);
    border-radius: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.mobile-nav-item:active::after {
    opacity: 1;
    transform: scale(1);
}

/* Badge de notificación (opcional) */
.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 15px);
    background: #ff4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 2px 4px;
    box-shadow: 0 2px 5px rgba(255, 68, 68, 0.4);
}

/* Ajustes para iPhone con notch */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* ===================================================== */
/* RESPONSIVE - MOSTRAR SOLO EN MÓVIL */
/* ===================================================== */

/* Tablets y móviles (< 1024px) */
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* Agregar padding inferior al body para evitar overlap */
    body {
        padding-bottom: 70px;
    }

    /* Ocultar menú hamburguesa tradicional si existe */
    .nav__hamburguer {
        display: none !important;
    }
}

/* Móviles pequeños (< 480px) */
@media (max-width: 480px) {
    .mobile-nav-item {
        min-width: 50px;
        padding: 6px 3px;
    }

    .mobile-nav-item i {
        font-size: 20px;
    }

    .mobile-nav-item span {
        font-size: 10px;
    }
}

/* Landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-bottom-nav {
        padding: 4px 0 4px;
    }

    .mobile-nav-item {
        padding: 4px 5px;
        gap: 2px;
    }

    .mobile-nav-item i {
        font-size: 18px;
    }

    .mobile-nav-item span {
        font-size: 9px;
    }
}

/* ===================================================== */
/* ANIMACIONES Y EFECTOS */
/* ===================================================== */

@keyframes navPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mobile-nav-item.notification-pulse {
    animation: navPulse 2s ease-in-out infinite;
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    }
}
