/* --- CONFIGURACIÓN ESTRUCTURAL --- */
.main-header {
    height: 60px;
    background: #2c3e50;
    padding: 0 15px;
    display: flex;
    align-items: center;
    z-index: 4;
    transition: all 0.3s ease;
}

/* --- LOGO --- */
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-box {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-letter {
    color: #e74c3c;
    font-weight: 900;
    font-size: 20px;
}

.logo-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1;
}

.logo-subtitle {
    font-weight: 300;
    color: #bdc3c7;
    font-size: 12px;
    letter-spacing: 1px;
}

/* --- ACCIONES --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.btn-publicar {
    font-weight: 700 !important;
    padding: 6px 16px !important;
}

.balance-pill {
    background: rgba(46, 204, 113, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.balance-pill span {
    color: #2ecc71;
    font-weight: 800;
    font-size: 13px;
}

/* --- ICONOS Y BADGES --- */
.header-icon-btn {
    position: relative;
    padding: 8px;
    color: #bdc3c7;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn:hover {
    color: white;
}

.custom-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.menu-toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: transparent; /* opcional: quita el fondo */
    padding: 0; /* opcional: elimina espacio extra */
    border-radius: 0; /* 👈 quita la forma circular */
    border: none; /* 👈 elimina el borde */
    transition: 0.3s;
}
.menu-toggle-container:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mini-avatar {
    position: relative;
    width: 32px;
    height: 32px;
}

.mini-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* EL PUNTO ONLINE MEJORADO */
.mini-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #2c3e50; /* Fondo del header */
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .btn-publicar span { display: none; } /* En móvil solo icono plus */
    .btn-publicar { padding: 8px 10px !important; }
    .header-actions { gap: 6px; }
}