.bottom-nav-bar {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom) + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 360px;
    height: 75px;
    background: #1c1c1e; /* Dark theme pill */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 40px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Flat Icon Buttons Container (Anuncios & Contactos) */
.nav-icon-btn {
    background: transparent;
    border: none;
    color: #8e8e93; /* Unselected state */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 70px;
    height: 60px;
    transition: color 0.3s ease;
}

.nav-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
}

.nav-icon-btn:hover,
.nav-icon-btn.active {
    color: #ffffff; /* Selected/Hover state */
}

/* Overriding any leftover styles or shadows for side buttons */
.announcement-btn {
    background: transparent !important;
    box-shadow: none !important;
}
.announcement-btn::before, .announcement-btn::after {
    display: none !important;
}
.announcement-btn:hover {
    transform: none;
}
.announcement-btn i {
    filter: none;
}

/* El botón central (Play) sobresale */
.nav-center-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px; /* Añade un poco de separación a los lados respecto a los otros botones */
}

/* Contenedores para mantener consistencia de flexbox */
.nav-item {
    /* flex: 1; Removido para no forzar que ocupen todo el espacio, permitiendo que space-evenly funcione mejor */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Quitamos los alineamientos forzados a los lados para que space-evenly haga el trabajo natural */
.nav-item.left, .nav-item.right {
    justify-content: center;
}

/* Ajustes Responsive */
@media (max-width: 480px) {
    .bottom-nav-bar {
        width: 92%;
        height: 65px;
        padding: 0 5px;
    }
    
    .announcement-btn {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
    
    .nav-center-wrapper {
        margin: 0 10px; /* Separación proporcional más pequeña para móviles */
    }
}
